Planar double inverted pendulum