Whole-body control

On this page 7

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.

  1. State estimation delivers the floating-base pose, joint positions and velocities, usually from joint encoders, an IMU and leg kinematics.
  2. The controller evaluates the rigid-body dynamics model: mass matrix, Coriolis and gravity terms, and contact Jacobians.
  3. Each task produces a desired acceleration or wrench, often from a PD law on the task error.
  4. An optimizer or a projection chain computes joint torques and contact forces consistent with the equations of motion.
  5. 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.

ElementWhat it representsTypical source
Floating-base modelSix unactuated base coordinates plus jointsURDF or similar robot description
Task JacobianMapping from joint velocity to task velocityKinematics library
Contact constraintsFeet or hands that must not slip or liftGait planner or contact scheduler
Friction coneLimit on tangential to normal force ratioEstimated friction coefficient, often 0.5 to 0.8
Actuator limitsMaximum torque, velocity and positionMotor and gearbox specifications
Core elements of a whole-body controller

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.

SchemePriority guaranteeInequality supportComputational cost
Null-space projectionStrictPoor, equality tasks onlyLow
Weighted QPApproximateFullLow to moderate
Hierarchical QPStrictFullModerate to high
Operational space formulationStrict, dynamically consistentLimitedLow
Comparison of common prioritization schemes

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 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.

ConceptScopeTime horizonRelation to WBC
PID controlSingle joint or axisInstantaneousRuns below WBC as the joint servo
Model predictive controlReduced or full model0.5 to 2 s aheadOften supplies WBC with targets
Impedance controlEnd effector or jointInstantaneousCommonly embedded as one WBC task
Force controlContact wrenchesInstantaneousExpressed through contact force variables
Inverse kinematicsJoint positionsInstantaneousKinematic special case of WBC
How whole-body control relates to neighboring control concepts

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.

SituationRecommended choiceReason
Torque-controlled legged robotDynamics-based QP on torquesExploits compliance and contact forces
Position-controlled humanoidKinematic WBC with admittance layerMatches stiff servo interface
Mobile manipulator on wheelsWeighted QP with base and arm tasksSimple, no balance constraints
Uncertain ground frictionConservative friction coefficientReduces slip risk
Strict safety taskHard constraint, not weighted costGuarantees priority
Typical design decisions and their consequences

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.