Analytical Second-Order Partial Derivatives of Rigid-Body Inverse Dynamics

Shubham Singh, Ryan P. Russell, Patrick M. Wensing
3/3/2022
6 citations
cs.RO

Official code: ROAM-Lab-ND/spatial_v2_extended (71 stars, MATLAB, last commit 2025-03-24).

Abstract

Optimization-based robot control strategies often rely on first-order dynamics approximation methods, as in iLQR. Using second-order approximations of the dynamics is expensive due to the costly second-order partial derivatives of the dynamics with respect to the state and control.

Show full abstract

Current approaches for calculating these derivatives typically use automatic differentiation (AD) and chain-rule accumulation or finite-difference. In this paper, for the first time, we present analytical expressions for the second-order partial derivatives of inverse dynamics for open-chain rigid-body systems with floating base and multi-DoF joints. A new extension of spatial vector algebra is proposed that enables the analysis. A recursive algorithm with complexity of $\mathcal{O}(Nd^2)$ is also provided where $N$ is the number of bodies and $d$ is the depth of the kinematic tree. A comparison with AD in CasADi shows speedups of 1.5-3$\times$ for serial kinematic trees with $N> 5$, and a C++ implementation shows runtimes of $\approx$51$μs$ for a quadruped.

View on arXivView PDF

Code Implementations(1)

Extended version of Featherstone's spatial_v2 package

7133MATLAB, MDec 5, 20201 years ago

Similar Papers

Cite this paper

@article{singh2022analytical,
  title  = {Analytical Second-Order Partial Derivatives of Rigid-Body Inverse Dynamics},
  author = {Shubham Singh and Ryan P. Russell and Patrick M. Wensing},
  year   = {2022},
  eprint = {2203.01497},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.01497}
}

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/2203.01497.svg)](https://codeofpaper.com/paper/2203.01497)

Discussion