v0.1.0 · MIT · Python ≥ 3.11 · runtime: numpy + robot_msgs

robot_trajectories

A signal library for robot motion. Every kind of trajectory is a plain function: pass a JointSpace (the robot) and numbers, points or poses (the task), get back one robot_msgs JointTrajectory, inside the limits and at rest at both ends, carrying the call that made it. 77 kinds; chain and split compose them.

pip install "robot-trajectories @ git+https://github.com/zacharyyamaoka/robot_trajectories"

Not on PyPI yet, so it installs from GitHub; robot_msgs comes from PyPI. The runtime needs numpy and robot_msgs; Ruckig and TOPP-RA timing come as plugins in plugins/.

What goes in

The robot as a JointSpace: joint limits first, then kinematics (FK/IK), dynamics, a collision scene, each injected by shape (with_kinematics, with_dynamics, with_collision), never imported. The task as points, poses and numbers.

What a kind is

f(space, ..., start=None) -> JointTrajectory, registered with @kind. It knows joints, poses, limits and time, never what the motion is for: no task words in a kind's name, parameters or labels. What it serves is a use-case tag.

What comes out

One robot_msgs JointTrajectory, guarded inside the limits, with its segments labelled and its recipe recorded: rebuild(recipe(t)) makes it again, sample for sample. A kind that needs a rung the space lacks raises MissingRung, naming the call that adds it.

Units

SI in code (rad, rad/s, m); degrees on every display: summaries, describe(), and every plot on this page.

examples/quick_start.py

The CAN 11 pendulum from bare joint limits: a higher-order kind, chained, split back into pieces and rebuilt from its recipe.

import numpy as np
from robot_msgs.trajectory import JointLimits

from robot_trajectories import JointSpace, chain, hold, pid_tuning, rebuild, recipe, split, step_train, summary

# Instance values live with the caller, never in the package: here, CAN 11's schedule (±0.33 rad, 2.0 rad/s, 7.3896 rad/s²).
limits = JointLimits(joint_names=("can11",), min_position=np.array([-0.33]), max_position=np.array([0.33]),
                     max_velocity=np.array([2.0]), max_acceleration=np.array([7.3896]))

space = JointSpace.from_limits(limits)                      # the robot: joint limits (+ kinematics, dynamics, collision)
tuning = pid_tuning(space, joint="can11")                   # a higher-order kind: step train, hold, chirp, hold
session = chain(tuning, step_train(space, joint="can11", steps_fraction=(0.3, -0.3)), hold(space, 2.0))

print(summary(session))
35.4 s in 6 segments on can11
       0.0 -    7.0 s  step train                 step_train(space, joint='can11')
       7.0 -    9.0 s  hold                       hold(space, duration_s=2)
       9.0 -   29.0 s  chirp                      chirp(space, joint='can11')
      29.0 -   30.0 s  hold                       hold(space)  then wait
      30.0 -   33.4 s  step train                 step_train(space, joint='can11', steps_fraction=(0.3, -0.3))
      33.4 -   35.4 s  hold                       hold(space, duration_s=2)
print(f"{len(split(session))} rest-to-rest pieces; rebuilt from its {len(recipe(session))}-character recipe: "
      f"{'identical' if np.array_equal(rebuild(recipe(session)).positions, session.positions) else 'DIFFERENT'}")
6 rest-to-rest pieces; rebuilt from its 933-character recipe: identical
print(f"{type(session).__module__}.{type(session).__name__}: {len(session.t)} samples, "
      f"peak {np.degrees(np.max(np.abs(session.velocities))):.0f}°/s of {np.degrees(limits.max_velocity[0]):.0f}°/s")
robot_msgs.trajectory.joint_trajectory.JointTrajectory: 17688 samples, peak 54°/s of 115°/s

The API in one table

fornamewhat it is
the robotJointSpaceEverything a kind may read about the robot. Build it with a from_* constructor and add rungs with with_*.
making kindskindRegister f(space, ..., start=None) as a kind; the decorated function returns a guarded, recorded JointTrajectory.
kindsThe registry: every kind found (in-tree and from plugins), by name, in registration order.
catalogThe kinds that generate (in-tree and plugins) and, after them, the catalog rows nothing implements yet, honestly marked. use_case / family / starts_as filter; space grades each: available, fallback or locked (and the fix).
composingchainJoin trajectories on one clock, segments kept. Where one does not start where the last ended, a min-jerk transition goes in as its own segment (labelled transition). chain(chain(a, b), c) has segments a, b, c.
splitThe segments as rest-to-rest trajectories, transitions included and labelled, each starting at t = 0 with its offset on the joined clock in header.stamp. Each carries its own one-call recipe, so it rebuilds alone, and chain(*split(x)) is x sample for sample.
repeatOne tape played times times with the same input: the run-to-run floor every sim-vs-real gate is a multiple of (the pendulum contract: sim vs real <= 1.5 x the same-input repeat floor, 5 repeats).
annotateThe same trajectory with every segment saying what it measures (purpose) and whether to stop and look after it (wait_after: split, run one, then wait). Pure: a new trajectory.
the recordrecipeThe recipe text a trajectory carries.
rebuildThe trajectory a recipe describes, generated again: identical, sample for sample.
summaryOne line per segment (its span on the clock, label, the call that makes it, then wait), then the notes.
timing legsWaypointTrajectoryGeneratorPoints and joint limits in, a JointTrajectory out: the shape of each leg's progress s(t) (a backend's name), and either its peak speed or its duration. leg times one move, along a path of points; the kinds hand it their legs.
waypoint_trajectory_generatorsEvery registered waypoint trajectory generator's name with its providers (more than one provider for a name is refused at use).
TrajectoryGeneratorAnything that outputs a robot_msgs Trajectory when called (a JointTrajectory, a PoseTrajectory, your own subclass).

Catalog · 77 kinds, 77 plotted here

Every registered kind (robot_trajectories.kinds()), grouped by family. Each card is one call, run by this page's builder with the kind's defaults on the simplest of the four spaces below that it runs on, and a plot of the joint positions it returned, in degrees. Hover a tag for its use case.

The four spaces the cards run on
import json

import numpy as np

from fixtures import lane_b, robots          # tests/fixtures: the round's stand-in robots, never part of the package
from robot_trajectories import JointSpace
from robot_trajectories.space import limits_from_json

