Model predictive control of legged and humanoid robots: models and algorithms. (4th March 2023)