Skip to content

Abb robot rmq parser

Convert RMQ message string into object.

Inputs

Field Type Description
payload string RMQ message.

Outputs

Field Type Description
payload object Object with parsed RMQ message payload.

Details

Node in input message expects RMQ message (ie. from RMQ node) in msg.payload.

Example input message:

{
    "payload": "command;[[\"\",\"\",0,\"\",\"\",0,\"\"],\"pickAndDrop\",[\"pose\",\"\",0,\"[[0.00,0.00,0.00],[1.000000,0.000000,0.000000,0.000000]]\",\"\",0,\"\"],[\"num\",\"\",0,\"1\",\"\",0,\"\"],[\"num\",\"\",0,\"1\",\"\",0,\"\"],[\"\",\"\",0,\"\",\"\",0,\"\"],[\"\",\"\",0,\"\",\"\",0,\"\"]]",
    "metadata": 8193,
    "topic": "ABB_RMQ_MESSAGE_SENT"
}

Based on input it will create object in msg.payload with attribute name equal to message type, like command or errInfo.

See example output message from example above:

{
    "payload": {
        "command": [
            ["", "", 0, "", "", 0, ""],
            "pickAndDrop",
            [
                "pose",
                "",
                0,
                "[[0.00,0.00,0.00],[1.000000,0.000000,0.000000,0.000000]]",
                "",
                0,
                ""
            ],
            ["num", "", 0, "1", "", 0, ""],
            ["num", "", 0, "1", "", 0, ""],
            ["", "", 0, "", "", 0, ""],
            ["", "", 0, "", "", 0, ""]
        ]
    },
    "metadata": 8193,
    "topic": "ABB_RMQ_MESSAGE_SENT"
}

Configuration

Property Description
Name Name of the node instance