From a snapshot to a decision
Perception (the previous lesson) delivers a snapshot: tracked objects, lanes, the car's own pose. Turning that into motion takes three more stages, each working on a different timescale.
- Prediction: for every nearby road user, a set of possible futures over the next several seconds, each with a probability.
- Planning: one trajectory for the car itself, a path with a speed profile, chosen to be safe and comfortable across those futures.
- Control: steering, throttle and brake commands that make the real vehicle follow that trajectory.
The whole loop reruns many times per second. Each cycle the planner produces a plan for several seconds ahead, the car executes only the first fraction of it, and then everything is recomputed from fresh perception. This is receding-horizon planning, and it is why a plan never has to be perfect, only safe for the next slice and recoverable afterwards.
Key idea: prediction and planning are not separable in principle. Other drivers react to what the car does, so the car's plan changes the futures it is trying to predict.

