Text this: Deformation Control in Rest-to-Rest Motion of Mechanisms with Flexible Links