On the control of Flexible Robots