How Humanoid Robots Balance and Walk
Why walking on two legs is hard for a machine, and how humanoid robots keep from falling over while they move around people.
A person walks without thinking about it. A humanoid robot has to solve a hard control problem every fraction of a second. Two legs give a small base of support, and the body above them is tall and heavy. If the robot's weight drifts past the edge of its feet, it falls. Everything a walking robot does is built around preventing that.
Balance starts with the center of mass, the point where the robot's weight acts as if it were concentrated. When both feet are flat on the ground, the robot is stable as long as the center of mass projects down to somewhere inside the area between its feet. This region is called the support polygon. Standing still is therefore a matter of keeping a single point inside a shape.
The zero moment point
Walking is harder because the support polygon keeps changing. For part of every step only one foot touches the floor, and the robot is briefly unsupported on one side. Many humanoid controllers use a quantity called the zero moment point, or ZMP. It is the spot on the ground where the forces from the robot's motion cancel out in terms of tipping. If the ZMP stays inside the foot or feet in contact, the robot will not tip over.
A walking planner works backward from that rule. It chooses where the next footsteps go, then generates a motion of the body that keeps the ZMP inside the supporting foot at every moment. A common simplification treats the whole robot as an inverted pendulum, a point mass balanced on a stick. That model is crude, yet it is quick to compute, and it explains why walking robots often bend their knees and sway their hips in a recognizable way.
Sensing the body
A controller can only keep balance if it knows what the body is doing. Humanoid robots usually combine an inertial measurement unit near the pelvis, joint encoders that report the angle of every joint, and force or torque sensors in the feet or ankles. The inertial unit reports tilt and acceleration. The encoders let the controller work out where the limbs are. The foot sensors reveal where the weight is actually pressing, which can be compared to where the planner expected it to be.
None of these signals is perfect. Encoders have backlash, inertial units drift, and foot sensors are noisy when a foot hits the floor. A state estimator blends them into a single best guess about the robot's position and velocity. Delays matter here. If the estimate arrives late, the correction arrives late, and a small wobble can grow.
Stepping to recover
Not every disturbance can be absorbed by shifting weight around. If someone bumps the robot or the floor is uneven, the best response may be to take a step. Researchers describe this with the idea of a capture point, the place where the robot would have to put its foot to come to a complete stop. If the capture point is outside the current support area, the robot must step toward it or it will fall.
Recovery strategies are often layered. For a small push the robot may flex its ankles. For a larger one it may swing its torso or arms to shift momentum. For a bigger one it takes a step, and if even that fails, a good controller switches to a fall response that protects the hardware, for instance by tucking the arms and lowering the center of mass before impact.
Learning to walk
Classic walking controllers are designed by hand from models like the pendulum. A newer approach trains a neural network policy in simulation, rewarding it for staying upright and following velocity commands, and then moves the policy to the real machine. Such policies can look natural and handle rough ground well. They are harder to inspect, which is why careful testing matters more, not less.
How to evaluate balance
Balance is one of the easiest robot behaviors to measure, because failure is obvious. A useful evaluation fixes the behavior, the terrain, the starting pose and the random seed, then records outcomes over many runs. Metrics worth tracking include the fraction of runs that finish without a fall, the distance walked before the first fall, the peak torso tilt, and the size of the largest push the robot survives.
Disturbance tests are especially informative. Apply a push of a known strength at a known time and direction, and record whether the robot recovers. Repeat across many strengths and directions to build a map of what the robot can handle. This turns the vague claim that a robot is stable into a number that can be compared between versions.
Keep the simulation setup written down, including friction, mass values and control frequency. Small changes to any of them can shift results, and a result that cannot be reproduced is hard to trust. That discipline is the main idea behind benchmarking humanoid behavior.
The short version
A walking humanoid keeps its weight over its feet, plans footsteps to match, senses its own motion, and steps or reacts when pushed. Each part can be tested separately, and the best way to improve it is to measure it the same way every time.
Keep reading
How Humanoid Robots Read Human Intent · Robot-to-Human Handovers: Passing an Object Safely · Humanoid Robot Safety Around People · Humanoid robot behavior · Robot behavior evaluation · HumanoidBehavior home · Behavior library