This is the source code I used in my master thesis. The PDF with the thesis can be found here
The paper published with the results can be found here
In this work, I develop new techniques to control an acrobot, an undercontrolled robotic arm of 2 dof.