Skip to content

Somya-Bansal159/LQR-control-for-inverted-pendulum

Repository files navigation

LQR-control-for-inverted-pendulum

Implemented LQR control on a cartpole inverted pendulum in OpenGL Glut in C++.

Features:

  • User can play a game for balancing the pendulum by bombarding balls on a cartpole.
  • Also he can view LQR control acting on a cartpole pendulum.
  • Both the things are running side by side for comparison between human control and LQR control.

How to Run?

  • Install OpenGL Glut library.
  • Clone the repository and run the MiniProject.cbp in your IDE.
  • Run the main.cpp file and You will see the results :)

Note: You can also visualise a free fall simulation of a pendulum and a working LQR in matplotlib.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages