A Adaptive controller framework in C++
This code is a C++ solution for adaptive controller where masses of the double pendulum are unknown. It has custom implementation of the runge kutta integrator and also solves the lyapunov equation in C++. For visualization a python script is used.
Demo 1
- Starting angle: q1= pi/2 and q2= pi
- Desired Trajectory q1=pi+sin(t) and q2=2pi-cos(t)
The implementation for the adaptive controller is explained in the following link https://www.linkedin.com/pulse/adaptive-controller-shubharanshu-mahapatra-/?published=t
I have used the following method to implement the lyapunov function. Follow the link credits: https://people.kth.se/~eliasj/NLA/matrixeqs.pdf
These instructions is to help you get started
- g++
- Python 3.x
- Numpy
- matplotlib
- make clean
- make
- ./AdaptiveController
- python plot_data.py
- 1.0
- First Release
- Next Release will add a interface and tuneable parameters
- Subhransu Mahapatra