# Adapting Rigid-Body Dynamics Derivatives for Constraint Embedding Closed-Chain Models

Robotics.world

> Efficient recursive algorithms for the derivatives of rigid-body dynamics (used inside MPC and differentiable physics) were built on an assumption that does not hold for closed-chain systems: that…

**arXiv**: 2609.21024

**Published**: 2026-09-17

**Authors**: Daniel J. Volpi, Patrick M. Wensing

## In plain words

Efficient recursive algorithms for the derivatives of rigid-body dynamics (used inside MPC and differentiable physics) were built on an assumption that does not hold for closed-chain systems: that each joint's motion subspace matrix is constant in body coordinates.

## AI summary

## Overview

**Research area:** Computational rigid-body dynamics, specifically analytical first-order derivatives of rigid-body dynamics algorithms for optimization-based robot control (model predictive control, differentiable simulation, system identification).

**Technical level:** Advanced. The paper assumes familiarity with spatial vector algebra, the recursive Newton–Euler algorithm, joint motion subspace matrices, and Lie-derivative notation for configuration derivatives. The prose is dense with tensor/operator notation and is aimed at readers who already know Featherstone-style dynamics algorithms.

**Scope (one sentence):** The paper extends an existing class of efficient recursive algorithms for inverse-dynamics derivatives from open-chain, configuration-invariant joint models to the more general joint types that arise in constraint-embedding closed-chain models, and reports the computational cost of doing so.

## What This Paper Is About

Efficient recursive algorithms for the derivatives of rigid-body dynamics (used inside MPC and differentiable physics) were built on an assumption that does not hold for closed-chain systems: that each joint's motion subspace matrix is constant in body coordinates. Constraint embedding turns a closed-chain mechanism into a tree of aggregate bodies, and those aggregate "joints" are generally configuration dependent, so the assumption fails.

The paper's goal is to identify exactly where that assumption enters the derivation, remove it, derive adapted formulas, implement them in an open-source library, and measure how much the extra terms cost relative to conventional pin-joint models.

## Key Contributions

1. **Identification of a hidden assumption.** The authors pinpoint the configuration-invariance assumption on the joint motion subspace matrix (the requirement that its local time derivative be zero) that underlies existing efficient derivative algorithms, and show it is appropriate for revolute, prismatic, and floating-base joints but not for the generalized joints produced by constraint embedding.
2. **Derivation of adapted derivative formulas.** They remove the assumption and derive the additional terms needed for general, configuration-dependent joint models, so that first-order inverse-dynamics derivatives remain valid for constraint-embedded closed-chain systems.
3. **Open-source implementation.** The algorithm is contributed as open source to the Generalized Rigid-Body Dynamics Algorithms (GRBDA) library.
4. **Validation and cost analysis.** Correctness is verified against complex-step differentiation, and a performance study compares conventional pin-joint models against fuller actuation models that capture local closed chains, including cases with additional rigid bodies such as motor rotors and cases with non-local loops.

## Main Findings

- **The blocker is a single assumption.** Past efficient recursive derivative derivations (and the implementation in Pinocchio) assumed the local-coordinate derivative of the joint motion subspace matrix was zero. The paper shows this is equivalent, for one-degree-of-freedom joints, to assuming joint twists are constant in body coordinates — fine for standard joints, invalid for many constraint-embedded aggregate joints.
- **The corrected propagation splits into two parts.** The absolute derivative of the motion subspace matrix is written as a spatial cross-product term plus the local-coordinate derivative term; the second term, previously dropped, is restored.
- **Constraint embedding is what makes general joints unavoidable.** Because many common mechanisms (the paper cites non-parallelogram four-bar linkages) have configuration-dependent input–output relationships, the aggregate-body motion subspace matrix ends up highly mechanism specific and configuration dependent.
- **Overhead is low for actuation kinematics alone.** Modeling the actuation kinematics of local closed chains with the generalized algorithm adds little computational cost relative to conventional pin-joint models.
- **Overhead rises when bodies are added.** Including additional rigid bodies, such as motor rotors, in the actuation chain incurs higher computational cost, as does considering non-local loops. The authors frame this as a trade-off to be weighed against the improved model accuracy.
- **Correctness is established empirically.** Results are compared against complex-step differentiation.
- **Scope is inverse dynamics only.** The paper derives derivatives of inverse dynamics and relies on existing results relating forward-dynamics derivatives to inverse-dynamics derivatives through the inverse of the mass matrix.
- **No specific timing or speedup figures are reported in the available text.** The truncated content contains the qualitative cost conclusions above but not the numerical benchmarks, model sizes, or per-iteration timings; those would appear in the results section, which is not included here.

## Methodology in Plain English

The authors work in spatial-vector notation: each rigid body's velocity, acceleration, and the forces on it are 6-dimensional quantities expressed in a body-fixed frame, and neighboring bodies in the kinematic tree are related by spatial transforms.

For an open chain, the velocity of a body is its parent's velocity plus a contribution from its own joint, written as the joint motion subspace matrix times the joint velocity. In the standard setting that matrix is a constant. In the constraint-embedding setting, an "aggregate body" is a cluster of rigid bodies tied together by a local loop, and its motion subspace matrix describes how every body inside the cluster moves relative to the bodies in its parent. That matrix is built from the individual spanning-tree joints, the loop-closure Jacobian, and the mapping that expresses the spanning-tree joint rates in terms of the chosen aggregate configuration coordinates — so it depends on configuration.

