Smoothly Differentiable and Efficiently Vectorizable Contact Manifold Generation
Organizations: University of Tübingen · Idiap Research Institute · EPFL
Abstract
Simulating rigid-body dynamics with contact in a fast, massively vectorizable, and smoothly differentiable manner is highly desirable in robotics. An important bottleneck faced by existing differentiable simulation frameworks is contact manifold generation: representing the volume of intersection between two colliding geometries via a discrete set of properly distributed contact points. A major factor contributing to this bottleneck is that the related routines of commonly used robotics simulators were not designed with vectorization and differentiability as a primary concern, and thus rely on logic and control flow that hinder these goals. We instead propose a framework designed from the ground up with these goals in mind, by trying to strike a middle ground between: i) convex primitive based approaches used by common robotics simulators (efficient but not differentiable), and ii) mollified vertex-face and edge-edge unsigned distance-based approaches used by barrier methods (differentiable but inefficient). Concretely, we propose: i) a representative set of smooth analytical signed distance primitives to implement vertex-face collisions, and ii) a novel differentiable edge-edge collision routine that can provide signed distances and signed contact normals. The proposed framework is evaluated via a set of didactic experiments and benchmarked against the collision detection routine of the well-established Mujoco XLA framework, where we observe a significant speedup. Supplementary videos can be found at https://github.com/bekeronur/contax, where a reference implementation in JAX will also be made available at the conclusion of the review process.
Figures & tables
| ID | File | Description |
| Folder: armadillo_armadillo_rollout/ | ||
| A1 | angle_1.mp4 | Armadillo–Armadillo collision rollout (view angle 1). Shows contact manifold behavior on a non-convex mesh pair. |
| A2 | angle_2.mp4 | Same rollout as A1 from view angle 2. |
| A3 | angle_3.mp4 | Same rollout as A1 from view angle 3. |
| A4 | angle_4.mp4 | Same rollout as A1 from view angle 4. |
| A5 | angle_1_E_E_contacts_off.mp4 | Same setup as A1, but with E–E contacts disabled (V–S only). Demonstrates the “Ours-NE” simplification discussed in the supplementary material Fig. 8 . |
Robotics Simulation
Robotics simulation builds virtual robots and environments to model, train, and evaluate autonomous systems before real-world deployment.
See all 319 papers