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.
Glossary
Whole-Body Control (WBC)

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.
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.
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.
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.
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.
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.
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.
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.
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.
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 / Metric | Whole-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) |
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).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Whole-Body Control (WBC) is a core framework within legged robot locomotion. These related concepts define the mathematical models, stability criteria, and control strategies that WBC integrates and optimizes.
Centroidal Dynamics
Centroidal dynamics governs the relationship between the net external wrenches (forces and moments) acting on a robot and the motion of its center of mass (CoM) and its centroidal angular momentum. It is a critical simplification used in WBC, as it allows planners to reason about the robot's overall motion without solving the full multi-body dynamics. In WBC, tasks like balance are often formulated as constraints or objectives on centroidal quantities, which are then distributed to individual joints.
Quadratic Program (QP) Formulation
The Quadratic Program (QP) formulation is the standard mathematical optimization problem at the heart of most WBC implementations. It provides a computationally efficient framework for resolving multiple, potentially conflicting tasks. The core structure is:
- Cost Function: A quadratic expression that penalizes deviations from desired tasks (e.g., foot tracking error, desired torso orientation).
- Linear Constraints: Hard limits that must be satisfied, such as:
- Actuator torque limits
- Friction cone constraints for foot contacts
- Joint position and velocity limits
- Dynamic consistency between limb motions and centroidal dynamics WBC solves this QP at a high rate (e.g., 1 kHz) to compute optimal joint torques or accelerations.
Model Predictive Control (MPC)
Model Predictive Control (MPC) is a complementary, higher-level controller often used in conjunction with WBC. While WBC operates at a fast rate to satisfy instantaneous constraints, MPC plans over a future time horizon (e.g., 0.5-1.0 seconds). MPC typically uses a simplified model (like centroidal dynamics) to optimize future footstep placements, CoM trajectories, and ground reaction forces. The optimal plan from MPC is then fed as a reference trajectory to the WBC layer, which handles the precise, whole-body execution subject to all physical constraints.
Floating Base Dynamics
Floating base dynamics refers to the equations of motion for a legged robot whose base (e.g., torso) is not fixed to the world, possessing six unactuated degrees of freedom (three translation, three rotation). This is fundamental to WBC, as the controller must account for the coupling between limb movements and base motion. WBC frameworks explicitly incorporate the floating base dynamics to compute the forces and torques required to achieve desired base acceleration while accounting for the inertial effects of moving limbs.
Task-Space Formulation
Task-space formulation is the control paradigm where objectives are defined in operational spaces (Cartesian coordinates) rather than joint space. WBC is inherently a task-space controller. Common tasks include:
- End-effector control: Precisely positioning a foot or hand.
- Center of Mass (CoM) control: Regulating balance.
- Torso orientation control: Keeping the body level.
- Momentum control: Regulating centroidal angular momentum. WBC's hierarchy assigns priorities to these tasks, using null-space projections to execute lower-priority tasks in a way that does not interfere with higher-priority ones.
Inverse Dynamics
Inverse dynamics is the computation of the joint torques required to achieve a desired joint acceleration, given the robot's current state, mass properties, and applied forces. WBC commonly uses an inverse dynamics solver as its final step. After the QP optimization determines the optimal joint accelerations, contact forces, and possibly base acceleration, the inverse dynamics module computes the specific joint-level torques commands to send to the actuators. This separates the high-level optimization from the low-level dynamics computation.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us