# The CAN 11 pendulum: bare joint limits, from examples/can11_limits.json
limits = limits_from_json(json.loads(open("examples/can11_limits.json").read())["limits"])
pendulum = JointSpace.from_limits(limits)

# The same pendulum plus a stand-in drive limit, a named home (the gravity bottom) and stand-in dynamics
pendulum_plus = JointSpace.from_limits(lane_b.pendulum_limits(), home=[0.0]).with_dynamics(lane_b.Can11Dynamics())

# A UR5e in a box above the table: joint limits only (its URDF has no acceleration, so one is stated)
ur5e = JointSpace.from_description(robots.UR5E_DESCRIPTION, max_acceleration=6.0).within(robots.UR5E_DEMO_BOX)

# The UR5e with every rung: stand-in DH kinematics and gravity, a drive and a jerk limit, a named home
box = robots.UR5E_DEMO_BOX.replace(max_effort=np.full(6, lane_b.UR5E_DRIVE_LIMIT_NM), max_jerk=np.full(6, 40.0))
ur5e_plus = (JointSpace.from_limits(box, home=0.5 * (box.min_position + box.max_position))
             .with_kinematics(robots.UR5eKinematics())
             .with_dynamics(lane_b.UR5E_DYNAMICS))
tool = ur5e_plus.forward(ur5e_plus.home)[:3, 3]      # the tool point at home, in metres

print(pendulum)
JointSpace of 1 joint (can11) from joint limits, 500 Hz
  1 joint limits   known    position -18.9..18.9°; velocity 114.6°/s; acceleration 423.4°/s²; no jerk limit
  2 kinematics     missing  with_kinematics(kinematics)
    reach map        missing  an optional cache · with_reach_map(map)
  3 dynamics       missing  with_dynamics(model)
  4 torque limits  missing  state max_effort in the limits
  beside the ladder scene           missing  with_collision(scene)
  beside the ladder self-collision  missing  with_self_collision(model)
  home             0° (the box centre)
print(ur5e_plus)
JointSpace of 6 joints (shoulder_pan_joint .. wrist_3_joint) from joint limits + kinematics + dynamics, 500 Hz
  1 joint limits   known    position -90..90, -130..-50, 40..130, -150..-40, -120..-60, -90..90°; velocity 180°/s; acceleration 343.8°/s²; jerk 2291.8°/s³
  2 kinematics     known    UR5e (DH forward, damped least squares inverse)
    reach map        missing  an optional cache · with_reach_map(map)
  3 dynamics       known    UR5e gravity stand-in (lift, elbow, wrist-1 plane)
  4 torque limits  known    effort [150.0, 150.0, 150.0, 150.0, 150.0, 150.0] N·m
  beside the ladder scene           missing  with_collision(scene)
  beside the ladder self-collision  missing  with_self_collision(model)
  home             [0, -90, 85, -95, -90, 0]° (named)

excitation · 15

broadband or swept signals that identify a plant or measure a frequency response

band_limited_noise

Gaussian noise filtered to a band in the frequency domain (everything outside it set to zero), faded in and out so it starts and ends at rest, scaled so speed and acceleration stay inside the limits: a new realisation per seed (idinput's 'rgs'). It needs windowing or averaging across realisations, where a periodic multisine needs neither.

needs joint limits

bandwidthinertia idstate coverage
trajectory = band_limited_noise(pendulum)
band_limited_noise: joint positions in degrees against time

30.0 s · 15,001 samples · 1 segment · on CAN 11 pendulum · bare limits

biased_dither

A slow constant-speed ramp 0 -> +A -> -A -> 0 carrying a small multisine (five lines across lines_low_hz .. lines_high_hz, random phases from seed) whose speed never exceeds ripple_speed_fraction_of_ramp of the ramp's: the joint slides without reversing, so inertia and viscous friction are read with no stick-slip (Wernholt's offset, the rack's 'dither'; first_direction -1 goes to the - side first, the rack's second variant).

needs joint limits

inertia idfriction id
trajectory = biased_dither(pendulum)
biased_dither: joint positions in degrees against time

8.5 s · 4,261 samples · 1 segment · on CAN 11 pendulum · bare limits

chirp

A sine swept from start_hz to end_hz on one joint at ONE amplitude for the whole sweep (the shared kernel): its frequency response and bandwidth.

needs joint limits · row log_chirp

pid tuningbandwidthinertia id
trajectory = chirp(pendulum)
chirp: joint positions in degrees against time

20.0 s · 10,001 samples · 1 segment · on CAN 11 pendulum · bare limits

dynamics_excitation

higher-order

