Streaming states and stop conditions
This page describes how the controller enters and leaves streaming mode, and how it reacts to streaming messages it cannot use.
Streaming states
Every feedback message carries the current streaming state in its header:
| State | Value | Meaning |
|---|---|---|
inactive | 0x00 | Streaming mode is not active, or the Robot is not operational (e.g. brakes engaged). |
ready | 0x10 | Streaming mode is active, but no valid streaming message was received yet. The Robot holds its current position. |
streaming | 0x20 | The Robot follows the streamed messages. |
The controller switches from inactive to ready when it accepts a
Start streaming request. There is no time limit in ready: the
Robot holds its position until the first valid streaming message arrives. That message switches the
state to streaming.
When streaming ends, for whatever reason, the Robot decelerates each joint to standstill and then
holds its position. The state returns to inactive. To stream again, send a new
Start streaming request.
Stop conditions
While in streaming, the controller ends streaming when one of the following occurs.
All modes:
- A stop or pause is requested, e.g. via
PUT /api/v3.0/stopor the stop button in RobFlow. This also happens when another client takes control of the Robot. - A safety stop or an error occurs.
Joint position modes (1, 2):
- No new valid message was received for 50 ms.
- The filtered target deviates by more than 5° in a joint from the latest received position.
- The TCP pose the controller commands deviates from the TCP pose of the latest received joint positions by more than 10 cm or 10°. This happens when the streamed trajectory is not feasible.
Cartesian modes (3, 4):
- No new valid message was received for 50 ms.
- The tracking error between the filtered target pose and the commanded pose exceeds 5 cm or 10°.
- The Robot cannot follow the target, e.g. because a joint velocity limit would be exceeded.
Torque modes (5, 6):
- No new valid torque command was received for 100 ms.
- A joint reaches its soft limit.
- Mode
6(pure torque streaming) only: a joint moves by more than 1° within the first 200 ms after the first torque command was applied (status code0x0241).
The timeouts and limits above are default values. If you need different values, contact RobCo support.
Ignored messages
The controller ignores the following streaming messages. Streaming continues with the last valid message, so a single ignored message does not stop the Robot. However, if no valid message arrives within the timeout of the mode, streaming stops as described above.
- Messages from an IP other than
source_ipof the Start streaming request - Messages received while the controller is not in
readyorstreaming - Messages whose mode byte differs from the active streaming mode (an error is logged, at most once per second)
- Messages with a wrong length, or a joint count that does not match the Robot
- Messages containing non-finite values (NaN, infinity) in modes
1,5and6 - Torque commands that exceed a drive's peak torque (see Joint torque)
A message index that is not exactly one higher than the previous one (after 255 comes 0) only
causes a warning in the controller logs. The message is still used.