GLOBAL KNOWLEDGE ARK

Robotics & Mechatronics · Coordinates, trajectories and physical execution

Check a supplied trajectory before and during execution

A trajectory is more than a list of destinations. Before execution, check what interpolation the interface uses, whether times and units are coherent, and whether the supplied motion respects its declared bounds.

All numerical tables, scenarios and records are original constructed teaching data unless a specific external dataset is named. No physical experiment is claimed. A worked simulation model is distinguished from an executed simulator.

Lesson preparation and course links

Use the local explanations and supplied units, diagrams, tables and examples; advanced chapters build on the named local chapters. External links are point-of-need depth, not a requirement to finish an entire map.

Back to the Robotics chapter

After reading, you can

Validate units, continuity, speed/acceleration bounds and command sampling for a provided trajectory without authoring a new planning algorithm.

01

Find the inconsistent segment

Original supplied samples are intended for a linear axis. Times must increase strictly; position is in millimetres. Stipulated speed bound is 30 mm/s.

Find the inconsistent segment
Time / sPosition / mmSegment mean speed / (mm/s)
0.00—
0.1110
0.2320
0.313100
02

Check the representation before the numbers

The final segment has 10 mm travel in 0.1 s, so its mean speed is 100 mm/s. Any continuous motion completing that segment must reach at least that speed magnitude somewhere; it cannot satisfy a 30 mm/s bound. Reject before execution.

Interpolation matters. Linear position interpolation gives constant segment velocities with jumps at knots; ideal velocity jumps imply unbounded instantaneous acceleration. Supplying velocities to an interpolator can produce different between-knot motion, including extrema not visible in endpoint positions. Inspect the documented interface rather than assuming straight lines.

03

Check a supplied consistent profile

A separate corrected profile is explicitly piecewise constant acceleration: accelerate 0→20 mm/s over 0.1 s, hold 20 mm/s for 0.1 s, then decelerate 20→0 over 0.1 s. It is a given profile to verify, not a new planning algorithm.

Check a supplied consistent profile
Time / sPosition / mmVelocity / (mm/s)
0.000
0.1120
0.2320
0.340
04

Use the profile law to check between samples

Acceleration magnitudes in the two ramps are 20/0.1=200 mm/s²; the middle is zero. With stipulated bounds 30 mm/s and 250 mm/s², this ideal profile satisfies both. Its acceleration jumps at segment boundaries, so it has no finite jerk bound there. A task requiring bounded jerk needs another supplied profile and check.

The integrated ramp distances are½×20×0.1=1 mm each, with 2 mm during the constant-speed middle. These match the position table. Send this through an interface that actually represents the intended profile; sending positions alone with linear interpolation would create a different motion.

05

Compare commanded and observed streams

Retain application timestamps, queue state, rejected points, actual position/velocity and limit/fault state. A valid input trajectory does not prove the robot followed it. On discontinuity, stale data or rejection, apply the documented task response and preserve the actual endpoint rather than the requested final pose.

Finite-difference checks are useful necessary tests, but sampled positions alone cannot prove all between-sample extrema. Distinguish algebraic precheck, configured interpolation and measured conformance.

Verify distance and sampling consistency

The corrected total distance is 1+2+1=4 mm in 0.3 s. Its mean speed is 13.33 mm/s, while its maximum is 20 mm/s. Mean speed cannot replace maximum-speed checking.

If a device applies setpoints every 20 ms, the 0.1 s segments contain five update intervals. Retain how the profile is sampled and applied. A 40 ms gap can change the executed stream even when the original continuous profile was valid.

Try the reasoning

  1. Why must a 100 mm/s segment mean violate a 30 mm/s maximum?

    Show the answer and reasoning

    A continuous motion cannot average 100 mm/s over that positive displacement while never exceeding 30 mm/s.

  2. Do linear position knots establish finite acceleration at velocity jumps?

    Show the answer and reasoning

    No. Ideal slope jumps have unbounded instantaneous acceleration.

  3. What is the corrected profile’s maximum acceleration magnitude?

    Show the answer and reasoning

    200 mm/s² under its supplied piecewise law.

  4. Why retain observed state after a valid precheck?

    Show the answer and reasoning

    Input conformance and physical execution are separate claims.

What to carry forward

Verify the supplied representation and its between-sample law, then compare actual execution. Endpoint tables alone do not establish every motion bound.

References

Sources supporting this lesson’s explanations and examples.

  1. ros2_controllers: Joint Trajectory Controller, Trajectory Representationros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentationcontrol.ros.orgRead source
  2. Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notesmanipulation.mit.eduRead source