Robotics & Mechatronics · Commission one observed axis
Read the command, state and supply interface
Two devices can both expose a field called position while one expects radians and the other expects encoder counts. Before asking an axis to move, write an interface record that connects each field to a physical meaning and to the conditions under which it is valid.
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
Identify permitted command/state signals and supply boundaries for a supplied preassembled axis or its simulation; do not require construction of an unreleased driver circuit.
Read a complete interface contract
This is a fictional preassembled horizontal axis A2. Values below are its supplied teaching contract, not recommended settings for another device. No driver circuit needs to be built.
| Boundary | Contract | Evidence to retain |
|---|---|---|
| Power module | Actuator bus nominal 12 V; controller supply separate; module documentation governs physical use | Supply-state report, configuration identity |
| Destination input | Metres; absolute rail coordinate; permitted 0.000–0.080 m | Raw request, units, sequence, acceptance/rejection |
| Enable input | Request permission to execute; does not measure motion | Requested and reported drive state |
| State output | Metres, timestamp at acquisition, monotonically increasing sequence | Raw value, time, sequence and validity |
| Stop request | Normal controlled stop according to this module contract | Request time, applied state and observed response |
| Fault output | Latched reason; clear requires explicit permitted reset | Original reason and reset/requalification record |
Distinguish readiness from an instruction
A command interface tells a device what is requested. A state interface reports something the device exposes. Neither the variable name nor a software lifecycle label tells you whether torque is physically absent, a brake is engaged or a position reference is known. The supplied module must define those properties separately.
For A2, disabled means motion commands are rejected by its teaching state machine; enabled-ready means a valid in-range command can be accepted. Position remains readable in either state. A fault inhibits new commands and retains its reason. These are A2 semantics. ROS hardware lifecycle labels organise software components, but their physical effects depend on implementation.
Check an enable/disable sequence
Read rows in time order. The valid position field is a measurement estimate, not an automatic copy of destination.
| Time / s | Request | Reported state | Interpretation |
|---|---|---|---|
| 0.00 | Read only | Disabled, x=0.020 m, reference valid | Known starting indication |
| 0.10 | Destination 0.040 m while disabled | Rejected: not enabled | No new motion accepted |
| 0.20 | Enable; hold current coordinate | Ready, acknowledgement fresh | Ready to consider bounded motion |
| 0.30 | Destination 0.090 m | Rejected: outside 0–0.080 m | Keep prior hold; record rejection |
| 0.40 | Disable | Disabled, x=0.020 m | Command state changed; physical response remains an observation |
Do not confuse a signal boundary with an energy boundary
A digital enable signal carries information; the actuator bus supplies energy. A controller may remain online with a missing actuator bus, so a successful network connection does not prove the drive can execute. Conversely, a motor can retain stored mechanical or gravitational energy when a command is disabled.
For physical work, use the equipment’s established operating and isolation procedures. This lesson’s task is to interpret a declared preassembled interface and its supplied records. If a required field or physical state is undocumented, record the unknown and use the supplied-data route rather than guessing a connection.
Why an invalid destination must remain invalid
A request of 0.090 m equals 90 mm. A2’s declared maximum is 0.080 m=
After rejection, preserve the previous accepted command and the actual state. If a display changes to 90 mm merely because it echoes the request, it is a command display, not evidence that the carriage arrived. The next permitted action depends on current position, reference validity and the recorded fault/state contract.
Try the reasoning
A2 reports disabled and a valid position. Is that contradictory?
Show the answer and reasoning
No. Position readback and command permission are separate fields.
Does a framework INACTIVE label establish physical standstill?
Show the answer and reasoning
No. Inspect the actual device contract and observations; lifecycle names alone do not establish the physical state.
What must be added to a field named “position: 0.04”?
Show the answer and reasoning
Unit, coordinate/reference, measurement or command role, timestamp meaning and validity. In A2, 0.04 m means 40 mm.
Why reject rather than quietly change a 90 mm destination?
Show the answer and reasoning
The task requested 90 mm. A silent substitution hides a failed requirement and may invalidate later sequence assumptions.
What to carry forward
An interface record connects units, state, supply and validity to evidence. Readiness and motion are different claims.
References
Sources supporting this lesson’s explanations and examples.
ros-controls project2 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
- Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notes