Distributed Feedback Control Algorithms For Cooperative Locomotion: From Bipedal To Quadrupedal Robots