TL;DR
This paper introduces Contact-Implicit Model Predictive Control (CI-MPC), a novel control framework that allows robots to dynamically manage contact with their environment in real-time. By combining a fast, differentiable contact dynamics solver with a specialized trajectory optimizer, CI-MPC enables robots to generate and execute complex, non-periodic behaviors like pushing against walls or navigating uneven terrain, even when faced with disturbances or model inaccuracies.
What Problem Does This Paper Address?
Controlling robots that interact physically with their environment—making and breaking contact—is a fundamental challenge in robotics. Existing methods often rely on highly specialized models, simplified dynamics, or pre-programmed gaits, limiting their adaptability to new tasks or unexpected situations. While Model Predictive Control (MPC) offers a powerful framework for planning and control, its application to contact-rich scenarios is computationally demanding, often preventing real-time execution or requiring significant simplifications that sacrifice robustness. This paper aims to bridge this gap by developing a general-purpose, fast, and robust MPC approach that can handle complex contact dynamics online.
Methods
The core of CI-MPC lies in its "contact-implicit" formulation. Instead of explicitly modeling contact events as discrete modes, it uses a unified mathematical framework based on complementarity problems (LCPs) to represent contact dynamics. Key methodological contributions include:
- Fast Approximate Contact Dynamics: The paper reformulates contact dynamics as time-varying LCPs. To make these computationally tractable for real-time MPC, they are strategically approximated around a reference trajectory. This involves using Taylor approximations and a custom interior-point solver that exploits the structure of the LCP problem.
- Differentiable Dynamics: Crucially, the LCP solver is designed to be differentiable. This is achieved through implicit differentiation, allowing the system to compute smooth gradients of the contact dynamics. This is vital for the upper-level trajectory optimization.
- Bi-Level Planning: CI-MPC employs a bi-level optimization structure. An upper-level trajectory optimizer plans a sequence of states and controls, while a lower-level solver handles the fast, contact-implicit dynamics. This allows the planner to reason about contact timing and forces.
- Structure-Exploiting Solver: A significant engineering contribution is a specialized interior-point solver for the LCP contact dynamics. This solver leverages sparsity and pre-computation to achieve substantial speedups (e.g., 15x over standard methods for LCP solving).
- Contact-Height Heuristic: To improve robustness to unknown terrain variations, a simple heuristic is introduced that dynamically adjusts the signed-distance function based on detected contact events.
Datasets
The paper does not introduce new datasets. Instead, it evaluates CI-MPC on a variety of robotic systems in both simulation and hardware. These include:
- Simulated Systems: Pushbot, planar hopper, planar quadruped, and planar biped.
- Hardware System: A Unitree Gol quadruped.
The simulations are run at higher frequencies than the reference trajectory to test robustness to sampling rates.
Key Insights and Ideas
- Implicit Differentiation for Smooth Gradients: The ability to compute smooth gradients through non-smooth contact dynamics using implicit differentiation is a key enabler. This allows for more reliable and faster optimization of the trajectory planning problem.
- Interior-Point Solvers for Contact Dynamics: Using interior-point methods for LCPs, which relax complementarity constraints during iterations, is crucial for obtaining smooth gradients, unlike active-set methods that return subgradients.
- Bi-Level Optimization for Contact Reasoning: The separation into an upper-level planner and a lower-level dynamics solver allows the system to effectively reason about contact events and generate novel contact sequences online.
- Approximations for Real-Time Performance: Strategic approximations of contact dynamics and trajectory optimization (e.g., fixed number of iterations, warm-starting) are essential for achieving real-time performance, even if they slightly deviate from perfectly accurate physics.
- Generalizability: The framework is designed to be general-purpose, applicable to a wide range of robotic systems with contact, without requiring system-specific simplifications or gait generators.
Key Results
- Real-Time Performance: CI-MPC achieves real-time rates on hardware, with planning times consistently below the reference time step for various systems (e.g., 0.014s for PushBot, 0.01s for hopper and quadruped).
- Robustness to Disturbances: The system successfully recovers from significant disturbances, such as large impulses on the PushBot and random initial conditions for the hopper and quadruped (Fig. 7).
- Adaptability to Unknown Terrain: The CI-MPC policy, with a simple contact-height heuristic, can robustly track reference gaits on uneven and varying terrain (Fig. 4, Fig. 6).
- Generation of New Contact Sequences: The controller can discover and execute novel contact sequences online in response to unexpected events, as demonstrated by the PushBot recovering from a disturbance (Fig. 2) and the quadruped's trotting gait adapting to a disturbance (Fig. 8).
- Tracking Complex Trajectories: The system can track non-periodic and complex trajectories, such as a hopper performing a front flip (Fig. 3), which are beyond the capabilities of traditional heuristic controllers.
- Speedup: The structure-exploiting solver for LCPs provides a significant speedup (factor of 15 for LCP solving, 2.5x for CI-MPC overall) compared to naive approaches.
Limitations and Future Work
- Approximations: While effective, the approximations in the online trajectory optimization problem (e.g., short planning horizons) might limit performance in highly dynamic scenarios or those requiring very long-horizon planning.
- Contact Model: The paper uses a simplified point-contact model for hardware experiments. Future work could explore higher-fidelity convex approximations of contact dynamics, including second-order friction cones, for more accurate sliding contact tracking.
- Reliability of Reference Trajectory Generation: Generating high-quality reference trajectories for CI-MPC, often done with contact-implicit trajectory optimization, can be notoriously difficult due to convergence issues. Improving the reliability of this offline stage is crucial for practical deployment.
- Generalization to Manipulation: The current work focuses on locomotion. Extending CI-MPC to manipulation tasks, which often involve slower dynamics and quasi-static models, is a promising future direction.
- Hardware Model Simplification: The hardware experiments used a simplified point-foot model. Extending the framework to more complex models that include leg dynamics could further improve performance.
- Implementation Efficiency: Further improvements in speed and reliability could be achieved with more efficient C/C++ implementations, potentially utilizing multi-threading.
- Behavior Composition: Developing a library of template behaviors and a high-level agent for composing them could enable more complex, long-horizon plans.
Summary updated