Receding-Horizon Motion Planning Of Quadrupedal Robot Locomotion