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 chapterAfter reading, you can
Validate units, continuity, speed/acceleration bounds and command sampling for a provided trajectory without authoring a new planning algorithm.
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.
| Time / s | Position / mm | Segment mean speed / (mm/s) |
|---|---|---|
| 0.0 | 0 | — |
| 0.1 | 1 | 10 |
| 0.2 | 3 | 20 |
| 0.3 | 13 | 100 |
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.
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.
| Time / s | Position / mm | Velocity / (mm/s) |
|---|---|---|
| 0.0 | 0 | 0 |
| 0.1 | 1 | 20 |
| 0.2 | 3 | 20 |
| 0.3 | 4 | 0 |
Use the profile law to check between samples
Acceleration magnitudes in the two ramps are 20/0.1=
The integrated ramp distances are½×
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=
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
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.
Do linear position knots establish finite acceleration at velocity jumps?
Show the answer and reasoning
No. Ideal slope jumps have unbounded instantaneous acceleration.
What is the corrected profile’s maximum acceleration magnitude?
Show the answer and reasoning
200 mm/s² under its supplied piecewise law.
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.