Inferensys

Glossary

Whole-Body Control (WBC)

Whole-Body Control (WBC) is a hierarchical control framework for legged robots that coordinates all degrees of freedom to execute multiple tasks, such as maintaining balance and tracking foot trajectories, while respecting physical constraints.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
ROBOTICS CONTROL

What is Whole-Body Control (WBC)?

Whole-Body Control (WBC) is a hierarchical, optimization-based control framework for legged and mobile robots that coordinates all degrees of freedom to execute multiple prioritized tasks simultaneously while strictly respecting physical constraints.

Whole-Body Control (WBC) is a hierarchical, optimization-based control framework for legged and mobile robots. It formulates the control problem as a Quadratic Program (QP) that solves for optimal joint torques or accelerations. The core objective is to coordinate all the robot's actuated degrees of freedom to execute multiple, often competing, tasks—such as maintaining balance, tracking foot trajectories, and regulating torso orientation—while strictly respecting physical constraints like torque limits, friction cones, and kinematic feasibility.

The framework operates by assigning strict task priorities. A higher-priority task, like maintaining dynamic stability and avoiding falls, is satisfied exactly. Lower-priority tasks, such as arm manipulation or gaze direction, are then optimized in the remaining null space. This allows a humanoid, for example, to walk while carrying an object, automatically adjusting its arm posture based on leg motions. WBC directly incorporates a full floating-base dynamics model, making it fundamentally distinct from simpler, decoupled controllers.

HIERARCHICAL CONTROL FRAMEWORK

Key Features of Whole-Body Control

Whole-Body Control (WBC) is a hierarchical optimization framework that coordinates a robot's entire kinematic chain to execute multiple prioritized tasks while respecting physical constraints like torque limits, friction cones, and joint ranges.

01

Task Hierarchy & Prioritization

WBC's core mechanism is a strict task hierarchy. Higher-priority tasks (e.g., maintaining balance) are satisfied exactly, while lower-priority tasks (e.g., arm posture) are achieved only in the null space of higher tasks. This is mathematically solved using projected inverse dynamics or null-space projections. For example, a humanoid will always prioritize keeping its Center of Mass (CoM) within the support polygon over reaching for an object.

  • Critical Tasks: Balance, contact force constraints, joint limits.
  • Secondary Tasks: End-effector tracking, posture control, gaze direction.
  • Tertiary Tasks: Energy minimization, comfort posture.
02

Unified Optimization with Constraints

WBC formulates control as a single, unified Quadratic Program (QP). This optimization simultaneously computes optimal joint torques, contact forces, and joint accelerations subject to a full set of dynamic constraints.

Key constraints explicitly modeled include:

  • Actuator Torque Limits: τ_min ≤ τ ≤ τ_max
  • Friction Cone Constraints: Ensures contact forces remain within a pyramid to prevent slipping.
  • Contact Consistency: Forces are only applied at feet in contact with the ground.
  • Dynamic Feasibility: Solutions obey the rigid-body dynamics equation: M(q)q̈ + C(q, q̇) + G(q) = Sᵀτ + J_cᵀF_c. This holistic approach prevents the internal conflicts common in decentralized controllers.
03

Floating Base Dynamics

Unlike fixed-base manipulators, legged robots have a floating base (typically the pelvis or torso) with six unactuated degrees of freedom (3 translation, 3 rotation). WBC explicitly accounts for this by treating the base acceleration as a variable in the optimization. The solver computes the required ground reaction forces that, through the centroidal dynamics, generate the necessary base motion. This is fundamental for generating dynamic motions like jumping or recovering from a push, where the base must accelerate freely.

04

Centroidal Momentum Control

A key subtask within WBC is the regulation of the robot's centroidal momentum (the combined linear and angular momentum of its entire body about its Center of Mass). By controlling the rate of change of centroidal momentum—via the Centroidal Momentum Matrix—the controller directly influences the aggregate motion of the body. This provides a powerful, compact representation for balance. For instance, to counteract a rotational disturbance, WBC can command a specific rate of change of centroidal angular momentum by coordinating all limb movements.

05

Integration with Trajectory Optimizers & MPC

