Navigation · Trajectories and Path Following · M5-L2 · Intermediate
Build a Velocity Profile
11:15. Scout delivers a tray of sterile instruments to theatre 2. It takes the corridor bends at full speed, the tray tips, and then Scout rolls past the door by a metre before it stops. The route is right. Nobody told the robot how fast to drive at each point.
You will give a route a speed at every point: slow for the bends, no faster than the motors can speed up, slow enough to brake in time for the door, and then put times on it so that a controller knows when each point is due.
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.