Skip to main content
Version: v2

Trajectory: Joint position + velocity

note

The streaming mode ID for this mode is 2.

Streaming message format

Streaming message format for the joint position and velocity mode

OffsetFieldTypeUnit
0Indexuint8–
1Mode (2)uint8–
2Number of joints nuint8–
3Joint positions, one per jointn × doublerad
3 + 8 · nJoint velocities, one per jointn × doublerad/s

Message length: 3 + 16 · n bytes. n must equal the number of joints of the Robot.

In PosVel mode, the Robot is controlled by commanding the desired position as well as velocity per joint. In order to use this mode, a trajectory generation algorithm is required that generates a feasible trajectory satisfying each joint's dynamic limits. Please see below for suggested limits in streaming mode:

Joint limits
Joint Position: ±270 deg
Joint Velocity:
Drive 193: ±1.25 [rad / s]
Drive 148: ±2.00 [rad / s]
Drive 116: ±4.00 [rad / s]
Drive 86: ±5.00 [rad / s]
Joint Acceleration: ± 4.0 [rad / s2]
Joint Jerk: ± 100.0 [rad / s3]

The controller will receive the streaming messages and pre-process them using a Kalman filter, in order to obtain smooth and accurate estimates of the second derivative. The filter is tuned to the target_frequency of the Start streaming request.

The filtered values are post-processed in the same way as in the Joint position mode, and the same stop conditions apply. In particular, streaming stops if no new message arrives for 50 ms.