A quick test of a swingup controller for a CartPole robot using an iterative LQR controller. Instead of using a backwards pass the optimal control at each step is calculated using convex optimisation. It takes around 100 iterations to converge.
Code should be quite easiliy adaptable for study of other systems.
python3 main.py
- Cvxpy
- Numpy
- Matplotlib
- Sympy
