The equations of motion are calculated using Lagrangian mechanics. The
controller is calculated around the linearized point where all rods
are pointing straight up and the angular velocities are zero. The controller is
the optimal LQR controller. The control signal u
is a torque applied to the
base rod around the origin.
The poles for the open loop system and closed loop system.
Responce of the system with controller.