arXiv:2611.04204cs.RONov 2026

Manuscript Offprint

arXiv:2611.04204

Online iLQR-MPC with Whole-Body Control for Robust Humanoid Locomotion

Xiang Li, Linlin Ou, Ruihan Wu, Xinyi Yu

Xiang Li, Linlin Ou, Ruihan Wu, and Xinyi Yu ∗^{*}

Abstract—Humanoid locomotion requires deciding where to step and how to distribute contact forces. However, a disturbance can invalidate the nominal plan, requiring coordinated revision under constraints that switch with every footfall. To solve this online, the proposed approach employs the single-rigid-body model, which retains attitude dynamics and the full contact wrench. An iterative linear-quadratic-regulator MPC (iLQR-MPC) then jointly optimizes contact forces and footstep locations in a single receding-horizon problem, without a separate step planner. Specifically, contact and motion constraints are incorporated into the backward pass through augmented-Lagrangian and relaxed-barrier penalties. A whole-body controller subsequently maps the plan to joint torques at 500 Hz while preserving contact feasibility. The model-based formulation makes disturbance responses interpretable through explicit costs and constraints, and requires no platform-specific policy training. In MuJoCo simulations, the iLQR-MPC replans at 100 Hz (mean solve time 8.9 ms); the Unitree G1 sustains steady-state walking and recovers from impulsive 245 N forward and 175 N lateral pushes.

Index Terms—Model Predictive Control (MPC), iLQR, Whole-Body Control (WBC), Humanoid Locomotion, Push Recovery.

I. INTRODUCTION

HUMANOID robots must maintain dynamic balance, track footholds, and respect hard constraints (joint limits, torque bounds, and friction cones) on a floating base with dozens of degrees of freedom (DoF) and hybrid dynamics that switch at every contact event. The dominant paradigm pairs a simplified-model MPC with a whole-body controller (WBC), from the Atlas humanoid [1] to recent quadrupeds [2]; a recent survey identifies it as the standard framework [3]. Reinforcement learning offers an alternative through sim-to-real transfer [4], but requires per-platform retraining and gives no formal guarantee on constraint satisfaction.

Within model-based control, competing tasks must be resolved. A weighted-sum objective cannot guarantee safety-critical constraints when they conflict with secondary goals; for a walking humanoid, a violation means a fall. Task-priority control instead enforces tasks in priority order through null-space projection [5], [6], extended to inequality constraints via hierarchical quadratic programming (HQP) [7] and validated on torque-controlled humanoids [8]. Because WBC acts on the instantaneous state alone, it is reactive; MPC adds lookahead by planning contact forces over a receding horizon, but full-order nonlinear MPC is intractable at real-time rates. The standard approach therefore pairs a reduced-model MPC at 50–100 Hz, which plans ground reaction forces and CoM trajectories, with a WBC at 500–1000 Hz mapping the plan to joint torques. Linear MPC based on the zero-moment point (ZMP) [9] and nonlinear contact-implicit MPC [10] have been deployed this way.

External pushes test these constraint margins. Push recovery uses three strategies [11]: ankle (ZMP modulation), hip (angular-momentum regulation), and stepping (footstep adjustment). Stepping is the last recourse because it redefines the support base [12]. Online gait adaptation has followed two directions. The first modifies step timing [13], [14], relying on reduced-order dynamics, chiefly the linear inverted pendulum, for tractability. The second promotes footstep location to a state variable within the MPC, coupled with a foot-velocity control, so footholds and contact forces are co-optimized: Romualdi et al. [15] introduced this on the position-controlled iCub, and Ding et al. [16] applied the same idea within an orientation-aware MPC.

