On Second-Order Derivatives of Rigid-Body Dynamics: Theory Implementation

02/12/2023
by   Shubham Singh, et al.
0

Model-based control for robots has increasingly been dependent on optimization-based methods like Differential Dynamic Programming and iterative LQR (iLQR). These methods can form the basis of Model-Predictive Control (MPC), which is commonly used for controlling legged robots. Computing the partial derivatives of the dynamics is often the most expensive part of these algorithms, regardless of whether analytical methods, Finite Difference, Automatic Differentiation (AD), or Chain-Rule accumulation is used. Since the second-order derivatives of dynamics result in tensor computations, they are often ignored, leading to the use of iLQR, instead of the full second-order DDP method. In this paper, we present analytical methods to compute the second-order derivatives of inverse and forward dynamics for open-chain rigid-body systems with multi-DoF joints and fixed/floating bases. An extensive comparison of accuracy and run-time performance with AD and other methods is provided, including the consideration of code-generation techniques in C/C++ to speed up the computations. For the 36 DoF ATLAS humanoid, the second-order Inverse, and the Forward dynamics derivatives take approx 200 mu s, and approx 2.1 ms respectively, resulting in a 3x speedup over the AD approach.

READ FULL TEXT

page 1

page 15

research
03/03/2022

Closed-Form Second-Order Partial Derivatives of Rigid-Body Inverse Dynamics

Optimization-based control methods for robots often rely on first-order ...
research
07/24/2023

Multi-Shooting Differential Dynamic Programming for Hybrid Systems using Analytical Derivatives

Differential Dynamic Programming (DDP) is a popular technique used to ge...
research
05/11/2021

Efficient Analytical Derivatives of Rigid-Body Dynamics using Spatial Vector Algebra

Optimization algorithms are increasingly important for the control of ri...
research
03/04/2021

Tensor-Free Second-Order Differential Dynamic Programming

This paper presents a method to reduce the computational complexity of i...
research
01/01/2022

Fitting Matérn Smoothness Parameters Using Automatic Differentiation

The Matérn covariance function is ubiquitous in the application of Gauss...
research
10/02/2020

Numerical Methods to Compute the Coriolis Matrix and Christoffel Symbols for Rigid-Body Systems

The growth of model-based control strategies for robotics platforms has ...
research
07/05/2022

Manipulator Differential Kinematics Part II: Acceleration and Advanced Applications

This is the second and final article on the tutorial on manipulator diff...

Please sign up or login with your details

Forgot password? Click here to reset