Unit 22 · Integration and evidence
Mission integration
Mission: Connect sensing, movement and logging for one indoor rover visit to a marked point and return. Prerequisites: Chapters 16 and 21.
The interactive version of this unit needs JavaScript. Below are its steps as text.
Steps
1. A missed mark
Press Try the visit.
Why it matters: A sensor, motor and log can each work alone while their connection fails.
2. Find the reading
At the marked point, press Show sensing.
Why it matters: The sensor needs an observation interval before it can provide a value. Here its sample is a simulated 20 °C, separate from your real records.
3. Follow the decision
Press Process reading.
Why it matters: The blue path carries the reading into the decision block. Processing takes time before the motor command is ready.
4. Apply the command
Press Apply command.
Why it matters: A ready command still needs time to reach its effect at the motor. The rover keeps moving during the combined delay in this simplified example.
5. Recall the clock
Press Trace the age.
Why it matters: The three sequential durations form one age budget.
6. Reduce stale travel
Press Shorten delay.
Why it matters: At constant speed less delay means less extra travel.
7. Name the place
Press Compare coordinates.
Why it matters: The same +1 m instruction can mean two different destinations. A world target names a fixed place; a body displacement starts at the rover’s current +0.4 m position.
8. Agree on a frame
Press Fix the contract.
Why it matters: Both pieces now agree that +1 m means the fixed world mark. That fixes the coordinate mistake; it does not remove timing or motion errors.
9. Recall the destination
Press Return to start.
Why it matters: The return uses the declared start and world frame.
10. Add segment errors
Press Add errors.
Why it matters: Each segment contributes an error along the same positive world axis. A +0.1 m start offset, +0.02 m outward error and −0.01 m return error leave +0.11 m; opposite signs can partly cancel.
11. Compare visits
Press Show three visits.
Why it matters: Timestamps and sensor values connect observations to each visit.
12. Plan your evidence
Press Show the full route.
Why it matters: A real test needs three timestamped readings and return logs under consistent conditions.
Go deeper
Timing, geometry and limits
age = sensing duration + processing duration + actuation delay; extra travel = speed × age / 1000
Age runs from observation start to command applied. The toy assumes constant moving speed during that interval and an ideal instantaneous stop after it; it gives no real braking or safety guarantee. It is sequential, with no concurrency or queue. Route motion illustrates event order: animation length is not a physical drive time. The timeline covers only the sensing-to-command interval and excludes travel to the mark and the return. The straight world axis has start 0 m, sample +1 m and a illustrated route initially from −0.2 m to +1.6 m; exploration expands the displayed world axis to contain its calculated endpoint. Return uses the same world frame and start pose. At world +0.4 m, body delta +1 m reaches world +1.4 m; fixing the coordinate contract changes the destination, not an additional error term. Signed start offset and outward and return segment errors refer to the positive world axis.
Optional context
Public video question: What breaks when individually working parts are connected? ROS 2 topics and recording are optional concepts, not prerequisites or validation of this toy or a real-time guarantee. Jazzy is compatible with Ubuntu 24.04; Humble with Ubuntu 22.04. Use a distribution compatible with your existing system; do not mix installed packages.