Closed-Loop Control And Variable Constraint Mechanisms Of A Hybrid Neuroprosthesis To Restore Gait After Spinal Cord Injury