inverted pendulum

This is a video of a simulation I made with python and matplotlib. It is the standard Inverted Pendulum control problem, I implemented an LQR Controller in python-control for stabilization. To bring the pendulum from the down position to upright, I used an energy based controller. Source Code