cs.RONov 19, 2026

A Tutorial on Complementarity-Based Contact Models for Robotics

Authors: Onur Beker, A. René Geist, Michael Posa, Marc Toussaint, Justin Carpentier, Georg Martius

Organizations: University of Tübingen · University of Pennsylvania · Technical University Berlin · Inria & DI-ENS

Abstract

Simulating rigid-body dynamics with contact is fundamental to robotics, from motion synthesis and control to mechanism design. Many widely used simulators rely on cone complementarity formulations, whose physical assumptions and numerical solution require substantial background. While excellent surveys, monographs, and course notes exist, they mostly address computational mechanics or computer graphics or document a single simulator. To the best of our knowledge, a self-contained pedagogical treatment for robotics, bringing these formulations and their solvers together with complete derivations and a unified notation, does not yet exist. This tutorial addresses this gap by connecting rigid-body dynamics, conic optimization, and frictional contact. In particular, we explain how complementarity conditions encode non-penetration and frictional dissipation, determining separation, sticking, and sliding without prescribed contact modes. We distinguish equivalent transcriptions from convex relaxations, showing how the latter can introduce artifacts such as lift-off and creep. We examine the existence and uniqueness of motion and contact forces, including the solver's role in selecting among multiple solutions. We then compare first-order and Newton-based methods, explain regularization and proximal strategies, and discuss trade-offs between computational cost, robustness, and physical fidelity. Connections to widely used simulators, optimal control, and differentiable simulation help readers interpret simulation results, choose suitable formulations and solvers, and develop their own contact dynamics routines.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ComFree-Sim: A GPU-Parallelized Analytical Contact Physics Engine for Scalable Contact-Rich Robotics Simulation and Control

    Mar 12, 2026Chetan Borse, Zhixian Xie, Wei-Cheng Huang +1Robotics SimulationPhysics-Based Simulation

  2. Unified Complementarity-Based Contact Modeling and Planning for Soft Robots

    Feb 24, 2026Milad Azizkhani, Yue ChenContact-Implicit Trajectory OptimizationSoft Robotics

  3. Lodos-v2: An Efficient Primal Formulation of the Exact Frictional Contact Problem

    Nov 6, 2026Onur Beker, Andreas René Geist, Georg MartiusMultibody DynamicsDynamical Systems