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 chapterAfter reading, you can
Define which observations are usable for a robot task and how the controller records missing or inconsistent measurements.
Define usability for this task
The following contract is original to the teaching example. Its limits are not universal sensor defaults.
| Check | Required condition |
|---|---|
| Value | Finite position in 0–100 mm; explicit invalid code handled separately |
| Reference | Coordinate/calibration identity matches task A1 |
| Age | 0≤receiver time−acquisition time≤0.050 s on a supported common clock |
| Sequence | Advances for new acquisitions; duplicate is identifiable |
| Quality | Device validity true; no required diagnostic fault |
| Consistency | Declared cross-sensor difference check, with known coordinate/latency relationships |
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.
Classify supplied records
Assume receiver time 5.000 s, aligned clocks and the above contract.
| Record | Verdict | Reason |
|---|---|---|
| x=45 mm; acquired 4.980; A1; good | Usable if other checks pass | Age 20 ms |
| x=45 mm; acquired 4.900; A1; good | Stale | Age 100 ms |
| x=45 mm; acquired 5.020; A1; good | Invalid timing | Future by 20 ms under this time model |
| x=45 mm; acquired 4.990; reference B2 | Unusable for A1 task | Reference mismatch |
| x=NaN; quality good | Invalid value | Quality flag cannot make a non-number usable |
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.
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=
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
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.
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.
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.
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.