Control of an Induction Motor Driving a Flexible-Robot for Trajectory Tracking