Robotics & Mechatronics · Coordinates, trajectories and physical execution
Handle a rejected motion and re-establish position assumptions
A rejected or interrupted motion leaves a requested pose and an actual pose that can differ. Recovery begins with the actual supported state, not with the destination that failed.
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
Respond to an out-of-range or interrupted motion without treating the requested pose as the reached pose.
Read the command and state separately
Fictional axis range 0–80 mm. Receiver and device times are aligned in this supplied log.
| Time / s | Request/event | Observed state |
|---|---|---|
| 0.00 | Accepted destination 40 mm | x=20 mm; reference valid |
| 0.50 | New destination 90 mm rejected | x=30 mm; old task response retained |
| 0.80 | Normal stop requested | x=36 mm; moving |
| 1.00 | Observed stop | x=37 mm; reference valid |
| 1.20 | Device reset | Reference unknown; displayed 37 mm is cached |
Rejection does not mean arrival or automatic clipping
The 90 mm request is 10 mm beyond the declared range. Its rejection establishes no movement to 90 mm. The device’s documented policy determines whether the previous command continues, holds or changes state. In this supplied record, the earlier task continues until the explicit stop.
Retain the rejection reason, previous accepted command, applied output and observed response. Replacing the rejected request with 80 mm without recording a new accepted command creates a fictional history.
Reference loss changes the recovery question
At 1.00 s, the valid observed position is 37 mm. After reset, a cached 37 mm display is not a current referenced observation. Reconnection and new data age must be checked, and reference continuity either established or restored using the configured procedure.
A recovery motion can only be planned from supported current state within the actual module and task constraints. This lesson uses supplied records rather than prescribing a physical homing or escape procedure. General path planning remains with the AI owner.
Build a bounded recovery record
A separate supplied recovery case has the reference re-established before a new task.
| Step | Retained evidence |
|---|---|
| Fault/rejection preserved | Original 90 mm request and reason retained |
| Current state established | Reference R4; independently checked x=35 mm |
| New task chosen | Destination 40 mm=0.040 m; explicit new identity |
| Prediction | +5 mm displacement under R4 |
| Retest | Observed 39.9 mm; task-specific endpoint rule applied |
Do not erase the interrupted task
The original task is interrupted or failed according to its requirement, even if recovery later succeeds. Report both outcomes. Recovery demonstrates a new controlled transition and restored task evidence; it does not retroactively make the rejected command valid.
Compute recovery from the established state
A new supported state of 35 mm and destination 40 mm imply+5 mm travel. Using the old requested 90 mm would imply−50 mm and the wrong direction. Using the cached 37 mm would imply+3 mm without supported reference.
The supplied final 39.9 mm gives−0.1 mm endpoint difference from 40 mm. That is an indication comparison for the new R4 test, not proof of absolute accuracy or qualification of the interrupted path.
Try the reasoning
Does rejecting 90 mm prove the axis stopped immediately?
Show the answer and reasoning
No. Its documented rejection/previous-command policy and observed response determine that.
Why is a cached 37 mm after reset insufficient?
Show the answer and reasoning
Its reference and current acquisition validity are unknown.
What new command corresponds to 40 mm at a metre interface?
Show the answer and reasoning
0.040 m, with explicit new task identity and supported state.
Should recovery overwrite the failed original task result?
Show the answer and reasoning
No. Preserve the failure and the separate recovered-task evidence.
What to carry forward
Recover from observed, referenced state and an explicit new task. Preserve rejection and interruption as part of the record.
References
Sources supporting this lesson’s explanations and examples.
ros-controls project2 sources
- ros2_control: Lifecycle of a Hardware Componentros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- ros2_controllers: Joint Trajectory Controller, Trajectory Representationros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notes