Model Predictive Control for Humanoid Robots, Explained
Short answer: Model predictive control, or MPC, is a method where a robot repeatedly predicts its own motion over a short future window, picks the best sequence of actions, applies only the first one, and then plans again. Humanoid robots use it because walking and balancing depend on what happens a moment from now, not only on what is happening now.
What is model predictive control?
MPC is a control method built on a simple loop. The controller holds a simplified model of the robot. At each step it uses that model to simulate many possible futures over a short horizon, often a fraction of a second to a few seconds. It scores each future against a goal, such as staying upright while moving forward, and chooses the best one. It then sends only the first action to the motors and repeats the whole calculation with fresh sensor data. This is called a receding horizon.
The method grew out of process control in chemical plants in the 1970s and 1980s, where slow systems made heavy computation affordable. Faster computers and better solvers later brought it to robots.
Why does a humanoid robot need to predict ahead?
A walking humanoid is never fully stable. Each step is a controlled fall that is caught by the next foot placement, a problem covered in balance and walking. A controller that reacts only to the present can be too late. By looking ahead, MPC can decide where the next foot should land and how the body should shift before the current step ends.
Looking ahead also helps with limits. The robot must keep its feet from slipping, keep its joints within their ranges and avoid asking motors for more torque than they have. MPC can build these limits into the optimization, so the plan respects them from the start instead of being corrected afterward.
What model does the controller use?
A full humanoid has dozens of joints, and simulating all of them many times per second is too slow. So walking controllers often use a reduced model. The best known is the linear inverted pendulum, which treats the robot as one mass balanced on a point. The same idea underlies the zero moment point approach in the zero moment point. In 2003 Shuuji Kajita and colleagues published a walking pattern generator that used preview control of the zero moment point, an early relative of modern MPC walking controllers.
The reduced model produces a rough plan for the center of mass and the feet. A lower level then turns that plan into joint motion, using methods such as inverse kinematics.
How fast does it have to run?
Speed is the main practical constraint. The optimization must finish before the next control update, and balance loops commonly run at several hundred updates per second up to about one thousand. Engineers keep the problem small by using a simple model, a short horizon, and solvers that exploit the structure of the problem. If the solver runs late, the robot acts on stale advice, which is why compute budgets matter as much as the math.
How is MPC different from reinforcement learning?
MPC computes a plan online using an explicit model and explicit rules. A learned policy, as in reinforcement learning, stores its skill in a neural network trained beforehand, usually in simulation. MPC is easier to inspect and to give hard limits, but it needs a good model and enough computing power. Learned policies react very fast and can cope with messy contact, but they are harder to certify. Many current systems combine the two, for example by using MPC as a reference or a safety layer around a learned controller.
Where does MPC fall short?
- Model error: if the real robot differs from the model, the predictions drift.
- Contact: making and breaking contact with the ground is hard to optimize, so planners often fix the contact schedule in advance.
- Compute: longer horizons and richer models cost more time than the control loop allows.
- Tuning: the cost function that defines a good motion takes expert effort to design.
These limits are one reason the gap between simulation and hardware, described in the sim to real gap, still takes testing on real machines.
Frequently asked questions
Is MPC the same as a plan made once?
No. A one time plan can go stale. MPC replans continuously, so it can correct for pushes, slips and sensor noise.
Does MPC use machine learning?
Classic MPC does not. It uses a physics based model. Researchers now also learn parts of the model or the cost with data.
Do all humanoid robots use MPC?
No. Companies rarely publish their control stacks. MPC is a common tool in published research, and many systems mix it with other methods.
Keep reading
How Humanoid Robots Balance and Walk · What Is the Zero Moment Point in Humanoid Walking? · What Is Inverse Kinematics for Humanoid Robots? · Reinforcement Learning for Humanoid Robots, Explained