Navigation · Local Planning and Obstacle Avoidance · M6-L2 · Intermediate
Implement the Dynamic Window
16:30. In the supply aisle Scout drives straight at a rolling shelf, brakes hard at the last moment, and stops with its bumper touching the shelf. The log says every command was "collision free". The shelf was seen 1.2 m ahead; the robot was doing 1 m/s and cannot stop in less than 1 m.
You will build the velocity chooser in three steps: which velocities the motors can reach in one control period, how far an arc is free of obstacles, and which of the candidates can still be stopped in time.
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.