DiffContact: Differentiable Contact Dynamics for Policy Learning and Contact-Implicit Trajectory Optimization
Abstract
This paper proposes DiffContact, a smooth analytic gradient for frictional contact, and applies it to policy learning and contact-implicit trajectory optimization for legged locomotion. The exact contact sensitivity is available in closed form but describes changes within the current contact mode, providing no first-order information toward neighboring contact modes. The proposed gradient replaces this sensitivity only in the backward pass, leaving the hard-contact forward solve unchanged and the realized rollout feasible. A central-path relaxation of the de Saxcé-corrected second-order-cone complementarity problem for Coulomb friction smooths the conditions defining the separating, clamping, and sliding modes. The relaxed sensitivity is evaluated at a point on the central path obtained by a Newton iteration initialized from the hard-contact solution. The sensitivity remains continuous through contact-mode transitions and converges to the exact sensitivity as the relaxation vanishes. Using 100,000 samples and less than 2 min of training on a desktop PC, policy learning with the proposed gradient produces a policy that transfers to hardware without fine-tuning. On hardware, the robot under a trotting policy withstands pushes and traverses debris and slippery ground. In trajectory optimization, the proposed gradient reaches contact-rich solutions missed by exact and Signorini-relaxed gradients. Project page: https://diffcontact.github.io
Create a lesson
Metadata
- Comments
- Submitted to IEEE Transactions on Robotics (T-RO)
Related papers
RoboMo: Bridging Humanoid Motion Generation and Whole-Body Dynamics via a Motion-Tracker-Guided Differentiable World Model
Shared title terminologycs.ROChenhui Dong, Zhipeng Wang, Haozhe Xu et al.
Imitation Policies Fail Between Contacts: From Target Capability to Data Requirements
Shared title terminologycs.ROJiaqian Zhu, Yang Zhang
Agentic Hill Climbing: Test-Time Policy Optimization for Robot Learning
Shared title terminologycs.ROWenxuan Yuan, Haoyu Wang, Yiming Yang et al.
Learning Visual Navigation Policies through Differentiable Motion Prediction
Shared title terminologycs.ROLongrui Yang, Nianjin Ye, Zhenyu Hou et al.
CSO: Refining Robotic Policies via Skill Distribution Alignment and Skill-Grained Optimization
Shared title terminologycs.ROZhiyuan Xiang, Xiang Deng, Wanjie Tao et al.
Learning Visuomotor Quadrotor Flight Through Dynamic Narrow Gaps via Differentiable Simulation
Shared title terminologycs.RORiccardo Bianco, Yunfan Ren, Jiaxu Xing et al.