Interactive 3D visualization of Model Predictive Control (MPC) applied to autonomous vehicle parking.
This project demonstrates how robots "look ahead" to plan optimal trajectories while respecting physical constraints. Unlike reactive PID controllers, MPC predicts future states and optimizes control inputs over a time horizon.
Optimization-Based Control:
Non-Holonomic Vehicle Physics:
Interactive Modes:
Visualization:
The bicycle model enforces: ẏcos(θ) - ẋsin(θ) = 0
This constraint prevents sideways motion, forcing the S-curve maneuver in parallel parking.
Algorithm: Gradient descent shooting method with backtracking line search Physics: Euler integration of bicycle model (5 state variables, 2 control inputs) Solver Performance: ~10-50ms per solve on desktop, 20-100ms on mobile Device Adaptive: Reduces horizon length and ghost count on low-power devices
Use the controls to: