The distributed controller architecture for a masterarm and its application to teleoperation with force feedback