Analysis and Restoration of Human Locomotion