GLOBAL KNOWLEDGE ARK

Robotics & Mechatronics · Robot sensors and calibration

Recognise invalid, stale and conflicting sensor records

A number can be plausible and still be unusable. Robot sensing needs a contract for age, quality, reference, sequence and conflicts as well as numerical range.

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

Define which observations are usable for a robot task and how the controller records missing or inconsistent measurements.

01

Define usability for this task

The following contract is original to the teaching example. Its limits are not universal sensor defaults.

Define usability for this task
CheckRequired condition
ValueFinite position in 0–100 mm; explicit invalid code handled separately
ReferenceCoordinate/calibration identity matches task A1
Age0≤receiver time−acquisition time≤0.050 s on a supported common clock
SequenceAdvances for new acquisitions; duplicate is identifiable
QualityDevice validity true; no required diagnostic fault
ConsistencyDeclared cross-sensor difference check, with known coordinate/latency relationships
02

Compare times only when their relationship is known

Subtracting a sensor’s boot-relative timestamp from a computer’s wall clock is meaningless without a mapping. Record clock domain, synchronisation and timestamp event: acquisition, processing or receipt. A negative age can mean a clock error, not a wonderfully fast measurement.

Sequence values can wrap by design; specify how the protocol compares them. A repeated message may be legitimate transport duplication, while a new acquisition with the same numeric position can be valid. Keep these cases distinct.

03

Classify supplied records

Assume receiver time 5.000 s, aligned clocks and the above contract.

Classify supplied records
RecordVerdictReason
x=45 mm; acquired 4.980; A1; goodUsable if other checks passAge 20 ms
x=45 mm; acquired 4.900; A1; goodStaleAge 100 ms
x=45 mm; acquired 5.020; A1; goodInvalid timingFuture by 20 ms under this time model
x=45 mm; acquired 4.990; reference B2Unusable for A1 taskReference mismatch
x=NaN; quality goodInvalid valueQuality flag cannot make a non-number usable
04

Conflicting observations need a model of comparability

Suppose two output sensors report 50 and 54 mm at aligned acquisitions, with stipulated independent bounds±0.5 mm each and the same physical measurand. Their intervals do not overlap; at least one stated measurement/model condition is inconsistent. Do not automatically average them to 52 mm and call the conflict solved.

If one sensor is on the motor and one on the carriage, or they report different times during motion, the difference may be expected. Establish comparable quantities first. A conflict response can mark the task unqualified and use its documented response while preserving raw evidence; it need not guess which sensor is correct.

05

Test validity separately from the nominal task

Inject a stale timestamp, wrong reference, missing field and conflicting value in a supplied replay or simulation. Check that none silently becomes a usable zero. Record which branch is taken and what actuator command follows.

Recovery requires restored observations and task-state assumptions, not just a cleared flag. The scientific question is whether the task ever used an invalid required input, including at boundary times.

Calculate an age and a conflict bound

At receiver 5.000 s, acquisition 4.949 s has age 0.051 s=51 ms and fails the≤50 ms rule. Acquisition 4.950 s is exactly at the boundary and passes that age check.

For two comparable sensors with±0.5 mm bounds each, their stated difference can be at most 1.0 mm if both intervals contain the same true value. A 4 mm difference is incompatible with those assumptions. This is a deterministic interval argument, not a statistical independence claim or identification of the faulty sensor.

Try the reasoning

  1. Can a repeated 45 mm value be fresh?

    Show the answer and reasoning

    Yes, if it is a new valid acquisition with advancing time/identity.

  2. What is wrong with subtracting unrelated clocks?

    Show the answer and reasoning

    The resulting age has no supported meaning. A time-domain relationship is required.

  3. Why not average a large unexplained disagreement?

    Show the answer and reasoning

    Averaging can hide a wrong measurand, reference or failed sensor; comparability and validity come first.

  4. A value passes range and age but uses the wrong calibration identity. Is it usable?

    Show the answer and reasoning

    No. All required contract conditions must hold.

What to carry forward

Usable state is a claim about value, identity, time and conditions. Validity must be checked before the robot uses the number.

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: Controller Managerros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentationcontrol.ros.orgRead source
  2. NIST Technical Note 1297: Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement ResultsBarry N. Taylor, Chris E. KuyattMetrology technical note, web edition1994 Editionnist.govRead source