Design and optimization of hybrid zero dynamics for a bipedal walking robot with series elastic actuators