Dynamic Locomotion and Whole-Body Control for Quadrupedal Robots