generating-jerk-limited-trajectories-to-a-release-state
A wrapper around Ruckig Community Version (Berscheid &
Kroeger, RSS 2021, MIT). It runs Ruckig's offline calculate() once, then samples
Trajectory.at_time() at every control period.
Inputs
| input | default | meaning |
|---|---|---|
target_joints | - | target positions [rad] |
target_velocity, target_acceleration | 0 | state to arrive in (a release state when non-zero) |
start_joints | read from robot.get_observation | start positions; the arm is assumed at rest |
speed_fraction | 0.25 | scales the default caps below |
max_velocity / max_acceleration / max_jerk | caps x fraction | per-joint overrides |
control_dt | 0.02 | sampling period [s] |
execute | false | run the trajectory with robot.execute_trajectory |
Default caps at fraction 1, from the YAM high-speed draft:
- velocity: 6 rad/s on joints 1-3, 18 rad/s on joints 4-6
- acceleration: 15 rad/s^2 on joints 1-3, 40 rad/s^2 on joints 4-6
- jerk: ten times the acceleration caps. This is an assumption; no YAM jerk figure is published.
At the default fraction of 0.25, joints 1-3 are capped at 1.5 rad/s, the station's fastest
--speed. The station today streams at 0.25 rad/s. Pass max_velocity to match a
station started at another speed.
Measured (CPU)
200 random YAM moves, each joint moving up to 60 % of its half range. Mean duration per method:
| method | fraction 0.25 | fraction 1.0 |
|---|---|---|
| this skill (Ruckig, v/a/j-limited) | 1.134 s | 0.614 s |
| cubic smoothstep at the same v/a caps (unbounded jerk at the ends) | 1.215 s (1.07x) | 0.618 s (1.00x) |
| quintic minimum-jerk at the same v/a/j caps | 1.278 s (1.12x) | 0.723 s (1.18x) |
| straight line at the velocity cap (step acceleration, not executable) | 0.634 s | 0.164 s |
The hub's other route is linear waypoints streamed one per control step, or the station's own rate-capped move (0.25 rad/s, at least 8 s). Neither sets the acceleration or jerk at all. A release state works too: 0.6 rad on joint 2, arriving at 1.5 rad/s, takes 0.410 s at fraction 1.
Limits
- The start is taken at rest. Pass the reading's velocity yourself if the arm is moving.
- No collision checking. The path between the endpoints is whatever the jerk-limited profile gives in joint space.
- Needs
ruckiginstalled in the node's environment. The tests skip without it.


