The RETRAINER control system for supporting arm functions