Extending Lagrangian and Hamiltonian Neural Networks with Differentiable Contact Models

Yaofeng Desmond Zhong, Biswadip Dey, Amit Chakraborty
2/12/2021
cs.ROcs.AIcs.LG

Official code: Physics-aware-AI/DiffCoSim (41 stars, Jupyter Notebook, last commit 2023-01-25).

Abstract

The incorporation of appropriate inductive bias plays a critical role in learning dynamics from data. A growing body of work has been exploring ways to enforce energy conservation in the learned dynamics by encoding Lagrangian or Hamiltonian dynamics into the neural network architecture.

Show full abstract

These existing approaches are based on differential equations, which do not allow discontinuity in the states and thereby limit the class of systems one can learn. However, in reality, most physical systems, such as legged robots and robotic manipulators, involve contacts and collisions, which introduce discontinuities in the states. In this paper, we introduce a differentiable contact model, which can capture contact mechanics: frictionless/frictional, as well as elastic/inelastic. This model can also accommodate inequality constraints, such as limits on the joint angles. The proposed contact model extends the scope of Lagrangian and Hamiltonian neural networks by allowing simultaneous learning of contact and system properties. We demonstrate this framework on a series of challenging 2D and 3D physical systems with different coefficients of restitution and friction. The learned dynamics can be used as a differentiable physics simulator for downstream gradient-based optimization tasks, such as planning and control.

View on arXivView PDF

Code Implementations(1)

By introducing a differentiable contact model, DiffCoSim extends the applicability of Lagrangian/Hamiltonian-inspired neural networks to enable learning of hybrid dynamics.

416Jupyter Notebook, PythonOct 18, 20213 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhong2021extending,
  title  = {Extending Lagrangian and Hamiltonian Neural Networks with Differentiable Contact Models},
  author = {Yaofeng Desmond Zhong and Biswadip Dey and Amit Chakraborty},
  year   = {2021},
  eprint = {2102.06794},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06794}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.06794.svg)](https://codeofpaper.com/paper/2102.06794)

Discussion