Feedback messages
There are currently seven streaming feedback messages available:
| ID | Message | Content | Payload size |
|---|---|---|---|
0x00 | Streaming status | Header only | 0 bytes |
0x01 | Cartesian pose (desired) | TCP pose and velocity, calculated from the desired joint values | 52 bytes |
0x02 | Joint pose (desired) | Desired joint angles and velocities | 2 · n · 4 bytes |
0x03 | Jacobian | Geometric Jacobian at the desired joint angles | 6 · n · 4 bytes |
0x04 | Cartesian pose (measured) | TCP pose and velocity, calculated from the measured joint values | 52 bytes |
0x05 | Joint pose (measured) | Measured joint angles and velocities | 2 · n · 4 bytes |
0x06 | Joint torque | Measured joint angles, commanded, estimated and model based joint torques | 4 · 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.
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:
| Offset | Field | Type | Description |
|---|---|---|---|
| 0 | Streaming state | uint8 | 0x00 inactive, 0x10 ready, 0x20 streaming, see Streaming states |
| 1 | Message ID | uint8 | Type of the feedback message, i.e. the format and content of the payload (table above) |
| 2 | Timestamp | uint64 | Time 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.
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)
| Field | Type | Unit |
|---|---|---|
| Translation x, y, z of the TCP relative to the base | 3 × float | m |
| Orientation of the TCP relative to the base as quaternion W, X, Y, Z | 4 × float | – |
| Linear velocity v_x, v_y, v_z of the TCP in the Robot's base frame | 3 × float | m/s |
| Angular velocity omega_x, omega_y, omega_z of the TCP in the Robot's base frame | 3 × float | rad/s |
Joint pose (0x02 desired, 0x05 measured)
| Field | Type | Unit |
|---|---|---|
| Joint angle for each joint | n × float | rad |
| Joint velocity for each joint | n × float | rad/s |
Jacobian (0x03)
| Field | Type | Unit |
|---|---|---|
| Geometric Jacobian, 6 rows × n columns | 6 · 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)
| Field | Type | Unit |
|---|---|---|
| Measured joint angle for each joint | n × float | rad |
| Commanded torque for each joint, i.e. the torque last sent to the drive | n × float | Nm |
| Torque estimated by each drive | n × float | Nm |
| Model based torque for each joint (Newton-Euler) | n × float | Nm |
In the torque streaming mode 5, the commanded torque includes the gravity compensation torque.