Collaborative Locomotion Of Quadrupedal Robots: From Centralized Predictive Control To Distributed Control