Navigation · Trajectories and Path Following · M5-L3 · Intermediate
Tune Pure Pursuit
13:30. On the long east corridor Scout weaves from wall to wall at full speed. When the porter slows it down for the lift lobby, the same controller cuts the corner and scrapes the door frame. Someone has been changing the lookahead for a week and every change fixes one and breaks the other.
You will write the three pieces of pure pursuit yourself: the steering command towards a point, the search for that point on the path, and the rule that sets the lookahead from the speed and the latency of the robot.
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.