TL;DR
This paper introduces Contact-Implicit Model Predictive Control (CI-MPC), a framework that enables robots to reason about making and breaking contact with their environment in real-time. By pairing a bi-level trajectory optimization formulation with a custom, structure-exploiting interior-point solver, the controller can dynamically discover new contact sequences online and successfully run at up to 100 Hz on real quadrupedal hardware.
What Problem Does This Paper Address?
For legged robots and manipulators, interacting with the world means constantly making and breaking contact. Mathematically, these contact events introduce non-smooth, discontinuous physics (e.g., sudden impact forces and friction switches).
Traditionally, roboticists handle this in one of two ways:
- Pre-specifying contact sequences (gaits): Forcing the robot to follow a strict schedule of when feet should touch the ground. This breaks down if the robot is pushed or encounters unexpected terrain.
- Simplifying the physics: Using reduced-order models (like a single rigid body or centroidal dynamics) that ignore leg mass and kinematics to keep optimization computationally tractable.
While full "contact-implicit" optimization can plan both motions and contact schedules simultaneously, it has historically been far too slow for real-time feedback control (MPC), often taking minutes to solve a single trajectory. This paper bridges that gap, achieving real-time performance without sacrificing the ability to reason about new contact modes online.
Methods
The core innovation of CI-MPC is a bi-level planning formulation that splits the tracking problem from the contact dynamics:
- Lower-Level Contact Dynamics: The authors approximate the robot's rigid-body dynamics, signed-distance functions, and friction cones using strategic Taylor expansions around a pre-computed reference trajectory. Crucially, they explicitly retain the complementarity constraints that govern contact switching. This transforms the complex nonlinear contact physics into a sequence of time-varying Linear Complementarity Problems (LCPs).
- Custom Structure-Exploiting Solver: To solve these LCPs rapidly, the authors developed a custom interior-point solver. It leverages a Schur complement trick to isolate the small contact-space equations from the larger joint-space equations. Most of the large matrix factorizations are pre-computed offline, reducing the online computational complexity from cubic in the robot's state size to cubic only in the number of active contacts.
- Smooth Gradients via Implicit Differentiation: Standard LCP solvers use pivoting methods that yield harsh, non-smooth subgradients. CI-MPC instead differentiates through the intermediate states of its interior-point solver (where complementarity constraints are slightly relaxed). This provides smooth, informative gradients that guide the upper-level optimizer through contact transitions.
- Contact-Height Heuristic: To handle uneven, unmodeled terrain, a simple estimator updates the expected ground height online whenever a contact force is sensed.
Datasets
Not discussed in the paper. The method is evaluated using custom rigid-body simulation environments (implemented in Julia) and physical hardware validation rather than standard datasets.
Key Insights and Ideas
- Keep Complementarity, Linearize the Rest: The "aha moment" is that you don't need to solve full nonlinear contact physics online to get emergent contact behaviors. Linearizing the smooth dynamics while keeping the non-smooth complementarity constraints explicit provides a highly accurate local approximation that can still decide to place a foot down early or react to a wall.
- The Virtue of Imperfect Physics: For real-time control, solving contact physics to extreme precision is wasteful. By fixing the interior-point relaxation parameter ($\kappa \approx 10^{-4}$) during the planning phase, the solver intentionally "softens" the contact boundaries. This numerical softening dramatically improves optimization convergence and provides smooth gradients, while keeping physical interpenetration to a sub-millimeter level.
Key Results
The authors validated CI-MPC across several simulated systems (PushBot, Hopper, Planar Quadruped, Planar Biped) and on a physical Unitree Go1 quadruped.
Computational Speedups
- The custom structure-exploiting LCP solver achieved a 15x speedup compared to standard LAPACK LU decomposition.
- This directly translated to a 2.5x overall speedup for the CI-MPC loop, keeping planning times well within real-time budgets (e.g., ~14 ms for the PushBot example, whereas a Mixed-Integer alternative took 180 ms and failed real-time constraints).
Emergent Behaviors & Robustness
- Push Recovery: When a simulated PushBot received a massive lateral impulse, the controller automatically extended its arm to brace against a nearby wall—a completely unplanned contact sequence (see Figure 2 in the paper).
- Model Mismatch: In simulation, a planar quadruped successfully tracked its gait even when carrying an unmodeled 3-kg payload (a 25% increase in nominal mass).
- Hardware Feasibility: On the real Unitree Go1, the controller successfully modulated foot placement online to reject physical shoves, transition to standing against a wall, and step onto an elevated platform at a 100 Hz control rate.
Limitations and Future Work
- Reference Trajectory Dependence: CI-MPC still requires a high-quality offline reference trajectory to linearize around. Generating these references remains a notoriously brittle and slow process.
- Short Horizons: The planning horizons are relatively short (0.1 to 0.25 seconds), meaning the robot cannot plan long-term strategic maneuvers online.
- Friction Approximations: The contact model uses a linearized pyramidal approximation of friction cones rather than truer second-order cones, which may limit accuracy during highly dynamic sliding maneuvers.
- Extension to Manipulation: The current work focuses heavily on locomotion; extending this to dexterous manipulation with many moving parts remains an open challenge.
Summary updated