Despite these advances, the standard MPC+WBC pipeline faces two challenges. The first concerns constraint handling in DDP-style nonlinear MPC: most deployed formulations linearize the dynamics and simplify the contact constraints to preserve convexity, so under large disturbances the executed motion can violate friction-cone, unilateral, or ZMP conditions that the plan satisfies. Nonlinear solvers such as differential dynamic programming (DDP) and its Gauss–Newton variant, the iterative linear-quadratic regulator (iLQR) [17], avoid this, and have been demonstrated across multi-contact DDP [18], hybrid contact-implicit iLQR-MPC [19], [20], and reduced-order-guided contact-implicit MPC for humanoids [21]. DDP exploits the temporal structure of the problem, but its weakness is inequality constraints: an SQP step carries them as QP inequalities, whereas augmented Lagrangian and relaxed-barrier penalties fold them into the stage cost. Within DDP, augmented Lagrangian (AL) penalties drive feasibility through adaptive multiplier updates [22], while relaxed barriers (ReB) replace the logarithmic barrier with a quadratic extension that keeps the backward-pass Hessian bounded [23]. Li and Wensing [24] combined the two, assigning AL to switching equality constraints and ReB to inequalities; AL-DDP has since been applied to biped gait generation with centroidal dynamics, but in an offline planning formulation [25]. HS-DDP itself runs offline on a 2D planar quadruped; to our knowledge, no bipedal humanoid controller has run the AL+ReB pairing inside an online receding-horizon MPC, where the narrower stability margin makes the constraint handling harder. The second challenge is structural: a reduced-model plan is a reference, not a feasible whole-body motion. The single-rigid-body (SRB) model omits limb momentum [28] and joint-level

The authors are with Zhejiang University of Technology, Hangzhou, China.

∗^{*}Corresponding author: Xinyi Yu (e-mail: yuxy@zjut.edu.cn).

Experiment videos: https://anonymous.4open.science/r/ilqr-wbc-humanoid/

Figure

Fig. 1. Overall control architecture. A reference-planning module supplies the CoM reference, nominal footholds, and contact schedule. The reduced-model iLQR-MPC computes the contact wrench and footstep placements online from centroidal state feedback, with contact and motion constraints entering the cost JJ as augmented-Lagrangian and relaxed-barrier penalties. The whole-body controller maps this plan to joint torques via task-priority projection, a dynamics QP, and inverse dynamics, using joint state feedback, with the QP enforcing the floating-base block of the full whole-body dynamics and contact feasibility.

limits, and returns a resultant wrench per foot rather than joint torques; completing the plan in joint space is left to the execution layer. Prior work resolves this in one of three ways: tracking the MPC force references at high priority [8] can produce infeasible joint commands; tracking motion references [2] forgoes force-level planning; and optimizing the full whole-body dynamics directly [26] remains costly. A whole-body QP that co-optimizes contact-force increments and task-space acceleration corrections reconciles the plan with the full-body dynamics under all constraints [7], [27]. The WBC is bounded by the plan it receives: it reshapes the contact wrench and the base acceleration, but it cannot move a footstep, so any adaptation the MPC does not plan is left to the ankle and hip strategies within the support polygon the plan already fixed.

The proposed controller addresses both challenges (Fig. 1) with an iLQR-MPC and a whole-body controller; a reference-planning module upstream converts a velocity command into a CoM reference, nominal footholds, and a contact schedule. The contributions of this paper are as follows.

  1. Joint footstep and contact-force planning. The controller jointly optimizes contact forces and footstep locations in a single receding-horizon iLQR-MPC on the single-rigid-body model. Both are re-optimized at every replan, so a push is answered by moving the next footstep and redistributing the stance wrench in the same solve, without a separate step planner.

  2. Online constraint handling. Augmented-Lagrangian and relaxed-barrier penalties place the contact and motion constraints in the backward pass, which keeps the joint optimization practical at replan rate.

  3. Interpretable, model-based control. Every stage is defined by explicit models, costs, and constraints, from the centroidal dynamics in the MPC to the null-space kinematics and floating-base QP in the whole-body layer. A disturbance response can therefore be traced to specific model terms, and no platform-specific policy training is required.

Section IV details the whole-body controller, and Section V reports walking and push-recovery results on the Unitree G1 in MuJoCo.

References (34)