WBC typically functions as a high-frequency (500-1000 Hz) local controller. It is fed desired task references (e.g., footstep locations, swing foot trajectories, CoM motion) from a slower, planning layer. This planner is often a Model Predictive Control (MPC) module based on a Reduced-Order Model (ROM) like the Linear Inverted Pendulum (LIP). The MPC handles long-horizon planning for stability, while WBC precisely executes these plans on the full-order robot model, compensating for dynamic effects the planner ignored.

06

Real-Time Quadratic Programming

The computational engine of modern WBC is a high-speed QP solver. The control problem is transformed into a standard QP form: minimize (1/2)xᵀQx + cᵀx subject to Ax = b, Cx ≤ d. Solvers like OSQP, qpOASES, or ProxQP compute solutions in milliseconds. This enables real-time control at the servo level. The cost function (Q) encodes task errors (e.g., foot tracking error), while the equality constraints (A, b) enforce strict priorities and dynamics, and inequality constraints (C, d) represent physical limits.

CONTROL ARCHITECTURE COMPARISON

Whole-Body Control vs. Related Control Strategies

A technical comparison of Whole-Body Control (WBC) with other prevalent control frameworks for legged and mobile robots, highlighting core architectural differences, constraint handling, and typical application domains.

Feature / MetricWhole-Body Control (WBC)Model Predictive Control (MPC)Central Pattern Generators (CPGs)Impedance/Admittance Control

Primary Control Objective

Execute multiple prioritized tasks (balance, foot tracking, etc.) simultaneously across all joints

Optimize a sequence of control inputs over a finite horizon to minimize a cost function

Generate rhythmic, open-loop motor patterns for periodic gaits

Regulate dynamic relationship (stiffness/damping) between robot position and contact force

Hierarchical Task Prioritization

Explicit Dynamic Model Usage

Full rigid-body dynamics (or centroidal)

Prediction model (often simplified, e.g., LIPM)

Local interaction model (mass-spring-damper)

Native Constraint Handling

Hard constraints (torque limits, friction cones, kinematics) via QP

Soft constraints via cost penalties or hard constraints in optimization

Implicit via compliant behavior

Typical Optimization Formulation

Quadratic Program (QP) solved at ~1 kHz

Nonlinear Program (NLP) solved at ~100 Hz

Coupled oscillator equations

Force/position control law

Reactivity to Disturbances

High (fast QP resolution with feedback)

Medium (limited by prediction horizon & solve time)

Low (requires feedback integration for adaptation)

High (instantaneous force feedback)

Primary Application Domain

Dynamic whole-body manipulation & locomotion on humanoids

Locomotion planning & balance for humanoids & quadrupeds

Stable rhythmic gaits for hexapods & modular robots

Safe physical interaction & compliant assembly

Computational Demand

High (solving dense QP in real-time)

Very High (solving NLP in real-time)

Low (integrating ODEs)

Low (servo-level control)

WHOLE-BODY CONTROL (WBC)

Frequently Asked Questions

Whole-Body Control (WBC) is the hierarchical control framework that enables legged robots to coordinate all their joints and limbs to execute multiple prioritized tasks simultaneously, such as walking while carrying an object. These questions address its core mechanisms, applications, and how it differs from other control paradigms.

Whole-Body Control (WBC) is a hierarchical, optimization-based control framework for legged robots that computes joint torque commands to execute multiple tasks—like maintaining balance, tracking foot trajectories, and controlling the torso orientation—while strictly enforcing physical constraints like torque limits, friction cones, and kinematic feasibility.

It works by formulating the control problem as a real-time Quadratic Program (QP). The core optimization has a quadratic cost function that minimizes the error for a stack of desired tasks, each with a defined priority. Higher-priority tasks, such as maintaining dynamic balance, are treated as hard constraints that must be satisfied. Lower-priority tasks, like moving an arm to a desired pose, are solved for in the null space of higher-priority tasks, meaning they are achieved only if they do not interfere with the primary objectives. The solver outputs optimal joint torques, ground reaction forces, and accelerations at every control cycle (typically 1 kHz).

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.