Skip to main content
Version: v2

Trajectory: Joint position

note

The streaming mode ID for this mode is 1.

note

We highly recommend using the Position + Velocity mode, due to its superior tracking performance.

This mode may, in presence of high joint acceleration, tend to overshoot the desired positions. In order to mitigate, we suggest:

  • increasing the streaming frequency (> 250 Hz)
  • if feasible, use the position and velocity streaming mode
Streaming message format

Streaming message format for the joint position mode

OffsetFieldTypeUnit
0Indexuint8–
1Mode (1)uint8–
2Number of joints nuint8–
3Joint positions, one per jointn × doublerad

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

In Pos mode, the Robot is controlled by commanding the desired position for each 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 derivatives. The filter is tuned to the target_frequency of the Start streaming request. Between two messages, the filter predicts the next target, so a single lost message does not stop the Robot.

In some cases — for example due to rounding errors or packet loss — larger jumps can occur, specifically in the derivatives. Therefore, to guarantee best possible robustness, the commanded joint properties are post-processed and the controller is aiming to best possibly follow the commanded joint trajectory:

  • the acceleration is limited to 95% of each joint's acceleration limit,
  • the velocity is limited to each joint's velocity limit and to a band around the measured velocity,
  • the position is limited to a narrow band (below 1°) around the measured position.

This post-processing assumes the trajectory is valid, i.e. it respects the feasibility limits for joint position, velocity and acceleration. If the Robot cannot follow, streaming stops, see Stop conditions. Streaming also stops if no new message arrives for 50 ms.