Collision Detection with Analytical Derivatives of Contact Kinematics
Anup Teejo Mathew, Anees Peringal, Daniele Caradonna, Frederic Boyer, Federico Renda
TL;DR
This work tackles the intrinsic non-differentiability of contact kinematics in degenerate geometries by regularizing non-strictly convex shapes into strictly convex implicit surfaces, enabling analytical derivatives via the Implicit Function Theorem. Building on DCOL's scaling-based detection, iDCOL replaces conic constraints with a small, fixed-size nonlinear system (six equations in six unknowns) derived from a geometric scaling formulation and solves it with a fast, safeguarded Newton method; a LogSumExp-based surrogate yields robust conditioning across penetrating and separating configurations. The framework supports multiple implicit primitives (Smooth Polytope, Smooth Truncated Cone, Superellipsoid, and Superelliptic Cylinder), with exact derivatives available for the transformed surface representations. Analytical derivatives of the contact solution with respect to configuration enable gradient-based planning and differentiable contact physics, demonstrated on quadrotor path planning, multibody collisions, and soft manipulator interactions. The results show microsecond-scale collision queries and favorable differentiability properties, at the cost of a tunable trade-off between geometric fidelity and smoothness, with open-source C++ implementation for integration into planners and physics engines.
Abstract
Differentiable contact kinematics are essential for gradient-based methods in robotics, yet the mapping from robot state to contact distance, location, and normal becomes non-smooth in degenerate configurations of shapes with zero or undefined curvature. We address this inherent limitation by selectively regularizing such geometries into strictly convex implicit representations, restoring uniqueness and smoothness of the contact map. Leveraging this geometric regularization, we develop iDCOL, an implicit differentiable collision detection and contact kinematics framework. iDCOL represents colliding bodies using strictly convex implicit surfaces and computes collision detection and contact kinematics by solving a fixed-size nonlinear system derived from a geometric scaling-based convex optimization formulation. By applying the Implicit Function Theorem to the resulting system residual, we derive analytical derivatives of the contact kinematic quantities. We develop a fast Newton-based solver for iDCOL and provide an open-source C++ implementation of the framework. The robustness of the approach is evaluated through extensive collision simulations and benchmarking, and applicability is demonstrated in gradient-based kinematic path planning and differentiable contact physics, including multi-body rigid collisions and a soft-robot interaction example.
