GLOBAL KNOWLEDGE ARK

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 chapter

After 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.

01

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.

Read a complete interface contract
BoundaryContractEvidence to retain
Power moduleActuator bus nominal 12 V; controller supply separate; module documentation governs physical useSupply-state report, configuration identity
Destination inputMetres; absolute rail coordinate; permitted 0.000–0.080 mRaw request, units, sequence, acceptance/rejection
Enable inputRequest permission to execute; does not measure motionRequested and reported drive state
State outputMetres, timestamp at acquisition, monotonically increasing sequenceRaw value, time, sequence and validity
Stop requestNormal controlled stop according to this module contractRequest time, applied state and observed response
Fault outputLatched reason; clear requires explicit permitted resetOriginal reason and reset/requalification record
02

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.

03

Check an enable/disable sequence

Read rows in time order. The valid position field is a measurement estimate, not an automatic copy of destination.

Check an enable/disable sequence
Time / sRequestReported stateInterpretation
0.00Read onlyDisabled, x=0.020 m, reference validKnown starting indication
0.10Destination 0.040 m while disabledRejected: not enabledNo new motion accepted
0.20Enable; hold current coordinateReady, acknowledgement freshReady to consider bounded motion
0.30Destination 0.090 mRejected: outside 0–0.080 mKeep prior hold; record rejection
0.40DisableDisabled, x=0.020 mCommand state changed; physical response remains an observation
04

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=80 mm, so the request exceeds it by 10 mm. Rejecting it is the specified behaviour; silently clipping it to 80 mm would introduce a different destination without consent of the task logic.

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

  1. A2 reports disabled and a valid position. Is that contradictory?

    Show the answer and reasoning

    No. Position readback and command permission are separate fields.

  2. 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.

  3. 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.

  4. 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.

  1. ros-controls project2 sources
    1. ros2_control: Hardware Components and hardware interface typesros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentationcontrol.ros.orgRead source
    2. ros2_control: Lifecycle of a Hardware Componentros2_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