We present a fast and feature-complete differentiable physics engine, Nimble (nimblephysics.org), that supports Lagrangian dynamics and hard contact constraints for articulated rigid body simulation. Our differentiable physics engine offers a complete set of features that are typically only available in non-differentiable physics simulators commonly used by robotics applications. We solve contact constraints precisely using linear complementarity problems (LCPs). We present efficient and novel analytical gradients through the LCP formulation of inelastic contact that exploit the sparsity of the LCP solution. We support complex contact geometry, and gradients approximating continuous-time elastic collision. We also introduce a novel method to compute complementarity-aware gradients that help downstream optimization tasks avoid stalling in saddle points. We show that an implementation of this combination in an existing physics engine (DART) is capable of a 87x single-core speedup over finite-differencing in computing analytical Jacobians for a single timestep, while preserving all the expressiveness of original DART.
Analytic Conditions for Differentiable Collision Detection in Trajectory Optimization
Robotics Engineering Department, Worcester Polytechnic Institute(沃斯特理工学院机器人工程系);Mitsubishi Electric Research Laboratories(三菱电机研究实验室);Mitsubishi Electric(三菱电机)
DiffPhD: A Unified Differentiable Solver for Projective Heterogeneous Materials in Elastodynamics with Contact-Rich GPU-Acceleration
National Taiwan University(国立台湾大学);MoonShine Animation Studio(MoonShine 动画工作室);National University of Singapore(新加坡国立大学);The University of British Columbia(不列颠哥伦比亚大学);Independent Researcher(独立研究员);National Yang Ming Chiao Tung University(阳明交通大学)
Collision Detection with Analytical Derivatives of Contact Kinematics
Department of Mechanical and Nuclear Engineering, Khalifa University of Science and Technology(卡利法大学科学与技术学院机械与核工程系);Khalifa University Center for Autonomous Robotic Systems (KUCARS)(卡利法大学自主机器人系统中心);The BioRobotics Institute, Scuola Superiore Sant’Anna(圣安娜高等学院生物机器人研究所);Department of Excellence in Robotics and AI, Scuola Superiore Sant’Anna(圣安娜高等学院机器人与人工智能卓越部门);LS2N Laboratory, Institut Mines Telecom Atlantique(Atlantique电信学院LS2N实验室)
Rigid vs compliant contact: An experimental study on biped walking
Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);University of Tehran(德黑兰大学);Tarbiat Modares University(塔比阿特莫达勒斯大学);Hakim Sabzevari University(哈基姆萨卜泽瓦尔大学);Sharif University of Technology(谢里夫理工大学)