Whole-body control (WBC) is a family of control methods that compute commands for all joints of a robot simultaneously so that several tasks, such as keeping balance, moving a hand and avoiding joint limits, are achieved together while physical constraints are respected. Within control systems in robotics, it is the standard approach for humanoids, legged robots and mobile manipulators, where the base, legs, torso and arms are dynamically coupled and cannot be controlled one limb at a time.
Instead of a separate controller per limb, a whole-body controller treats the robot as one floating-base multibody system and solves, typically at 500 to 1000 Hz, a small optimization or projection problem that maps task goals to joint torques, accelerations or velocities.
How whole-body control resolves many tasks at once
Whole-body control works by expressing every objective as a task defined in operational space and then finding joint commands that satisfy all tasks as well as possible. Each task has a task Jacobian that relates joint velocities to the motion of a point or quantity, for example the position of the right hand, the orientation of the pelvis or the center of mass.
Because a humanoid has more joints than any single task needs, the system is kinematically redundant. The controller exploits this redundancy: the remaining freedom after the most important task is used for lower-priority tasks. Two mechanisms dominate in practice, null-space projection and quadratic programming.
- State estimation delivers the floating-base pose, joint positions and velocities, usually from joint encoders, an IMU and leg kinematics.
- The controller evaluates the rigid-body dynamics model: mass matrix, Coriolis and gravity terms, and contact Jacobians.
- Each task produces a desired acceleration or wrench, often from a PD law on the task error.
- An optimizer or a projection chain computes joint torques and contact forces consistent with the equations of motion.
- Low-level joint drives track the commanded torques, positions or currents.
The following table summarizes the main building blocks and the role each one plays in the loop.
| Element | What it represents | Typical source |
|---|---|---|
| Floating-base model | Six unactuated base coordinates plus joints | URDF or similar robot description |
| Task Jacobian | Mapping from joint velocity to task velocity | Kinematics library |
| Contact constraints | Feet or hands that must not slip or lift | Gait planner or contact scheduler |
| Friction cone | Limit on tangential to normal force ratio | Estimated friction coefficient, often 0.5 to 0.8 |
| Actuator limits | Maximum torque, velocity and position | Motor and gearbox specifications |
Strict and soft task hierarchies
A whole-body controller must decide what happens when tasks conflict, and it does so with either a strict hierarchy or weighted soft priorities. In a strict hierarchy, a lower-priority task can never disturb a higher one; in a weighted scheme, all tasks enter one cost function and the weights express relative importance.
Strict hierarchies are implemented with recursive null-space projectors or with a sequence of quadratic programs, often called a hierarchical QP. Weighted formulations solve a single QP and are faster, but a large weight on one task does not guarantee that another task is untouched. Many practical systems combine both: balance and contact constraints as hard constraints, manipulation and posture as weighted costs.
| Scheme | Priority guarantee | Inequality support | Computational cost |
|---|---|---|---|
| Null-space projection | Strict | Poor, equality tasks only | Low |
| Weighted QP | Approximate | Full | Low to moderate |
| Hierarchical QP | Strict | Full | Moderate to high |
| Operational space formulation | Strict, dynamically consistent | Limited | Low |
A typical humanoid stack places tasks in an order such as contact maintenance, center-of-mass and momentum regulation, torso orientation, end-effector goals and finally a posture task that pulls joints toward a comfortable reference and resolves the remaining redundancy.
Whole-body control compared with related methods
Whole-body control is best understood as an instantaneous, model-based layer that sits between planners and joint servos. It shares ideas with several neighboring concepts in the same topic but differs in time horizon and scope.
| Concept | Scope | Time horizon | Relation to WBC |
|---|---|---|---|
| PID control | Single joint or axis | Instantaneous | Runs below WBC as the joint servo |
| Model predictive control | Reduced or full model | 0.5 to 2 s ahead | Often supplies WBC with targets |
| Impedance control | End effector or joint | Instantaneous | Commonly embedded as one WBC task |
| Force control | Contact wrenches | Instantaneous | Expressed through contact force variables |
| Inverse kinematics | Joint positions | Instantaneous | Kinematic special case of WBC |
The most common architecture today pairs a model predictive controller on a reduced model, such as centroidal dynamics, with a whole-body QP that turns the predicted forces and trajectories into joint torques. The MPC looks ahead; the WBC enforces full-body feasibility at each control tick.
Designing and tuning a whole-body controller
Practical design starts with choosing the control variable: joint torques for torque-controlled robots, or joint velocities and positions for robots with stiff position servos. Torque-based WBC enables compliant contact and accurate force regulation, while velocity-based WBC is easier to deploy on industrial-style actuators.
Tuning concentrates on task gains, task weights and regularization. Gains that are too high excite unmodeled dynamics such as joint elasticity; too low and tasks lag. A small damping or regularization term keeps the QP well conditioned near singular configurations.
| Situation | Recommended choice | Reason |
|---|---|---|
| Torque-controlled legged robot | Dynamics-based QP on torques | Exploits compliance and contact forces |
| Position-controlled humanoid | Kinematic WBC with admittance layer | Matches stiff servo interface |
| Mobile manipulator on wheels | Weighted QP with base and arm tasks | Simple, no balance constraints |
| Uncertain ground friction | Conservative friction coefficient | Reduces slip risk |
| Strict safety task | Hard constraint, not weighted cost | Guarantees priority |
Open-source frameworks and solvers make implementation feasible: rigid-body libraries compute dynamics in tens of microseconds, and dense QP solvers handle problems of 30 to 60 variables within the control period. Integration with middleware such as ROS 2 is common, although the inner loop usually runs in a dedicated real-time thread.
Limitations and common failure modes
Whole-body control is only as good as its dynamic model and state estimate. Errors in link masses, unmodeled cable forces or a drifting base estimate translate directly into torque errors and can cause the robot to fall.
- Model mismatch: inaccurate inertia or friction leads to tracking errors and poor balance.
- Infeasible QPs: conflicting hard constraints leave the solver without a solution, so robust implementations add slack variables.
- Contact switching: abrupt changes in active contacts create torque discontinuities unless tasks are blended.
- Myopic behavior: a purely instantaneous controller cannot plan steps, so it needs a planner or MPC above it.
- Computational latency: missing a control deadline degrades stability more than a slightly suboptimal solution.
A frequent misconception is that whole-body control replaces planning. In reality it guarantees local feasibility, not global success: it keeps the robot balanced and consistent right now, while walking patterns and grasp sequences still come from higher layers.
The idea in brief
A humanoid robot cannot move one arm without affecting its balance, because every joint is connected to every other joint through the body. Whole-body control is the brain that coordinates all joints together. It keeps a list of goals in order of importance, such as do not fall, keep the feet planted, then reach the cup.
Many times per second, it calculates how each motor should push so that the most important goals are met first and the remaining freedom serves the rest. It works much like a person carrying a heavy box who automatically leans back and bends the knees to stay upright.
A practical scenario
A research team operates a torque-controlled humanoid of about 45 kg with 30 actuated joints in a mock warehouse. The robot must open a heavy door with one hand while standing on both feet. A centroidal MPC plans the center-of-mass motion, and a whole-body QP running at 1 kHz converts these plans into joint torques.
The task hierarchy places foot contact and friction cone constraints first, center-of-mass tracking second, the hand impedance task third and a posture task last. When the door resists with roughly 60 N, the controller shifts the hips backward and redistributes foot forces automatically. The result is that the robot opens the door without slipping or stepping, a motion that separate arm and leg controllers could not produce reliably.