Method
Two subsystems keep their own dynamics. The constraint that bolts the arm to the trunk is the only place they meet, and the interaction wrench λint is a decision variable of the MPC.
Locomotion template
Single rigid body, 12 states. Ground reaction forces are the inputs.
$$\begin{aligned}\ddot p &= \tfrac{1}{m}f^{\mathrm{net}}-g_0\\ \dot\theta &= A(\theta)\,\omega\\ \dot\omega &= I^{-1}\!\left(\tau^{\mathrm{net}}-\mathbb S(\omega)I\omega\right)\end{aligned}$$
Rigid coupling
Holonomic constraint φ = 0, enforced at the acceleration level.
$$\begin{aligned} p+R(\theta)\,d&=p^{b}\\ \theta&=\theta^{b}\end{aligned}$$
$$\ddot\varphi\left(x^{\mathrm{SRB}},x^{\mathrm{arm}},u^{\mathrm{SRB}},u^{\mathrm{arm}},\lambda^{\mathrm{int}}\right)=0$$
Full-order arm
Floating base, 20 states. Four joint torques are the inputs.
$$D(q)\,\ddot q+H(q,\dot q)=B\,u^{\mathrm{arm}}-J^{\top}(q)\,\lambda^{\mathrm{int}}$$
Unified NMPC
$$\begin{aligned}\min_{\xi^{\mathrm{SRB}},\,\xi^{\mathrm{arm}},\,\lambda^{\mathrm{int}}}\quad & J^{\mathrm{SRB}}(\xi^{\mathrm{SRB}})+J^{\mathrm{arm}}(\xi^{\mathrm{arm}})+J^{\mathrm{int}}(\lambda^{\mathrm{int}})\\ \text{s.t.}\quad & x^{\mathrm{SRB}}_{k+1}=f^{\mathrm{SRB}}\!\left(x^{\mathrm{SRB}}_{k},u^{\mathrm{SRB}}_{k},\lambda^{\mathrm{int}}_{k}\right)\\ & x^{\mathrm{arm}}_{k+1}=f^{\mathrm{arm}}\!\left(x^{\mathrm{arm}}_{k},u^{\mathrm{arm}}_{k},\lambda^{\mathrm{int}}_{k}\right)\\ & \ddot\varphi\left(x^{\mathrm{SRB}}_{k},x^{\mathrm{arm}}_{k},u^{\mathrm{SRB}}_{k},u^{\mathrm{arm}}_{k},\lambda^{\mathrm{int}}_{k}\right)=0\\ & E\,u^{\mathrm{SRB}}_{k}=0,\quad u^{\mathrm{SRB}}_{k}\in\mathcal U^{\mathrm{SRB}},\quad u^{\mathrm{arm}}_{k}\in\mathcal U^{\mathrm{arm}},\qquad k=0,\dots,N-1\end{aligned}$$
- NMPC rate
- 60 Hz
- Horizon
- N = 8, Ts = 16.67 ms
- Decision variables
- 464
- Solver
- CasADi + IPOPT, at most 10 iterations, warm-started
- Mean solve time
- 12.7 ms on rough terrain, 13.6 ms under pushes
- Whole-body controller
- QP with virtual constraints, 500 Hz
- Computer
- Offboard Intel Core i9-12900F, 64 GB RAM
- Gait
- Trot, 200 ms step