首页 /研究 /On Second-Order Derivatives of Rigid-Body Dynamics: Theory and Implementation
LOCOMOTION

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

Shubham Singh, Ryan P. Russell, Patrick M. Wensing

发表年份
2024
引用次数
12

摘要

Model-based control for robots has increasingly depended on optimization-based methods like Differential Dynamic Programming (DDP) 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 robot 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 the robot 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 Forward Dynamics derivatives take <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$\approx 200 \mu s$</tex-math></inline-formula> , and <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$\approx 2.1 ms$</tex-math></inline-formula> respectively, on a 12th Gen Intel i5-12400 processor with 2.5 GHz clock-speed, resulting in a <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$\approx 3.2 \times$</tex-math></inline-formula> and <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$\approx 3.8 \times$</tex-math></inline-formula> speedup respectively over the AD approach.

关键词

Dynamics (music)Order (exchange)Rigid body dynamicsComputer scienceControl theory (sociology)Control engineeringRigid bodyClassical mechanicsEngineeringPhysics

相关论文

查看 LOCOMOTION 分类全部论文