用GPU加速足式机器人控制,效率提升超7倍
Primal-Dual iLQR for GPU-Accelerated Learning and Control in Legged Robots
- 将最优控制问题转化为并行可解的对偶系统,利用关联扫描实现高效求解
- 在预测时长变化时,比主流求解器快60%至700%,16台机器人中央控制器<25毫秒
- 基于JAX支持多环境并行,可直接在GPU上实现学习与控制闭环
本文提出一种新型模型预测控制(MPC)实现方法,用于足式机器人运动控制,利用GPU并行化技术。通过引入并行关联扫描求解原-对偶KKT系统,实现了时间维度和状态空间的双重并行化。该方法将最优控制问题的计算复杂度降低至$/mathcal{O}(/log^2(n)\log{N} + //log^2(m))$,远优于传统$/mathcal{O}(N(n + m)^3)$。实验表明,在变化预测时长下,相较于acados和crocoddyl两个先进求解器,整体运行时间最多提升60%(全身体动力学MPC)和700%(单刚体动力学MPC)。该方法在状态维度扩展时仍保持良好可扩展性,可实现对多达16台足式机器人的集中式控制,计算时间低于25毫秒。得益于JAX实现,求解器支持大规模跨环境并行,可在GPU上直接实现带学习的闭环控制。代码见https://github.com/iit-DLSLab/mpx。
原文摘要 · Abstract (English)
This paper introduces a novel Model Predictive Control (MPC) implementation for legged robot locomotion that leverages GPU parallelization. Our approach enables both temporal and state-space parallelization by incorporating a parallel associative scan to solve the primal-dual Karush-Kuhn-Tucker (KKT) system. In this way, the optimal control problem is solved in $\mathcal{O}(\log^2(n)\log{N} + \log^2(m))$ complexity, instead of $\mathcal{O}(N(n + m)^3)$, where $n$, $m$, and $N$ are the dimension of the system state, control vector, and the length of the prediction horizon. We demonstrate the advantages of this implementation over two state-of-the-art solvers (acados and crocoddyl), achieving up to a 60\% improvement in runtime for Whole Body Dynamics (WB)-MPC and a 700\% improvement for Single Rigid Body Dynamics (SRBD)-MPC when varying the prediction horizon length. The presented formulation scales efficiently with the problem state dimensions as well, enabling the definition of a centralized controller for up to 16 legged robots that can be computed in less than 25 ms. Furthermore, thanks to the JAX implementation, the solver supports large-scale parallelization across multiple environments, allowing the possibility of performing learning with the MPC in the loop directly in GPU. The code associated with this work can be found at https://github.com/iit-DLSLab/mpx.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。