Skip to main content
Version: v2

Feedback messages

There are currently seven streaming feedback messages available:

IDMessageContentPayload size
0x00Streaming statusHeader only0 bytes
0x01Cartesian pose (desired)TCP pose and velocity, calculated from the desired joint values52 bytes
0x02Joint pose (desired)Desired joint angles and velocities2 · n · 4 bytes
0x03JacobianGeometric Jacobian at the desired joint angles6 · n · 4 bytes
0x04Cartesian pose (measured)TCP pose and velocity, calculated from the measured joint values52 bytes
0x05Joint pose (measured)Measured joint angles and velocities2 · n · 4 bytes
0x06Joint torqueMeasured joint angles, commanded, estimated and model based joint torques4 · n · 4 bytes

n is the number of joints of the Robot. Every message consists of a 10-byte header followed by the payload.

Each message is sent at the frequency configured with Set streaming feedback properties. Until they are configured, the controller sends no feedback messages. For further information on getting started with feedback messages, refer to Receiving streaming feedback messages. Additionally, there is also an example receiver provided.

note

All numbers are encoded in network byte order (i.e. "Big Endian"). Floating point numbers are 32-bit (float), e.g. struct.unpack(">f", ...) in Python. Please note the Python documentation for further instructions on unpacking.

Desired and measured values​

The desired values (0x01, 0x02, 0x03) are the joint values the controller commands in the current control cycle, i.e. the result of the controller's processing of the streamed messages. The measured values (0x04, 0x05, and the joint angles in 0x06) come from the joint encoders. During motion, the measured values lag behind the desired ones and contain measurement noise.

In the torque streaming modes, the desired values follow the measured values, as there is no motion target.

Streaming feedback message header​

All streaming feedback messages share the same header:

OffsetFieldTypeDescription
0Streaming stateuint80x00 inactive, 0x10 ready, 0x20 streaming, see Streaming states
1Message IDuint8Type of the feedback message, i.e. the format and content of the payload (table above)
2Timestampuint64Time at which the message was assembled, in nanoseconds

The timestamp is taken from a monotonic clock on the Control Unit. Its starting point is not defined: it is neither the Unix epoch nor synchronized with any other clock. Use it only to measure the time between messages from the same Robot.

The figure below shows the header and the payload of every feedback message. The desired and measured variants share one layout: 0x01 and 0x04 for the Cartesian pose, 0x02 and 0x05 for the joint pose.

The streaming feedback message format

Streaming feedback message payload​

The payload starts at offset 10 and depends on the message type.

Streaming status (0x00)​

No payload. The message only carries the header, i.e. the streaming state and timestamp.

Cartesian pose (0x01 desired, 0x04 measured)​

FieldTypeUnit
Translation x, y, z of the TCP relative to the base3 × floatm
Orientation of the TCP relative to the base as quaternion W, X, Y, Z4 × float–
Linear velocity v_x, v_y, v_z of the TCP in the Robot's base frame3 × floatm/s
Angular velocity omega_x, omega_y, omega_z of the TCP in the Robot's base frame3 × floatrad/s

Joint pose (0x02 desired, 0x05 measured)​

FieldTypeUnit
Joint angle for each jointn × floatrad
Joint velocity for each jointn × floatrad/s

Jacobian (0x03)​

FieldTypeUnit
Geometric Jacobian, 6 rows × n columns6 · n × float–

The matrix is sent row by row: the first n entries form the first row, and so forth. Rows 1 to 3 map the joint velocities to the linear velocity of the TCP, rows 4 to 6 to its angular velocity, both in the Robot's base frame.

Joint torque (0x06)​

FieldTypeUnit
Measured joint angle for each jointn × floatrad
Commanded torque for each joint, i.e. the torque last sent to the driven × floatNm
Torque estimated by each driven × floatNm
Model based torque for each joint (Newton-Euler)n × floatNm

In the torque streaming mode 5, the commanded torque includes the gravity compensation torque.