Contact Models in Robotics: a Comparative Analysis

Quentin Le Lidec, Wilson Jallet, Louis Montaut, Ivan Laptev, Cordelia Schmid, Justin Carpentier · DOI

Abstract

Physics simulators are essential for robotics research, yet the underlying contact models often remain "black boxes." This paper introduces ContactBench, a framework for evaluating mathematical models and numerical solvers for contact and friction. We analyze how approximations like friction cone linearization and non-penetration relaxation introduce unphysical artifacts, impacting the reliability of controllers in real-world scenarios. By comparing various formulations—including LCP, CCP, and NCP—we expose the trade-offs between physical accuracy and computational efficiency.

Introduction

In robotics, simulators are the primary tools for Trajectory Optimization (TO), Reinforcement Learning (RL), and Model Predictive Control (MPC). However, most simulators handle "contact"—the interaction between a robot and its environment—differently, often employing mathematical shortcuts to maintain real-time performance. These physical relaxations and numerical approximations are frequently undocumented, leading to a "reality gap" where controllers designed in simulation fail on physical hardware due to unpredicted slipping or mathematical "bouncing."

Mathematical Foundations of Contact

The authors categorize contact modeling into three core physical principles that define the interaction at the interface:

  1. Signorini Condition: Ensures non-penetration between rigid bodies.
  2. Coulomb’s Law: Defines the limits of dry friction based on the normal force.
  3. Maximum Dissipation Principle (MDP): Dictates that friction forces must oppose motion to maximize energy dissipation.
Comparison of standard and relaxed Signorini and Coulomb conditions used in various simulators.

Combining these principles results in a Non-linear Complementarity Problem (NCP). To solve this efficiently, simulators typically adopt one of four approaches:

  • Linear Complementarity Problem (LCP): Linearizes the circular friction cone into a pyramid (e.g., ODE, Bullet).
  • Cone Complementarity Problem (CCP): Relaxes the Signorini condition to transform the task into a convex optimization problem (e.g., MuJoCo, Drake).
  • RaiSim Model: A heuristic approach that enforces non-penetration but may violate the MDP.
  • Direct NCP: Solving the full non-linear problem using specialized methods like Staggered Projections.

The ContactBench Framework

To evaluate these models, the authors developed ContactBench, a unified C++ framework leveraging the Pinocchio library for rigid body dynamics. The framework was tested across several robotic benchmarks, ranging from simple geometric primitives to high-dimensional systems:

  • Solo-12 Quadruped: Evaluated for locomotion on flat and irregular terrain.
  • Talos Humanoid: A 32-DOF system used to test solver scalability.
  • Allegro Hand: A manipulation scenario involving complex, multi-point contacts.
The Solo-12 quadruped on uneven terrain, with a detailed view of the contact force cone (K_μ) and impulse (λ) at the foot interface.

Key Insights and Results

Physical Artifacts

  • The "Pyramid" Bias: Linearizing the friction cone (LCP) introduces a directional bias. Friction forces are artificially pushed toward the corners of the pyramid, causing robots to drift in unphysical directions.
  • Ghost Bouncing: Models that relax non-penetration (CCP) can cause sliding objects to "hover" or bounce slightly at a height proportional to the simulation time-step ($\Delta t$).
  • Internal Jamming: Iterative solvers like Projected Gauss-Seidel (PGS) can create mathematical artifacts where contact points appear to "pull" against each other. Global solvers like ADMM effectively avoid this issue.

Performance and Robustness

  • Accuracy vs. Speed: While PGS is fast for low-precision applications, it "saturates" and cannot achieve high precision. In contrast, Newton-based solvers and ADMM reach much higher accuracy, albeit at a higher cost per iteration.
  • Locomotion Impact: In MPC tests on slippery, bumpy terrain, the choice of contact model significantly affected velocity tracking. The RaiSim and CCP models struggled with sliding contacts, whereas the NCP formulation remained consistent with analytical expectations.
  • Warm-Starting: For real-time applications, "warm-starting" a solver with the solution from the previous time-step is the most effective method for closing the speed gap between simple and complex solvers.

Conclusion and Future Work

This analysis reveals that the choice of contact model is not merely a technical detail but a fundamental factor in simulation fidelity. While the authors have mapped the landscape for forward simulation, the impact of these artifacts on differentiable physics remains an open question. Future research will investigate how artificial compliance in simulators affects the gradients used in modern RL and TO pipelines, potentially leading optimizers toward sub-optimal real-world solutions.

Summary updated

BibTeX
@article{lidec2024contact,
  author = {Quentin Le Lidec and Wilson Jallet and Louis Montaut and Ivan Laptev and Cordelia Schmid and Justin Carpentier},
  title = {{Contact Models in Robotics: a Comparative Analysis}},
  journal = {IEEE Trans. Robotics},
  year = {2024},
  doi = {10.1109/tro.2024.3434208},
}
Figure