Skip to content

AnujithM/MPC-vs-LQR.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •