Block diagram for the closed-loop control system. It shows the high-level controller, the mid-level optimizer and the low-level joint velocity controller. The signals definitions include : user force, : end-effector desired body velocity, : end-effector desired spatial velocity, : end-effector real spatial velocity, : desired joint velocities, : real joint velocities, Fsx and Fsy: real slcera force components in frame {B}, fdx and fdy: desired slcera force components in frame {B}.