Robotics & Mechatronics · First achievement: sense, move, stop and explain
Diagnose and recover a simple complete-system fault
A recovered connection is not yet a recovered robot task. Use the complete sense-move-stop record to find a fault, preserve what happened and decide which state assumptions must be re-established before another task.
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
Locate one interface or stale-data fault, preserve the initial evidence and demonstrate that recovery restores the stated task.
Read the supplied fault chronology
The receiver and acquisition clocks are declared aligned. Maximum usable age is 50 ms. The task is the preceding threshold stop exercise.
| Receiver time / s | Acquisition time / s | x / mm | State/event |
|---|---|---|---|
| 2.40 | 2.39 | 68 | MOVE; fresh |
| 2.42 | 2.39 | 68 | MOVE; repeated record |
| 2.44 | 2.39 | 68 | Age 50 ms; at allowed boundary |
| 2.46 | 2.39 | 68 | Age 70 ms; invalid; FAULT_RESPONSE |
| 2.60 | 2.59 | 72 | Communication restored; task remains inhibited |
The threshold may have been crossed while evidence was missing
At 2.46 s, the old 68 mm reading cannot establish that the carriage remains below 70 mm. The appropriate inference is “current task position unknown from this path, ” not “keep moving because 68<70.” The task’s declared stale-data response must run independently of the threshold test.
A drive-reported enable state and a live receiver do not prove a live sensor acquisition. Preserve the command/state sequence and compare local acquisition evidence with received identity. This separates a stalled acquisition process from a transport/cache fault without adding uncertain motion.
Restore assumptions in a deliberate order
First retain the original fault and apply the module’s documented response. Then restore the observation path and verify fresh identity, correct units and reference. Establish current physical or simulated position through the permitted reference method. Require an explicit accepted new task rather than replaying an old MOVE request.
If reference continuity was lost, a fresh timestamp does not repair it. Re-reference under the configured procedure and update the record. If a retained reference remains supported, record that evidence. Recovery should be proportional to the uncertainty, not a ritual that erases every calibration record.
Check the task after recovery
This constructed retest returns to the original 20 mm starting reference before issuing a new command identity. It is supplied-data evidence, not a hardware run.
| Check | Retest evidence | Conclusion |
|---|---|---|
| Freshness | Every supplied state age 10 ms; advancing sequence | The stale-data defect is absent from this retest |
| Threshold | Fresh 70 mm at 2.50 s | Valid trigger |
| Applied ramp | Begins 2.60 s | Stipulated 0.10 s delay |
| Endpoint | 74 mm at 2.80 s; retained stopped state | Model task criterion met |
| Replay resistance | Old task identity rejected after recovery | No automatic old-motion resumption in this supplied case |
Separate recovery success from broader reliability
One corrected run establishes recovery for this injected case and configuration. It does not establish network reliability, every disconnect timing or physical stop performance. Test different fault phases and durations when the task claim requires them.
A good report names the fault evidence, unresolved alternatives, exact repair, reference treatment and task retest. It keeps the failed record alongside the successful one, so a later change can be compared with the same question.
Explain the dangerous-looking inference error
At 2.46 s, state age=
At 2.60 s a new 72 mm indication arrives. It establishes a new observation under its validity/reference conditions, but does not retroactively fill the missing interval. A restart decision needs current state and a new task identity.
The recovered task ends at 74 mm using fresh records and a known initial state. State precisely that the supplied-data recovery case passed, keeping physical response and broader fault coverage open.
Try the reasoning
Why is “communication restored” insufficient to restart?
Show the answer and reasoning
The robot may have moved, lost reference or retained an old command. Fresh state, supported reference and explicit new-task acceptance are needed.
At age exactly 50 ms, is the record valid under the stated maximum-age rule?
Show the answer and reasoning
Yes, if every other validity condition holds. Age greater than 50 ms is invalid. Define this boundary explicitly.
What if a new value arrives with an old reference identity?
Show the answer and reasoning
Fresh timing does not fix the reference mismatch. Resolve coordinate/reference validity before using it.
Which evidence closes the original task after repair?
Show the answer and reasoning
A matched new run with known start, valid threshold decision, applied response, observed endpoint and end state; a connection indicator alone does not.
What to carry forward
Recovery restores the evidence chain and task state, then demonstrates the original task again. Preserve what remains untested.
References
Sources supporting this lesson’s explanations and examples.
ros-controls project3 sources
- ros2_control: Hardware Components and hardware interface typesros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- ros2_control: Lifecycle of a Hardware Componentros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- ros2_controllers: diff_drive_controllerros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- Assembly Performance Metrics and Test MethodsNIST Intelligent Systems DivisionResearch program overview