The derivative derivation then follows the recursive inverse-dynamics structure, but with the previously neglected configuration-derivative term carried through every propagation step. To keep the math independent of how joint configurations are represented (quaternion versus rotation matrix, for example), configuration derivatives are defined as Lie derivatives along the joint's velocity directions rather than as ordinary partial derivatives of a coordinate vector. Gravity is handled with the standard trick of accelerating the base upward, and is added back as a bias at the end.

Finally, the adapted algorithm is coded into the GRBDA library and checked numerically against complex-step differentiation, then timed against pin-joint models to isolate the cost of the extra terms.

## Why This Matters

**Research impact.** A large body of efficient derivative machinery — recursive algorithms that avoid the cost and memory of automatic differentiation — was silently restricted to open-chain, constant-motion-subspace joints. This paper lifts that restriction, which means the same class of algorithms can now be applied to a much broader set of robot models, including serial/closed-chain hybrid designs that have been gaining attention.

**Real-world applications:**

- **Model-predictive control of robots with linkage-driven actuation.** Legged and humanoid robots whose legs are driven through closed kinematic chains inside the actuation package can now use accurate derivatives instead of pin-joint approximations.
- **Differentiable physics simulation.** Gradient-based learning and trajectory optimization benefit from analytically exact gradients of a model that actually contains the mechanism's loops.
- **System identification.** Fitting rotor inertia, linkage geometry, and loop parameters requires gradients with respect to those parameters; more faithful models mean less bias in the identified values.
- **Controller design where actuation structure affects performance.** The paper notes that neglecting closed-chain structure in actuation can limit achievable performance, not just accuracy.

**Industry relevance.** Any group deploying MPC or learned controllers on hardware with geared, belt-driven, or linkage-coupled joints faces exactly the modeling gap addressed here. The open-source contribution to GRBDA lowers the barrier to adopting the more accurate model, and the cost analysis gives practitioners the information needed to decide whether adding motor rotors and non-local loops to the model is worth the extra compute at control rates.

## Future Directions

- **Second-order derivatives.** The paper addresses first-order derivatives only; extending the corrected treatment to Hessians would matter for second-order trajectory optimization and for solvers that exploit curvature.
- **Reducing the cost of the added terms.** Since the overhead grows when extra bodies (rotors) or non-local loops are included, exploiting sparsity or restructuring the propagation for those cases is an obvious follow-up.
- **Broader joint and loop classes.** The derivation removes a specific invariance assumption, but the paper does not establish cost or accuracy behavior across the full space of constraint-embedding mechanisms — non-local loops in particular are flagged as expensive and remain a candidate for further work.
- **End-to-end validation in control loops.** The paper motivates the work by MPC and differentiable simulation but (in the content available here) does not report closed-loop control experiments; demonstrating the accuracy gain inside an actual MPC or gradient-based pipeline is the natural next step.

## Target Audience

Robotics researchers and graduate students working on rigid-body dynamics algorithms, and engineers implementing MPC or differentiable simulation for robots whose actuation involves closed kinematic chains. Readers who already know spatial-vector dynamics and the recursive Newton–Euler algorithm will get the most from it; readers looking for an applied, tutorial-style treatment of closed-chain modeling should start elsewhere.

## Authors’ abstract

This paper extends an existing algorithm for the first-order derivatives of rigid-body dynamics to the case of closed-chain kinematic systems modeled using constraint embed- ding. Many standard dynamics algorithms apply to both open- chain and constraint-embedded models, but existing efficient derivative methods assume joint velocity effects are locally config- uration invariant. We remove this assumption and derive adapted algorithms that extend dynamics derivatives to more…

[The full abstract on arXiv](https://arxiv.org/abs/2609.21024)

[Read the original paper](https://arxiv.org/abs/2609.21024)

## Related papers

- [RoboCompiler: Graph-Native Compilation of Closed-Chain Robots for Consistent Modeling, Control, and Simulation](https://robotics.world/paper/robocompiler-graph-native-compilation-of-closed-chain-robots-for-2609.35717) 2026-09-28 · cs.RO · Key terms of the title in common
- [RopeFormer: Cross-Trial Adaptation from Interaction History for Dynamic Rope Manipulation](https://robotics.world/paper/ropeformer-cross-trial-adaptation-from-interaction-history-for-dynamic-2609.23432) 2026-09-20 · cs.RO · Key terms of the title in common
- [AC-DC: Adaptive Communication for Scalable Dynamic Average Consensus in Multi-Robot Ergodic Search](https://robotics.world/paper/ac-dc-adaptive-communication-for-scalable-dynamic-average-consensus-in-2609.24702) 2026-09-21 · cs.RO · Key terms of the title in common
- [DualManip: Agentic Dynamic Manipulation via Dual-Path Semantic Reasoning and Geometric Adaptation](https://robotics.world/paper/dualmanip-agentic-dynamic-manipulation-via-dual-path-semantic-reasoning-2609.31112) 2026-09-25 · cs.RO · Key terms of the title in common
- [Scouting the Dynamics Gap: Test-Time Policy Adaptation via Action-Outcome Feedback](https://robotics.world/paper/scouting-the-dynamics-gap-test-time-policy-adaptation-via-action-2609.36107) 2026-09-28 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/adapting-rigid-body-dynamics-derivatives-for-constraint-embedding-2609.21024
