Set streaming feedback properties
By sending this message, the controller is instructed to send the selected streaming feedback messages to the desired endpoint via UDP.
The message is sent as an HTTP PUT request to
http://{robot ip}/api/v3.0/set-streaming-feedback-properties. It requires the Robot to be on the "Beta" update channel
and a valid control token in the X-Robflow-Control-Token header (see
Control token).
For further information on configuring the feedback messages, refer to the getting started section: Configure streaming feedback.
This message is gated by Robot control: send the X-Robflow-Control-Token header from
Request control. Without it the request is rejected with 409. The
feedback goes to a single endpoint, so only the client that holds control may redirect it.
Payload
The payload defines which feedback messages are sent, at which frequency, and to which endpoint.
A frequency of 0 disables the message. Each request replaces the complete configuration: fields
that are left out are set to their default value.
| Field | Message | Default |
|---|---|---|
frequency_status | Streaming status (0x00) | 10 |
frequency_cartesian | Cartesian pose from the desired joint values (0x01) | 0 |
frequency_joint | Desired joint angles and velocities (0x02) | 0 |
frequency_jacobian | Geometric Jacobian (0x03) | 0 |
frequency_cartesian_measured | Cartesian pose from the measured joint values (0x04) | 0 |
frequency_joint_measured | Measured joint angles and velocities (0x05) | 0 |
frequency_torque | Joint torques (0x06) | 0 |
desired_remote_address | The IP to which feedback messages will be sent | 127.0.0.1 |
desired_remote_port | The port to which feedback messages will be sent | 28001 |
All frequencies are given in Hz. For the content of each message, see Feedback messages.
The controller sends at most one feedback message per control cycle, i.e. at most 2000 messages per second in total. If the requested frequencies add up to more than that, the controller scales all of them down by the same factor and logs a warning. To reduce jitter, we suggest keeping the total below 500 messages per second.
The configuration stays active until it is changed again, independent of whether streaming is active. Feedback messages are also sent while no streaming mode is active.
Example:
{
"frequency_status": 10,
"frequency_cartesian": 0,
"frequency_joint": 0,
"frequency_jacobian": 0,
"frequency_cartesian_measured": 0,
"frequency_joint_measured": 0,
"frequency_torque": 0,
"desired_remote_address": {
"address": "127.0.0.1"
},
"desired_remote_port": 28001
}