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. 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.
Dynamics Computation of Soft-Rigid Hybrid-Link System and Its Application to Motion Analysis of an Athlete Wearing Sport Prosthesis
Department of Mechano-Informatics, University of Tokyo(东京大学机械信息学系);Research Institute for Science and Technology, Tokyo University of Science(东京科学大学研究所)
Robust Rigid Body Assembly via Contact-Implicit Optimal Control with Exact Second-Order Derivatives
Autonomous Systems and Control, Siemens AG, Germany(自动化系统与控制,西门子股份有限公司,德国);Department of Microsystems Engineering (IMTEK), University of Freiburg, Germany(微系统工程系(IMTEK),弗赖堡大学,德国);Department of Mathematics, University of Freiburg, Germany(数学系,弗赖堡大学,德国)
Inverse Dynamics vs. Forward Dynamics in Direct Transcription Formulations for Trajectory Optimization
School of Informatics, University of Edinburgh(爱丁堡大学信息学院);Oxford Robotics Institute, University of Oxford(牛津大学牛津机器人研究所);Heriot-Watt University(赫瑞瓦特大学);The University of Edinburgh(爱丁堡大学)