What are its inertia, gravity and coupling? A multisine over band_hz on every joint at once (inertia, coupling, damping); pose_grid_joints adds a grid of static poses over those joints, then home (an arm's gravity terms).

needs joint limits

full dynamics idinertia id
trajectory = dynamics_excitation(ur5e)
dynamics_excitation: joint positions in degrees against time

20.0 s · 10,001 samples · 1 segment · on UR5e · joint limits

fourier_series_excitation

Each joint (joints, default all) a finite Fourier series of one fundamental, its coefficients OPTIMISED to make the dynamics regressor well-conditioned (Swevers 1997; FloBaRoID's recipe) under the position, speed and acceleration limits (and the torque limit when the space states one, and no collision when it carries a checker): the coefficients that identify an arm's inertia, gravity, friction and coupling best from one run. periods periods, faded in and out.

needs joint limits + dynamics model

full dynamics idgravity idinertia idfriction idstate coverage
trajectory = fourier_series_excitation(ur5e_plus)
fourier_series_excitation: joint positions in degrees against time

40.0 s · 20,001 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

free_swing_release

Lift the joint under its position loop to a fraction of its + side, hold, then release it (kp = kd = 0, or kd only) and let it coast: inertia, damping and Coulomb friction with no controller in the loop.

needs joint limits

inertia idfriction idgravity id
trajectory = free_swing_release(pendulum)
free_swing_release: joint positions in degrees against time

2.4 s · 1,180 samples · 1 segment · on CAN 11 pendulum · bare limits

linear_chirp

A sine whose frequency rises linearly from f_start to f_end, its amplitude held at a constant speed (angle = v / 2 pi f, capped by the room and the acceleration limit) or a constant angle, tapered in and out, then a hold (the rack runner's chirp; PID tuna's identification chirp).

needs joint limits

inertia idbandwidthdelay idpid tuningstate coverage
trajectory = linear_chirp(pendulum)
linear_chirp: joint positions in degrees against time

21.0 s · 10,501 samples · 1 segment · on CAN 11 pendulum · bare limits

multisine

Schroeder-phased sines on every joint at once (joints, default all), each joint on its own lines: coupled dynamics in one run. period_s sets the frequency resolution (1 / period_s); seed the phase offsets.

needs joint limits

full dynamics idbandwidth
trajectory = multisine(pendulum)
multisine: joint positions in degrees against time

20.0 s · 10,001 samples · 1 segment · on CAN 11 pendulum · bare limits

orthogonal_multisine

Every joint (joints, default all) gets its OWN disjoint set of harmonics of one fundamental (1 / period_s), so all joints move together and each joint's response still separates in frequency (Morelli's orthogonal phase-optimised multisines). Line k of the band goes to joint k mod J, so every joint's lines span the whole band. Each line carries the same speed, the joint's speed rms is velocity_rms_rad_s; periods periods, faded in and out.

needs joint limits

full dynamics idbandwidthstate coverage
trajectory = orthogonal_multisine(ur5e)
orthogonal_multisine: joint positions in degrees against time

50.0 s · 25,001 samples · 1 segment · on UR5e · joint limits

prbs

A maximum-length binary sequence (period 2^register_stages - 1 clock periods) of two levels, +- amplitude_rad about the start, each held one clock period, every change a minimum-jerk edge so a position loop can follow it. A flat spectrum up to about 0.44 / clock period: bandwidth, delay and inertia in one run. It starts at the start, goes to its first level, and ends back at rest at the start.

needs joint limits

bandwidthdelay idinertia id
trajectory = prbs(pendulum)
prbs: joint positions in degrees against time

12.7 s · 6,363 samples · 1 segment · on CAN 11 pendulum · bare limits

sine_dwell

One sine at a fixed frequency on one joint, faded in and out: the gain and phase at that one frequency.

needs joint limits · row faded_sine

bandwidth
trajectory = sine_dwell(pendulum)
sine_dwell: joint positions in degrees against time

10.0 s · 5,001 samples · 1 segment · on CAN 11 pendulum · bare limits

slow_plus_fast_sines

A slow large sine with a small fast sine on top, faded in and out: friction that depends on load while moving, and inertia separated from gravity (BAM's sin_sin; the 2026-10 note's F4, rescaled to the joint's range).

needs joint limits

friction idinertia idstate coverage
trajectory = slow_plus_fast_sines(pendulum)
slow_plus_fast_sines: joint positions in degrees against time

20.0 s · 10,001 samples · 1 segment · on CAN 11 pendulum · bare limits

stepped_sine_dwell

higher-order

A list of frequencies played one after another, each a sine_dwell: ramp in, settle a few cycles, measure amplitude and phase over a few more, ramp out, a short rest. The classic point-by-point Bode measurement: the slowest per point of the frequency-response kinds and the most robust to nonlinearity. A higher-order kind: sine_dwell and hold chained.

needs joint limits

bandwidthpid tuningdelay id
trajectory = stepped_sine_dwell(pendulum)
stepped_sine_dwell: joint positions in degrees against time

106.5 s · 53,237 samples · 24 segments · on CAN 11 pendulum · bare limits

torque_chirp

effort-commanded

With kp = kd = 0: the torque that holds the start pose plus a faded linear torque chirp, the plant with nothing else in the loop. The command is the effort; the positions are the model's prediction of it.

needs joint limits + torque limits + dynamics model

inertia idfriction iddelay idbandwidth
trajectory = torque_chirp(pendulum_plus)
torque_chirp: joint positions in degrees against time

15.5 s · 7,751 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

torque_steps

effort-commanded

Open-loop torque steps (kp = kd = 0) on top of the torque that holds the start pose: a rest hold, then steps steps alternating sign, each back to the hold before the next: torque-to-acceleration gain and the friction band with no position loop.

needs joint limits + torque limits + dynamics model

inertia idfriction id
trajectory = torque_steps(pendulum_plus)
torque_steps: joint positions in degrees against time

9.0 s · 4,501 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

controller test · 6

inputs a controller is judged or tuned on: steps, staircases, doublets, relay, replans

doublet_3211

A doublet (+A then -A) or the 3-2-1-1 train (3, 2, 1, 1 time units of alternating sign), as position pulses about the start: a short input with a broad, tunable spectrum, for where arm time is expensive (a flight-test input). It goes to its first level, runs the pulses, and ends back at rest at the start.

needs joint limits

bandwidthinertia idpid tuning
trajectory = doublet_3211(pendulum)
doublet_3211: joint positions in degrees against time

1.5 s · 751 samples · 1 segment · on CAN 11 pendulum · bare limits

pid_tuning

higher-order

Is this joint's PID right? A step train (overshoot, rise and settling time), a settle, a chirp over chirp_hz (bandwidth, phase margin, resonances), a settle. A higher-order kind: four lower kinds chained, recorded as this one call.

needs joint limits

pid tuningbandwidth
trajectory = pid_tuning(pendulum)
pid_tuning: joint positions in degrees against time

30.0 s · 15,011 samples · 4 segments · on CAN 11 pendulum · bare limits

rapid_replan

A new plan every replan_period_s, each starting from the previous plan's position, velocity and acceleration at that instant and ending at rest at a seeded target within target_spread_rad of the named home (the controller test: take a new trajectory mid-motion without a jump). It starts at rest at the start and ends at rest at the last target.

needs joint limits + home pose

tracking evalsmoke testconveyor pick and place
trajectory = rapid_replan(ur5e_plus)
rapid_replan: joint positions in degrees against time

1.6 s · 826 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

relay_feedback

effort-commanded

Replace the controller by a relay: the torque that holds the start pose plus or minus relay_torque_nm on the sign of the measured error (with hysteresis_rad), and read the limit cycle's amplitude and period: the ultimate gain Ku = 4 d / (pi a) and period a PID rule starts from.

needs joint limits + torque limits

pid tuningbandwidth
trajectory = relay_feedback(pendulum_plus)
relay_feedback: joint positions in degrees against time

10.0 s · 5,001 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

staircase

Climb to +A in levels levels (odd; 7 is -3..+3), descend to -A, climb back to the start, holding each level, so every inner level is reached once from below and once from above (ISO 230-2's bidirectional positioning; the rack's backlash staircase). cycles repeats the whole climb-descend-climb.

needs joint limits

backlash idstop accuracyfriction idrepeatability
trajectory = staircase(pendulum)
staircase: joint positions in degrees against time

28.5 s · 14,269 samples · 1 segment · on CAN 11 pendulum · bare limits

step_train

The fastest steps the limits allow, each into a hold, alternating sign, with two larger steps that cross the friction band: overshoot, ringing and settling are read from it. Each step's target is a fraction of the room around the start; it ends back there.

needs joint limits

pid tuningtracking evalbandwidthstop accuracy
trajectory = step_train(pendulum)
step_train: joint positions in degrees against time

7.0 s · 3,511 samples · 1 segment · on CAN 11 pendulum · bare limits

quasi static · 7

slow motions that isolate one effect: friction plateaus, gravity triangles, reversals, breakaway

breakaway_torque_ramp

effort-commanded

Hold one flank, then ramp the torque on top of the torque that holds the pose, at ramp_rate_nm_s from start_torque_nm, until the output leaves by leave_threshold_rad: static friction in one direction (direction +1 or -1; the other flank is a second call from the measured pose, the player reads the torque at the leave).

needs joint limits + torque limits

friction idbacklash id
trajectory = breakaway_torque_ramp(pendulum_plus)
breakaway_torque_ramp: joint positions in degrees against time

2.0 s · 1,007 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

friction_id

higher-order

How much friction does this joint have? Constant-speed passes at speeds_fraction of top speed, up and down: Coulomb and viscous friction, Stribeck at the slow end.

needs joint limits

friction id
trajectory = friction_id(pendulum)
friction_id: joint positions in degrees against time

13.4 s · 6,695 samples · 1 segment · on CAN 11 pendulum · bare limits

locked_output_torque_ramp

effort-commanded

With the output clamped in a fixture, ramp the motor torque 0 -> +peak -> 0 -> -peak -> 0, ramp_s per ramp, cycles times, and read the motor angle: backlash and gear stiffness.

needs joint limits + torque limits

backlash id
trajectory = locked_output_torque_ramp(pendulum_plus)
locked_output_torque_ramp: joint positions in degrees against time

32.0 s · 16,001 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

quasi_static_pose_holds

A pose set: poses admitted configurations spread over the room, each held hold_s while every joint dithers slowly by +-dither_amplitude_rad (a faded sine, a quarter period apart per joint) so Coulomb friction is crossed both ways and cancels from the averaged torque: masses, centres of mass and mount tilt by regression.

needs joint limits + forward kinematics + dynamics model

gravity id
trajectory = quasi_static_pose_holds(ur5e_plus)
quasi_static_pose_holds: joint positions in degrees against time

177.4 s · 88,719 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

small_reversals

Small slow back-and-forth moves about the held start pose, one joint, the others still: out to +amplitude, then reversals full swings between -amplitude and +amplitude (each a reversal of direction), a dwell at every turning point, and back to the start. The load sits on one flank, then the other: backlash and lost motion, read by an output-side camera or tracker (an external measurement, not an input here).

needs joint limits

backlash idrepeatability
trajectory = small_reversals(pendulum)
small_reversals: joint positions in degrees against time

21.1 s · 10,567 samples · 1 segment · on CAN 11 pendulum · bare limits

velocity_plateaus

Constant-speed plateaus out and back from the start at a ladder of speeds (fractions of the velocity limit), each held long enough to settle: friction against speed (Coulomb, viscous, Stribeck, breakaway). The rack schedule's plateaus.

needs joint limits

friction idspeed limitsstate coverage
trajectory = velocity_plateaus(pendulum)
velocity_plateaus: joint positions in degrees against time

15.1 s · 7,575 samples · 1 segment · on CAN 11 pendulum · bare limits

velocity_sweep

Constant-speed passes across the range, up and down at several speeds, corners rounded at 0.8 x the acceleration limit: the friction curve and the gravity torque (the shared kernel). span_fraction: how much of the room around the start each pass crosses.

needs joint limits · row constant_speed_triangle

friction idgravity id
trajectory = velocity_sweep(pendulum)
velocity_sweep: joint positions in degrees against time

13.4 s · 6,695 samples · 1 segment · on CAN 11 pendulum · bare limits

point to point · 14

smooth rest-to-rest moves between given configurations or poses (the building blocks)

approach_retreat

The tool in a straight line along one axis, out and back: the short linear legs before and after a point (Pilz LIN legs; bam_reach's lift recipes are an approach plus a retreat). The orientation is held throughout.

needs joint limits + forward kinematics + inverse kinematics

tracking evalstop accuracycycle timecontact eval
trajectory = approach_retreat(ur5e_plus)
approach_retreat: joint positions in degrees against time

1.0 s · 501 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

cartesian_a_to_b

The tool from where it is to a goal pose, by inverse kinematics at the ends and one joint-space leg between them (rest to rest under waypoint_generator), through via poses first when given: the "A to B" of bam_reach's trajectory dataset.

needs joint limits + forward kinematics + inverse kinematics

tracking evalworkspace coveragecycle time
trajectory = cartesian_a_to_b(ur5e_plus)
cartesian_a_to_b: joint positions in degrees against time

1.7 s · 875 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

cartesian_arc

The tool along a circular arc from where it is to goal (default: a 4 cm arc in the xy plane) (an xyz point in metres, or a 4x4 pose, in the kinematics' base frame), at rest at both ends, inverse kinematics at every eef_step_m and refused at the first sample that fails: Pilz's CIRC.

needs joint limits + forward kinematics + inverse kinematics

tracking evalaccuracydemo
trajectory = cartesian_arc(ur5e_plus)
cartesian_arc: joint positions in degrees against time

0.4 s · 186 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

cartesian_path

The tool in straight lines from where it is through points_or_poses (xyz points in metres, or 4x4 poses, in the kinematics' base frame), inverse kinematics at every eef_step_m and refused at the first sample that fails (MoveIt's computeCartesianPath; Pilz's LIN). Each line is one rest-to-rest leg under waypoint_generator; dwell_s holds at each point.

needs joint limits + forward kinematics + inverse kinematics · row cartesian_straight_line

tracking evalaccuracyworkspace coverage
trajectory = cartesian_path(ur5e_plus, [tool, tool + (0.0, 0.1, 0.0)])
cartesian_path: joint positions in degrees against time

0.5 s · 227 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

cartesian_waypoints

The tool visits each of points_or_poses (xyz in metres, or 4x4 poses) and dwells there; between them the joints move in rest-to-rest legs under waypoint_generator (inverse kinematics at the points only, each seeded from the last): the Cartesian twin of joint_waypoints. The tool does not move in straight lines between points (that is cartesian_path).

needs joint limits + forward kinematics + inverse kinematics

tracking evalstop accuracyaccuracycycle timedemo
trajectory = cartesian_waypoints(ur5e_plus, [tool + (0.05, 0.0, 0.0), tool + (0.0, 0.08, -0.05)])
cartesian_waypoints: joint positions in degrees against time

1.1 s · 569 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

home

Move back to the space's home: the building block that ends a session where it began (no catalog row).

needs joint limits

trajectory = home(pendulum)
home: joint positions in degrees against time

0.0 s · 3 samples · 1 segment · on CAN 11 pendulum · bare limits

input_shaped_move

A rest-to-rest move to target (absolute joint positions, rad) convolved with a ZV or ZVD impulse sequence tuned to a lightly damped mode, so the arm ends with no residual vibration at that mode (Singer and Seering, 1990).

needs joint limits + dynamics model

tracking evalstop accuracycycle time
trajectory = input_shaped_move(ur5e_plus)
input_shaped_move: joint positions in degrees against time

1.3 s · 637 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

jerk_limited_scurve

Rest-to-rest moves through waypoints given as fractions of the room, each leg a time-optimal jerk-limited S-curve (the double-S profile, Ruckig) under velocity_fraction / acceleration_fraction / jerk_fraction of the space's limits.

needs joint limits + jerk limits

tracking evalcycle timespeed limits
trajectory = jerk_limited_scurve(ur5e_plus)
jerk_limited_scurve: joint positions in degrees against time

3.9 s · 1,934 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

joint_waypoints

Rest-to-rest moves through absolute joint configurations (waypoints, M x J rad; a flat list on a 1-DOF robot), each leg timed by waypoint_generator, dwelling dwell_s at each: multi-waypoint motion in joint space (the classic PTP sequence).

needs joint limits

tracking evalstop accuracycycle timedemo
trajectory = joint_waypoints(ur5e, np.radians([[30, -70, 100, -80, -80, 30], [-30, -110, 60, -120, -100, -30]]))
joint_waypoints: joint positions in degrees against time

2.4 s · 1,181 samples · 1 segment · on UR5e · joint limits

move

Rest-to-rest moves through waypoints given as fractions of the room around the start, each leg timed by waypoint_generator (minimum-jerk by default: x = x0 + d (10 s^3 - 15 s^4 + 6 s^5), peaking at 1.875 d / T), with a dwell at each, then back to the start: the house leg of every waypoints tape (the rack runner's q:move_s:dwell_s;...).

needs joint limits · row minimum_jerk_move

tracking evalstop accuracypid tuningdemo
trajectory = move(ur5e)
move: joint positions in degrees against time

4.1 s · 2,066 samples · 1 segment · on UR5e · joint limits

polynomial_move

A cubic (order=3: position and velocity at both ends) or quintic (order=5: also acceleration) polynomial from the start state to target over duration_s. The start is a State: a configuration starts at rest, a trajectory that ended moving hands its exact state on. The end state is end_velocity_rad_s and end_acceleration_rad_s2 (default rest), so a move can end moving into the next one (chain joins a moving end to a start in that exact state).

needs joint limits

tracking eval
trajectory = polynomial_move(ur5e)
polynomial_move: joint positions in degrees against time

1.0 s · 501 samples · 1 segment · on UR5e · joint limits

time_optimal_path

The fastest timing along a fixed joint path under velocity_fraction / acceleration_fraction of the space's limits, rest to rest: TOPP-RA (Pham & Pham 2018) on a cubic spline through every point, grid_points its grid.

needs joint limits

cycle timespeed limits
trajectory = time_optimal_path(ur5e)
time_optimal_path: joint positions in degrees against time

2.7 s · 1,347 samples · 1 segment · on UR5e · joint limits

trapezoidal_velocity

One synchronised joint move to target (absolute joint positions, rad) under a trapezoidal velocity profile: accelerate, cruise, decelerate (Pilz PTP's profile; a triangle when the distance is too short to cruise). Every joint arrives together: the slowest one sets the time, the others are scaled to it, so the joint-space line is straight.

needs joint limits

tracking evalcycle time
trajectory = trapezoidal_velocity(ur5e)
trapezoidal_velocity: joint positions in degrees against time

0.8 s · 419 samples · 1 segment · on UR5e · joint limits

via_point_spline

One smooth motion through via_points (M x J absolute joint positions, rad) without stopping at them, at rest at the start and at the last one: the blended sequence of Pilz (a corner is cut, never stopped at), or a spline through the points.

needs joint limits + jerk limits

tracking evalcycle timedemo
trajectory = via_point_spline(ur5e)
via_point_spline: joint positions in degrees against time

61.9 s · 30,943 samples · 1 segment · on UR5e · joint limits

coverage · 8

visit a space: joint-space grids, workspace rasters, random or low-discrepancy targets

cartesian_raster

The tool across a plane in straight rows, one row per row of cell_m cells, boustrophedon, stepping over to the next row (every move a cartesian.follow line, inverse kinematics every eef_step_m), once per tool speed in tool_speeds_m_s.

needs joint limits + forward kinematics + inverse kinematics

workspace coveragetracking evalspeed limits
trajectory = cartesian_raster(ur5e_plus)
cartesian_raster: joint positions in degrees against time

32.4 s · 16,195 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

coverage_greedy_swings

Tapered sine swings on one joint, each at its own (centre, amplitude, frequency), picked greedily by how many empty cells of the joint's (q, qd, qdd) space each adds, until the predicted coverage clears target_coverage_pct (the five-bar crank's coverage set: bam_fivebar coverage_set.pick, sim2real.schedule.joint's cells). The other joints stay at start.

needs joint limits

state coverageinertia idfriction id
trajectory = coverage_greedy_swings(pendulum)
coverage_greedy_swings: joint positions in degrees against time

66.4 s · 33,186 samples · 1 segment · on CAN 11 pendulum · bare limits

lissajous_multi_joint

Each joint of joints (default all) a sine at its own frequency about where it starts, faded in and out so it starts and ends at rest at the start: the frequencies are near-incommensurate, so the joint-space curve fills the room densely with smooth periodic motion (a Lissajous curve; a multisine with one line per joint, so it inherits that analysis).

needs joint limits

state coverageworkspace coveragefull dynamics id
trajectory = lissajous_multi_joint(ur5e)
lissajous_multi_joint: joint positions in degrees against time

60.0 s · 30,001 samples · 1 segment · on UR5e · joint limits

random_waypoints

Seeded random minimum-jerk moves inside the limits: everyday tracking.

needs joint limits · row random_targets

tracking evalsmoke test
trajectory = random_waypoints(ur5e)
random_waypoints: joint positions in degrees against time

13.3 s · 6,666 samples · 1 segment · on UR5e · joint limits

space_filling_pose_set

count stations spread evenly over the space's room (the limit box, or with a reach map the hole-free box around the start), visited one after another with a dwell at each: a pose set. The stations are a Sobol or Halton sequence or a Latin hypercube (method; numpy only), so count poses cover the room with no clusters; seed scrambles them (a random digital shift for Sobol, a random shift for Halton, the strata pairing for the hypercube). Sobol wants count a power of two.

needs joint limits

workspace coveragekinematic calibrationgravity idhoming
trajectory = space_filling_pose_set(ur5e)
space_filling_pose_set: joint positions in degrees against time

85.6 s · 42,808 samples · 1 segment · on UR5e · joint limits

tracking_check

higher-order

Does it follow ordinary moves? count seeded random moves (tracking error, RMS and peak), then home, so the next test begins where this one did.

needs joint limits

tracking evalsmoke test
trajectory = tracking_check(pendulum)
tracking_check: joint positions in degrees against time

5.1 s · 2,567 samples · 2 segments · on CAN 11 pendulum · bare limits

workspace_survey

higher-order

Where can it go, and how accurately? Every reachable configuration on a grid_step grid, neighbour moves only (a points_per_joint box grid without a reach map), then home: coverage, accuracy, calibration poses.

needs joint limits

workspace coverageaccuracykinematic calibration
trajectory = workspace_survey(ur5e)
workspace_survey: joint positions in degrees against time

875.9 s · 437,927 samples · 2 segments · on UR5e · joint limits

workspace_sweep

Visit a grid of configurations: with a reach map, every reachable one on a grid_step grid (rad, a whole multiple of the map's step), moving only between grid neighbours so no leg crosses a hole; without one, a serpentine grid of points_per_joint over joints inside the box shrunk by margin. Coverage, accuracy, calibration poses.

needs joint limits · row joint_grid_snake

workspace coverageaccuracykinematic calibration
trajectory = workspace_sweep(ur5e)
workspace_sweep: joint positions in degrees against time

874.2 s · 437,083 samples · 1 segment · on UR5e · joint limits

standard test · 7

named, repeatable test protocols: repeat floor, speed ladder, ISO 9283 / ISO 230 tests

circular_test

ISO 230-4's circular test (the ballbar's path): the tool traces a circle of diameter_m at a constant feed_m_s in the plane through its start spanned by plane, one revolution plus overlap_rad run-in and run-out at each end, counter- clockwise and then clockwise (directions: "both", "ccw" or "cw"). The quadrant reversals of the axes show as spikes in the circular error: backlash and friction, a cheap two-joint screen.

needs joint limits + forward kinematics + inverse kinematics

tracking evalbacklash idaccuracy
trajectory = circular_test(ur5e_plus)
circular_test: joint positions in degrees against time

20.9 s · 10,473 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

envelope_challenge

higher-order

How does one joint track across its whole envelope? Position, speed and acceleration each pushed to the limits the space states, in one session that starts and ends at home:

needs joint limits

tracking evalstate coveragespeed limitsgravity idsmoke test
trajectory = envelope_challenge(pendulum)
envelope_challenge: joint positions in degrees against time

180.8 s · 90,410 samples · 10 segments · on CAN 11 pendulum · bare limits

iso9283_path

ISO 9283's path test: a straight line (out and back), a circle and a rectangle's corners, each traced cycles times at tool_speed_m_s, in the plane through the tool's start spanned by plane (two directions in the base frame; the robot's own plane on a planar robot). Every element starts and ends where the tool starts.

needs joint limits + forward kinematics + inverse kinematics

tracking evalaccuracyrepeatability
trajectory = iso9283_path(ur5e_plus)
iso9283_path: joint positions in degrees against time

111.3 s · 55,631 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

iso9283_pose_cube

ISO 9283's pose test: five stations P1-P5 on the diagonal plane of a cube inside the reach, visited in order for cycles cycles, each approached from the same direction, dwell_s at each (a pose set: stations joined by min-jerk legs).

needs joint limits + forward kinematics + inverse kinematics

accuracyrepeatabilitystop accuracy
trajectory = iso9283_pose_cube(ur5e_plus)
iso9283_pose_cube: joint positions in degrees against time

397.6 s · 198,793 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

repeat_floor_tape

higher-order

One frozen tape played times times with the same input: the run-to-run floor every sim-vs-real gate is a multiple of (the pendulum contract: sim vs real <= 1.5 x the same-input repeat floor, 5 repeats).

needs joint limits

repeatabilitytracking eval
trajectory = repeat_floor_tape(pendulum)
repeat_floor_tape: joint positions in degrees against time

22.9 s · 11,436 samples · 1 segment · on CAN 11 pendulum · bare limits

sim_to_real_tracking

higher-order

Does the sim track the real joint, at rising speed, above its repeat floor? The pendulum campaign's tapes in the order a session runs them: read the floor first (every gate is a multiple of it), identify the twin, check the PID, then the speed ladder and the motion classes, the held-out seeds last. Each segment says to wait after it (one tape at a time).

needs joint limits

tracking evalrepeatabilityspeed limitsstop accuracypid tuningfriction idinertia id
trajectory = sim_to_real_tracking(pendulum)
sim_to_real_tracking: joint positions in degrees against time

353.9 s · 176,926 samples · 8 segments · on CAN 11 pendulum · bare limits

speed_ladder

Rest-to-rest A -> B -> A moves whose peak speed is a rising fraction of the joint's top speed, each rung repeated with the same input (repeats), plus held-out A/B pairs (held_out, scored only): tracking and stop accuracy as speed rises to the motor's limit (the pendulum campaign's frozen contract, pendulum_goal.py and pendulum_ladder.py).

needs joint limits · row speed_ladder_a_to_b

tracking evalstop accuracyspeed limitsrepeatabilitypid tuning
trajectory = speed_ladder(pendulum)
speed_ladder: joint positions in degrees against time

170.0 s · 85,010 samples · 1 segment · on CAN 11 pendulum · bare limits

calibration · 5

pose sets and sequences that calibrate kinematics, cameras, hand-eye, zeros (homing)

camera_board_views

Tool poses that show one flat target (a printed board, at focus_m) to a camera on the tool at many tilts and positions across the image: Zhang's views for intrinsics and distortion (a pose set: views stations, "<label>: station k").

needs joint limits + forward kinematics + inverse kinematics

camera calibration
trajectory = camera_board_views(ur5e_plus)
camera_board_views: joint positions in degrees against time

41.5 s · 20,743 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

hand_eye_station_set

Tool poses around one point for AX = XB hand-eye calibration, then a held-out check set (a pose set: stations + check_set_stations stations, labelled "<label>: station k"; the entry's check_set lists the check ones).

needs joint limits + forward kinematics + inverse kinematics

hand eye calibrationaccuracy
trajectory = hand_eye_station_set(ur5e_plus)
hand_eye_station_set: joint positions in degrees against time

110.4 s · 55,179 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

hard_stop_seek

One joint pushes toward its hard stop at a slow slewed setpoint (speed_rad_s) under a low torque cap that steps up through cap_steps_nm (a stall at a low cap may be gravity or friction: push harder before calling it the stop), the others held, until it stalls at the top cap; that angle defines the zero. touches > 1 backs off back_off_rad and presses again (N touches averaged). direction: +1 toward the high side, -1 toward the low.

needs joint limits + torque limits

homing
trajectory = hard_stop_seek(pendulum_plus)
hard_stop_seek: joint positions in degrees against time

3.3 s · 1,665 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

kinematic_calibration_pose_set

Static poses chosen to make the calibration's identification Jacobian well conditioned, each held dwell_s for an external measurement (a pose set: stations joined by legs, labelled "<label>: station k").

needs joint limits + forward kinematics

kinematic calibrationaccuracy
trajectory = kinematic_calibration_pose_set(ur5e_plus)
kinematic_calibration_pose_set: joint positions in degrees against time

64.0 s · 32,008 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

return_to_ready

Walk from wherever the arm rests to the space's named home (READY) slowly along joint waypoints that keep margins, then settle: the rig's recover-yourself move as joint waypoints (a pose-free, task-free kind).

needs joint limits + forward kinematics + home pose

homingsmoke test
trajectory = return_to_ready(ur5e_plus)
return_to_ready: joint positions in degrees against time

1.0 s · 501 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

stress · 4

burn-in, heating, endurance and power-up robustness

burn_in_wiggle

Each joint (joint=None on a 1-DOF robot, or every joint in turn on an arm; or the one named) is walked to its named home, then swept about it one joint at a time at rising speeds with the others held: sweeps sweeps (+amplitude, -amplitude, home) at each of speeds_rad_s. Every tick is logged by the player (current, bus voltage, temperature, faults): a pass is no faults and the joint having tracked its sweep.

needs joint limits + home pose

smoke testendurancethermal
trajectory = burn_in_wiggle(pendulum_plus)
burn_in_wiggle: joint positions in degrees against time

15.9 s · 7,951 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

endurance_duty_cycle

higher-order

One duty cycle played cycles times with a labelled gap check every gap_check_every_s of motion: wear, drift and thermal steady state, for hours of play.

needs joint limits + home pose

endurancethermalrepeatability
trajectory = endurance_duty_cycle(ur5e_plus)
endurance_duty_cycle: joint positions in degrees against time

43.5 s · 21,761 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

heating_run

effort-commanded

Hold the rotor at standstill with a constant current at heat_current_fraction of the drive's limit for heat_s, probing the winding (its resistance, read between heats) every probe_every_s, then log the cool-down for cool_s: the motor's thermal model.

needs joint limits + torque limits

thermal
trajectory = heating_run(pendulum_plus)
heating_run: joint positions in degrees against time

1500.0 s · 750,001 samples · 1 segment · on CAN 11 pendulum · + dynamics, drive limit, home (stand-ins from tests/fixtures)

power_up_random_rests

A pose set of power_ups seeded rests, each a station to dwell at: configurations where a hand or a fall can leave the arm, with the awkward ones oversampled (singular 35 %, flipped 25 %, free 40 %), for a power-up or recovery path to be run from each.

needs joint limits + forward kinematics

homingsmoke test
trajectory = power_up_random_rests(ur5e_plus)
power_up_random_rests: joint positions in degrees against time

380.4 s · 190,205 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

task cycle · 8

deployment-shaped motion: pick-and-place cycles, benchmark cycles, contact approaches

adept_cycle

higher-order

The industry cycle-time benchmark: up_m up, across_m across, up_m down, then the same back, cycles times (the Adept cycle: 25 mm, 305 mm, 25 mm; "extended" is 25 / 700 / 25 mm). Six straight cartesian_path lines a cycle, each as fast as the joint limits allow (waypoint_generator defaults to full speed: the duration IS the result), a stop at each corner.

needs joint limits + forward kinematics + inverse kinematics

cycle timespeed limits
trajectory = adept_cycle(ur5e_plus)
adept_cycle: joint positions in degrees against time

2.6 s · 1,325 samples · 6 segments · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

deployment_motion_classes

Seeded random tapes in four motion classes: pickplace (large moves, long holds), cycle (one pair out and back x3), jog (small corrections) and sweep (one slow pass); seeds=HELD_OUT_SEEDS (3, 4, 5) is the sealed held-out set (PID tuna's tapes.evaluation: Zach's "send it random commands and lets see the performance").

needs joint limits

tracking evalstop accuracypid tuning
trajectory = deployment_motion_classes(pendulum)
deployment_motion_classes: joint positions in degrees against time

58.5 s · 29,239 samples · 1 segment · on CAN 11 pendulum · bare limits

meet_moving_point

From rest, meet a point that moves at sync_start_s with its velocity matched and keep the tool on it to sync_end_s, ending there MOVING with it: moving_target_track without the coast to rest. Times are on this trajectory's clock (t = 0 its first sample), as the target's are.

needs joint limits + forward kinematics + inverse kinematics

tracking evalconveyor pick and place
trajectory = meet_moving_point(ur5e_plus)
meet_moving_point: joint positions in degrees against time

1.3 s · 651 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

moving_pick_and_place

pick_and_place's U where the first point moves: approach above it, down onto it, dwell on it, up off it, over to above the second point, down, dwell, up. lift_m along up (base frame); the tool keeps its start orientation.

needs joint limits + forward kinematics + inverse kinematics

conveyor pick and placecycle timetracking eval
trajectory = moving_pick_and_place(ur5e_plus)
moving_pick_and_place: joint positions in degrees against time

4.6 s · 2,284 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

moving_target_track

From rest, meet a point that moves at sync_start_s with its velocity matched, keep the tool on it to sync_end_s, then coast to rest. Times are on this trajectory's clock (t = 0 its first sample), as the target's are.

needs joint limits + forward kinematics + inverse kinematics

tracking evalconveyor pick and placecycle time
trajectory = moving_target_track(ur5e_plus)
moving_target_track: joint positions in degrees against time

2.1 s · 1,051 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

pick_and_place

higher-order

The U between two tool points (xyz, metres): approach above the first (a joint move), down to it in a straight line, dwell, up, over to above the second, down, dwell, up. lift_m along up (a direction in the base frame; on a planar robot its plane's up). The tool keeps its start orientation throughout.

needs joint limits + forward kinematics + inverse kinematics · row pick_and_place_cycle

cycle timetracking evalstop accuracydemoconveyor pick and place
trajectory = pick_and_place(ur5e_plus, pick=tool + (0.08, -0.08, -0.12), place=tool + (-0.08, 0.10, -0.12), lift_m=0.08)
pick_and_place: joint positions in degrees against time

4.0 s · 2,004 samples · 8 segments · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

touch_down_contact

Descend a straight tool line from approach_height_m above a surface, the last touch_stretch_m at a constant touch_speed_m_s, aiming aim_below_m below the surface, dwell dwell_s, lift lift_m (measured from the lowest point) in lift_s: peak force, bounces and press-force error at a chosen touch speed.

needs joint limits + forward kinematics + inverse kinematics

contact evalpid tuningtracking evalconveyor pick and place
trajectory = touch_down_contact(ur5e_plus)
touch_down_contact: joint positions in degrees against time

2.0 s · 1,001 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

track_and_release

The second half of a moving-target cycle: already moving with a point (start is the state a trajectory ends in, moving: pass that trajectory, e.g. meet_moving_point's, the first half), keep the tool where it is in the point's frame for dwell_s, then leave leave_m along leave_direction (base frame; on a planar robot its plane's up) while braking to rest.

needs joint limits + forward kinematics + inverse kinematics

tracking evalconveyor pick and place
trajectory = track_and_release(ur5e_plus)
track_and_release: joint positions in degrees against time

0.7 s · 350 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

hold · 3

hold a pose: settle and read a stop, reject a push, float weightless

disturbance_push

A plain hold of the start pose (home by default) for duration_s; the generated part is the disturbance schedule beside it, in the segment entry: a force of push_n newtons along push_direction (the base frame's x by default) on the tool from push_at_s for push_s seconds (a simulator applies it; on the rig a person pushes at the cue). Recovery time and overshoot are read from the hold after it.

needs joint limits + home pose

disturbance rejectionpid tuning
trajectory = disturbance_push(ur5e_plus)
disturbance_push: joint positions in degrees against time

2.0 s · 1,001 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

hold

Hold where it is and read the settled stop from the hold's final window: the segment that joins two moves, and the stop-accuracy reading itself (the catalog's hold_s and settle window).

needs joint limits · row hold_at_pose

stop accuracypid tuningrepeatabilitysmoke test
trajectory = hold(ur5e)
hold: joint positions in degrees against time

1.0 s · 501 samples · 1 segment · on UR5e · joint limits

weightless_float

effort-commanded

At each of poses admitted, holdable configurations spread over the room: hold under the position loop for hold_s, then drop kp and kd to zero and keep sending the model's gravity torque for float_s. The drift over the float is how well gravity is modelled ("it feels weightless", made measurable).

needs joint limits + torque limits + forward kinematics + dynamics model

gravity idsmoke test
trajectory = weightless_float(ur5e_plus)
weightless_float: joint positions in degrees against time

37.5 s · 18,757 samples · 1 segment · on UR5e · + kinematics, gravity, drive and jerk limits (stand-ins from tests/fixtures)

Every catalog row is generated by a kind.

Names

The stage is trajectory generation. A TrajectoryGenerator is anything that hands back a robot_msgs Trajectory when called: every kind is one. A WaypointTrajectoryGenerator is the one kinds hand their legs' timing to: points and joint limits in, a JointTrajectory out. Minimum-jerk and trapezoid are built in; Ruckig, Ruckig Pro and TOPP-RA come as plugins. A path kind says where the joints go, then hands each leg to the generator passed as waypoint_generator=.

Formerly TimeLaw, then TimeParameterization: the old names still import as the same objects, the old keywords still work, and recipes keep their "time_law" keys.

import json

import numpy as np

from robot_trajectories import TrajectoryGenerator, WaypointTrajectoryGenerator, chirp, waypoint_trajectory_generators
from robot_trajectories.space import limits_from_json

limits = limits_from_json(json.loads(open("examples/can11_limits.json").read())["limits"])

isinstance(chirp, TrajectoryGenerator)            # every kind is a TrajectoryGenerator: call it, get a Trajectory
True
generator = WaypointTrajectoryGenerator.minimum_jerk(peak_speed_fraction=0.6)
leg = generator(np.radians([[0.0], [15.0]]), limits, 500.0)    # points (M, J) + joint limits in, a JointTrajectory out
print(f"{type(leg).__name__}: {leg.t[-1]:.2f} s, {len(leg.t)} samples, peak {np.degrees(np.abs(leg.velocities).max()):.0f}°/s")
JointTrajectory: 0.45 s, 228 samples, peak 62°/s
isinstance(generator, TrajectoryGenerator)        # so a WaypointTrajectoryGenerator is one too
True
sorted(waypoint_trajectory_generators())          # built in, plus whatever plugins are installed
['minimum_jerk', 'ruckig', 'toppra', 'trapezoid']

The plugin seam

Anything this leaf may not import (Ruckig, TOPP-RA, a robot's own kinds) registers itself in its own pyproject.toml, found by Python entry points, never named here. The Ruckig plugin's, as shipped in plugins/robot_trajectories_ruckig:

[project.entry-points."robot_trajectories.waypoint_trajectory_generators"]
ruckig = "robot_trajectories_ruckig:RuckigBackend"

This page was built with the Ruckig and TOPP-RA plugins installed, so the kinds that need them have plots. The page is built by website/build_site.py; every number and picture on it came from that run.