Bipedal walking robots: From gait analysis to gait synthesis