Feedforward/feedback laws for the control of flexible robots