Automatic Gait-Pattern Adaptation Algorithms for Rehabilitation With a 4-DOF Robotic Orthosis | Synapse