Streaming messages
The communication between the controller and the Streaming PC is realized by UDP messages. The
controller receives streaming messages on port 28000 of the Control Unit.
In the following, the message format for each of these messages is defined.
- Trajectory: Joint position — streaming mode
1. - Trajectory: Joint position + velocity — streaming
mode
2. - Trajectory: Cartesian (absolute) — streaming mode
3. - Trajectory: Cartesian (relative) — streaming mode
4. - Joint torque — streaming modes
5and6. - Feedback messages — what the controller sends back.
Common header
Every streaming message starts with the same two bytes:
| Offset | Field | Type | Description |
|---|---|---|---|
| 0 | Index | uint8 | Message counter. Increase it by one with every message; after 255 comes 0. |
| 1 | Mode | uint8 | The streaming mode the message is meant for. Must match the mode of the Start streaming request. |
note
All values in streaming messages are 64-bit floating point numbers (double) in network byte order
(i.e. "Big Endian"), e.g. struct.pack(">d", value) in Python. Each message must be sent as a
single UDP datagram of exactly the documented length.
For how the controller handles invalid messages, see Ignored messages.