Predicted CoM (ghost trail) Support foot Center of mass Fall limit
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

MPC Legged Robot Balance

A quadruped robot walks forward while its sideways balance runs on a simplified inverted-pendulum model. Switch between a naive reactive controller — which only corrects the current-instant balance error — and a receding-horizon Model Predictive Controller, which re-solves a short future trajectory every step and pre-positions footfalls to absorb a disturbance smoothly. Fire a push, tune its strength, and watch the MPC's predicted center-of-mass ghost trail extend further ahead as you raise the horizon length, letting it shrug off pushes that topple the reactive controller.