Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.71 KB

File metadata and controls

40 lines (25 loc) · 1.71 KB

MPC vs LQR

Python PyBullet License

Includes a Pybullet simulation to demo 2 controllers. Both cars follow smooth reference paths visualized in yellow, with real-time debug lines indicating their positions. As the cars navigate the track, the black car’s trajectory is plotted in red lines, and the white car’s trajectory in blue lines, demonstrating smooth and precise path tracking.

Contents

Usage

  • To run the pybullet demo:
python3 LQR_MPC.py
  • To run the simulation-less demo (simpler demo that does not use pybullet, useful for debugging):
python3 mpc_demo_nosim.py

In both cases the script will promt the user for enter before starting the demo.

The settings for tuning the MPC controller are in the mpc_config class.

Results

Racing car model is from: https://github.com/erwincoumans/pybullet_robots.

Additional Results:

Acknowledgments

Parts of this project page were adopted from the Nerfies page.

Website License

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.