Navigation · Safety, Uncertainty and Recovery · M7-L1 · Beginner
Size the Safety Margin
11:20. Scout rounds the corner by the pharmacy at full speed and meets a porter with a trolley. The brakes work, the sensors saw the trolley at once, and Scout still touches it. Nothing is broken: the speed limit was set for a different corridor.
You will compute how far Scout travels before it stops, turn that around into a speed limit for the distance it can see, and then add a person who keeps walking while Scout brakes.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.