Introduction
Physics simulation serves as the foundation for modern robotics, enabling advancements in Reinforcement Learning (RL), Trajectory Optimization (TO), and Model Predictive Control (MPC). However, accurately simulating "contact"—the non-smooth and non-convex interactions when objects touch, slide, or collide—remains a significant challenge. To maintain computational efficiency, popular simulators like MuJoCo, Bullet, and RaiSim employ various mathematical approximations. This paper introduces "ContactBench," a unified framework designed to evaluate the trade-offs between these approximations and their impact on high-level robotic behavior.
Mathematical Frameworks for Contact
The authors categorize contact modeling into four primary mathematical frameworks, each representing a different approach to physical constraints:
- Linear Complementarity Problem (LCP): Linearizes the friction cone into a pyramidal shape. This approach is common in older versions of Bullet and ODE.
- Cone Complementarity Problem (CCP): Relaxes the non-penetration constraint to formulate contact as a convex optimization problem, as seen in MuJoCo and Drake.
- RaiSim Model: A hybrid method that enforces strict non-penetration but relaxes the maximum dissipation principle.
- Non-linear Complementarity Problem (NCP): The "ground truth" model that respects the Signorini condition (non-penetration), Coulomb friction, and the Maximum Dissipation Principle.
Beyond the models, the study compares numerical solvers ranging from the fast but potentially unstable Projected Gauss-Seidel (PGS) to robust second-order methods like ADMM and Newton algorithms. These were implemented using the Pinocchio dynamics library and HPP-FCL for collision detection to ensure a fair comparison.
Benchmarking Scenarios
To assess these models, the researchers utilized a variety of scenarios:
- Illustrative Tests: Simple cube sliding to evaluate friction isotropy and stiction-to-sliding transitions.
- Numerical Robustness: A "heavy-on-light" stack (1000kg on 0.001kg) to test solver stability under extreme mass ratios.
- Robotic Benchmarks: Dynamic simulations involving the Solo-12 quadruped, Talos humanoid, and Allegro Hand.
- Complex Locomotion: Navigating a Solo-12 robot across flat, bumpy, and slippery terrains using MPC.
Key Insights: Unphysical Artifacts and Solver Performance
The benchmarking revealed several critical artifacts introduced by common approximations:
- The "Bouncing" Effect: The CCP model often causes sliding objects to "hover" or bounce slightly, leading to energy loss and unrealistic trajectories in tasks involving significant sliding.
- Friction Bias: Linearizing the friction cone (LCP) creates a directional bias, where robots "prefer" sliding along the edges of the pyramid facets rather than moving naturally.
- Ghost Internal Forces: First-order solvers like PGS can generate internal forces that appear to stretch rigid bodies. While forward dynamics might remain visually plausible, these forces can degrade the gradients required for differentiable simulation.
- Efficiency of Second-Order Solvers: While often dismissed as slow, the authors demonstrate that second-order solvers (ADMM/Newton) can be computationally competitive when "warm-started" with solutions from previous time steps.
Results and Impact on Locomotion
The choice of contact model significantly impacts performance in complex environments. While differences are negligible on flat ground, navigating bumpy and slippery terrain highlights the "reality gap." Models like RaiSim and CCP deviated notably from the NCP ground truth in these agile tasks.
Furthermore, regarding numerical precision, PGS often saturates at low precision ($10^{-5}$), whereas ADMM and Newton methods reliably reach high precision ($10^{-10}$). In the "heavy-on-light" robustness test, PGS-based simulators failed entirely, while proximal methods like ADMM remained stable.
Conclusion
The study concludes that there is no "silver bullet" for contact simulation. Researchers must navigate a fundamental trade-off between speed, physical fidelity, and numerical robustness. However, for high-performance or "extreme" robotics, the choice of a high-fidelity contact model (like NCP) and robust solvers is essential to minimizing the reality gap. Future work will likely extend this analysis to soft-body dynamics and the quantitative impact of these artifacts on differentiable physics gradients.
Summary updated