Unit 16 · Perception & Navigation · about 96 min core
Planning, stop and recovery
Mission: Drive a marked rover route and stop its front bumper before the pre-marked boundary.
The interactive version of this unit needs JavaScript. Below are its steps as text.
Steps
1. Mark the mission
Select “Move along the route” and compare the marked route with the readout.
Why it matters: The mission is to travel the marked route and stop before the line. The front bumper is the position reference.
2. Choose the corridor
Select “Show the route” and compare the marked route with the readout.
Why it matters: A finite waypoint plan stays within the marked allowed corridor. This geometry does not prove the response is safe.
3. Set the boundary
Select “Show the boundary” and compare the marked route with the readout.
Why it matters: The pre-marked boundary is the reference for clearance, with the soft obstacle beyond it. An obstacle response can override the route.
4. Wait for the cue
Select “Run the delayed approach” and compare the marked route with the readout.
Why it matters: The cue is known in this toy example, but arrives after a delay. Constant speed during the delay consumes distance before braking begins.
5. Slow to a stop
Select “Run the braking approach” and compare the marked route with the readout.
Why it matters: Braking uses a fixed positive deceleration on a flat floor. Speed falls steadily to zero and the rover then holds.
6. Try more speed
Select “Run the faster approach” and compare the marked route with the readout.
Why it matters: Only speed changes here: 1 m/s becomes 2.4 m/s, with delay held at 0.5 s and deceleration at 1 m/s². Both travel during delay and braking distance increase. The toy overrun is displayed in full, without collision dynamics.
7. Try weaker braking
Select “Run the weaker-braking approach” and compare the marked route with the readout.
Why it matters: Keep the previous 2.4 m/s speed and 0.5 s delay, then reduce only deceleration from 1 m/s² to 0.6 m/s². Braking distance increases from 2.88 m to 4.8 m. Real traction can vary, so this example does not predict an unknown floor.
8. Compare clearance
Select “Compare the stop” and compare the marked route with the readout.
Why it matters: This comparison returns to the baseline 1 m/s speed, 0.5 s delay and 1 m/s² deceleration. Clearance equals boundary position minus front-bumper stop position. Equality is zero margin, not success.
9. A missed obstacle
Select “Show the hold” and compare the marked route with the readout.
Why it matters: A blind spot may mean no cue arrives. Manually stop or hold and inspect; the cue-based formula cannot guarantee an unknown delay.
10. Recover deliberately
Select “Show recovery” and compare the marked route with the readout.
Why it matters: Stop and hold, inspect and remove the hazard or replan, then manually rearm and command. A clear sensor alone never restarts the rover.
11. Repeat the example
Select “Repeat the approach” and compare the marked route with the readout.
Why it matters: Identical simulated inputs produce the same result. Five replays are not five physical trials.
12. Prepare the real route
Select “Show the starting route” and compare the marked route with the readout.
Why it matters: The notebook separates the worked example from blank real trials. A physical drive cutoff removes motor drive but the rover may coast.
Go deeper
Toy stopping calculation
d_delay = v × τ; d_brake = v² / (2a) d_total = d_delay + d_brake; t_stop = τ + v / a clearance = boundary − front-bumper position
Flat floor, known cue, constant speed before braking and fixed positive deceleration. No hardware guarantee: unknown latency, blind spots and traction invalidate a guaranteed prediction. A positive toy clearance is not a real-hardware safety certification.
Video question: How much room does a robot need to stop? Compare distance during delay and distance while slowing.
Optional ROS 2 concepts and recording references below require a compatible distribution and basic programming and command-line experience. They are not prerequisites for this lesson or a validated safety controller.