Adaptive control of a serial-in-parallel robotic rehabilitation device