Research
DR-MPC: Fast and Feasible Dynamics-Relaxed Model-Predictive Control for Legged Locomotion
Legged robots need to re-solve an optimization problem many times per second to keep adjusting foot forces, and this must happen on a small onboard computer that is also running state estimation and…

- arXiv
- 2609.20035 · Preprint · not peer-reviewed
- Published
- 2026-09-17
- Authors
- Run Wang, Alapati Tuerxun, Shuo Liu, Wei Xiao, Ján Drgoňa, Yilin Mo, Liang Wu
In plain words
Legged robots need to re-solve an optimization problem many times per second to keep adjusting foot forces, and this must happen on a small onboard computer that is also running state estimation and low-level control.
AI summary
Overview
Research area: Robotics — model predictive control (MPC) for dynamic legged locomotion, with a focus on convex optimization formulations and real-time numerical solvers.
Technical level: Advanced. The paper assumes familiarity with quadratic programming, interior-point methods, Schur complements, and reduced-order locomotion models (single rigid body dynamics).
Scope: The paper proposes a dynamics-relaxed MPC formulation plus a tailored interior-point solver for quadruped locomotion, benchmarks it against HPIPM- and OSQP-based baselines on an onboard computer, and validates it on a Unitree Go1.
What This Paper Is About
Legged robots need to re-solve an optimization problem many times per second to keep adjusting foot forces, and this must happen on a small onboard computer that is also running state estimation and low-level control. Standard MPC treats the prediction model and force limits as hard constraints, which can make the problem infeasible when the state estimate, contact schedule, and dynamics disagree — for example during large disturbances or contact transitions. The authors ask whether deliberately relaxing the dynamics into penalties, rather than enforcing it exactly, produces an optimization problem that is both guaranteed solvable and much faster to solve, without hurting locomotion quality.
Key Contributions
-
A dynamics-relaxed MPC formulation for legged locomotion (DR-MPC). The authors adapt the dynamics-relaxed BoxQP idea to contact-dependent single-rigid-body prediction. Dynamics equalities and affine friction-output constraints become quadratic penalties, leaving only nonempty box constraints — so the QP is feasible by construction without explicit violation slacks.
-
A contact-aware input parameterization. Swing-foot forces are eliminated under the nominal zero-force assumption, and stance forces use contact-aligned move blocking, with finer resolution near the start of the horizon. When enough blocks are available (
N_u ≥ N_c, the number of maximal constant-contact segments), every contact-mode switch gets a block boundary so no block spans touchdown or liftoff. This directly shrinks the effective control dimension while preserving short-horizon control authority. -
A tailored interior-point solver. The relaxed problem has a block-arrow Hessian, so the state and friction-output directions are eliminated via a Schur complement. The solver factorizes only the reduced control system
S ∈ ℝ^{n_r × n_r}atO(n_r³)Cholesky cost, using direct reduced prediction assembly (never forming the fullFandDmatrices), local per-foot friction-block updates, and a preallocated workspace with no heap allocation during iterations. -
Benchmarking and hardware validation. DR-MPC is compared against hard-constrained, soft-constrained, and dynamics-relaxed MPC variants solved with HPIPM and OSQP on the onboard computer, and the complete system is validated on a physical Unitree Go1.
Main Findings
-
Large end-to-end speedups at comparable tracking: Using the same DR-MPC formulation, the authors' implementation achieves median end-to-end MPC speedups of 16.0× over HPIPM and 4.4× over OSQP, with comparable locomotion performance in simulation.
-
Real-time budget met: DR-MPC achieves a median onboard MPC end-to-end time of 4.4 ms, supporting the nominal 100 Hz replanning rate (replanning period 0.01 s, prediction horizon
N = 20, prediction intervalΔt = 0.02s). -
Input parameterization drives most of the gain: In MuJoCo on the onboard processor, the full-input formulation required 46.25 ms with a locomotion metric of 0.367. Swing-force elimination alone reached 21.31 ms and 0.368 (a 2.2× speedup). The selected
N_u = 5contact-aligned configuration reached 4.32 ms and 0.361 — a 10.7× speedup with comparable performance. -
Under-resolved blocking degrades tracking: At
N_u = 3, time fell to 2.99 ms but the locomotion metric rose to 0.565. The authors note thatN_u = 3, 4settings can violate contact alignment, so the degradation cannot be attributed to reduced resolution alone. -
Feasibility is by construction, not exactness: Because the box constraints are nonempty, DR-MPC is feasible as an optimization problem for every state estimate and planned contact schedule. The authors explicitly do not claim that the relaxed dynamics or friction relations are satisfied exactly — residuals are governed by the penalty weights
ρ_dandρ_f. They also state they do not assume relaxation alone improves closed-loop robustness. -
Baseline comparison details: Seven solver/formulation combinations are compared under the same command sequence. All use an interior-point tolerance of
ε = 10⁻³except OSQP-DR, which uses10⁻⁶because looser tolerances caused unstable locomotion. The paper notes that different stopping criteria mean equalεvalues need not imply equal accuracy. Per-configuration timing and tracking numbers for each of the seven configurations are not reported in the portion of the text available here. -
Hardware validation across terrain: The quadruped walks on asphalt, discontinuous flagstones, uneven soil with sparse vegetation, cobblestones, an irregular stone-paved path, and dense grass.
Methodology in Plain English
The robot's body motion is predicted with a simplified "single rigid body" model: a floating torso pushed around by four ground reaction forces, ignoring the mass and dynamics of the legs themselves. This is already an approximation, so the authors argue there is little point in enforcing its equations exactly.
Instead of demanding that the predicted states match the model equations perfectly, they attach a large quadratic penalty to any mismatch and to any violation of the friction-pyramid limits. What remains as hard constraints are simple per-variable lower and upper bounds — force limits, friction limits, state boxes centered on the reference. Since these boxes are nonempty, the optimizer always has at least one answer, so the controller cannot fail by declaring the problem infeasible.
They then shrink the number of decision variables in two ways. Feet that are scheduled to be in the air are assumed to push with zero force and are removed entirely. Feet on the ground are grouped into "blocks" of constant force, with fine time resolution near the beginning of the horizon and coarser resolution farther out, and block boundaries are aligned with the moments feet touch down or lift off. The result is a much smaller optimization problem with a special "block-arrow" sparsity pattern.
For the numerics, they use an interior-point method in a predictor-corrector (Mehrotra) scheme. Because of the sparsity pattern, the state and friction-output variables can be eliminated analytically, leaving a small dense system in only the reduced force variables, which is the only thing Cholesky-factorized each iteration. They exploit the per-foot, per-stage structure of the friction terms to replace one large dense matrix product with many tiny 3×3 or 4×4 updates, and they use BLASFEO for the remaining dense linear algebra. Warm starting reuses the previous solution, shifted forward in time and projected onto the current block structure.
Evaluation compares formulations (hard, soft, and dynamics-relaxed) and solvers (HPIPM, OSQP, and the custom IPM) while freezing the model, estimator, planner, and task, so that timing differences reflect complete configurations rather than relaxation alone. Tracking is scored with a dimensionless metric J_loco combining normalized errors in longitudinal velocity, lateral velocity, yaw rate, body height, roll, and pitch.
Why This Matters
Impact on research. The paper reframes an assumption that is rarely questioned in legged-robot MPC: that the reduced-order prediction model must be enforced as a hard equality. It shows that relaxing this relation changes the optimization structure in a way that a tailored solver can exploit, and it separates the feasibility question (handled structurally, without slacks) from the accuracy question (handled by penalty weights). It also provides a head-to-head benchmark of hard, soft, and relaxed formulations on the same hardware with the same model, which is useful for anyone choosing a formulation.
Real-world applications:
- Quadruped delivery and inspection robots operating on mixed terrain such as asphalt, cobblestones, flagstones, grass, and soil, where contact conditions change unpredictably.
- Search-and-rescue or industrial inspection platforms that must keep replanning at high rate on limited onboard compute.
- Agricultural and construction legged platforms traversing uneven soil and vegetation.
- Any onboard MPC deployment where the planner must share a tight compute budget with perception and state estimation.
Industry relevance. The 4.4 ms median solve time on a Jetson Xavier NX, with 100 Hz replanning, indicates the approach fits within realistic embedded budgets rather than requiring desktop-class computation. The "feasible by construction" property is also attractive industrially, because an infeasible QP at runtime is a safety and reliability failure mode that typically requires hand-tuned fallback logic.
Future Directions
- Execution-time certification. The authors note that BoxQPs admit execution-time-certified algorithms, but the Mehrotra implementation evaluated here has no certified execution-time bound. Adding one would strengthen real-time guarantees.
- Systematic penalty tuning. Tracking accuracy of the relaxed formulation depends on
ρ_dandρ_f(set to1×10⁴and1×10²here); the paper does not offer a principled method for selecting them, and explicitly avoids claiming that relaxation alone improves robustness. - Finer study of contact alignment versus resolution. The
N_u = 3, 4results conflate loss of control resolution with loss of contact alignment; disentangling these effects, and handling gait transitions and gait changes (where the workspace is currently resized) more gracefully, are natural next steps. - Beyond the quadruped and beyond SRBD. The relaxed formulation is orthogonal to the prediction model, so extending it to other legged morphologies or to richer models than the single rigid body is an open direction. The paper does not report such experiments.
Target Audience
Robotics researchers and graduate students working on MPC for legged locomotion; optimization and control researchers interested in structure-exploiting QP solvers and relaxed-constraint formulations; and practicing engineers implementing real-time controllers on embedded hardware who need to know how formulation choices interact with solver performance. Readers need a solid background in convex optimization and numerical methods to follow Sections III and IV in detail.
Authors’ abstract
This paper presents dynamics-relaxed model predictive control (DR-MPC), a novel MPC formulation for legged locomotion, and a tailored interior-point method (IPM) solver. The formulation combines online optimization feasibility by construction with a contact-aware input parameterization. DR-MPC moves the dynamics equality and affine input constraints into quadratic penalties and retains only nonempty box constraints. The resulting box-constrained quadratic program (QP) has a…
The full abstract on arXivRelated papers
- Differentiable Contact Dynamics for Legged Locomotion: Policy Learning and Contact-Implicit Trajectory Optimization 2026-10-26 · cs.RO · Key terms of the title in common
- $TF^2$-Steering: Action Refinement with Tactile Forecasts and Feedback via Velocity-Field Steering 2026-11-01 · cs.RO · Also by Wei Xiao
- FlowPilot: Real-Time World-Action Modeling for Agile UAV Navigation 2026-08-01 · cs.RO · Also by Wei Xiao
- Spectrally Routed Diffusion Policy for Multi-Task Robotic Manipulation 2026-11-03 · cs.RO · Also by Yilin Mo
- UniExo: Unified Multi-Skill Policies for Musculoskeletal Locomotion and Co-Adaptive Exoskeleton Control 2026-09-17 · cs.RO · Key terms of the title in common