MOTION PLANNING FOR LEGGED ROBOTS ∗