# RoboCompiler: Graph-Native Compilation of Closed-Chain Robots for Consistent Modeling, Control, and Simulation

Robotics.world

> Robots with closed kinematic loops, coupled actuators, and changing contacts need their configuration, velocity, force, and dynamics descriptions to agree with each other.

**arXiv**: 2609.35717 · Preprint · not peer-reviewed

**Published**: 2026-09-28 · revised · 2026-09-29

**Authors**: Mehdi Heydari Shahna, Joongheon Kim, Jouni Mattila

## In plain words

Robots with closed kinematic loops, coupled actuators, and changing contacts need their configuration, velocity, force, and dynamics descriptions to agree with each other. In practice these descriptions are reconstructed separately for control and for simulation, so loop-closure and actuation consistency is hard to maintain.

## AI summary

RoboCompiler: Graph-Native Compilation of Closed-Chain Robots

## Overview

**Research area:** Robotics — computational mechanics, robot modeling, constrained dynamics, and simulation for closed-chain (loop-closure) mechanisms.

**Technical level:** Advanced. The paper assumes familiarity with screw theory/SE(3) transforms, constrained rigid-body dynamics, Jacobian-based redundancy resolution, and robot description formats.

**Scope (one sentence):** The paper presents a compiler that turns a single physical description of a robot with kinematic loops, coupled actuators, and changing support into one consistent set of interfaces for assembly, motion, actuation, and dynamics, and validates it on five robots across MuJoCo, Pinocchio, and Isaac Sim/PhysX.

## What This Paper Is About

Robots with closed kinematic loops, coupled actuators, and changing contacts need their configuration, velocity, force, and dynamics descriptions to agree with each other. In practice these descriptions are reconstructed separately for control and for simulation, so loop-closure and actuation consistency is hard to maintain. RoboCompiler addresses this by compiling one canonical mechanism graph — built from bodies, joints, frames, inertias, and actuator ports — into a shared, mechanically consistent interface that downstream controllers, dynamics libraries, and simulators can all use.

## Key Contributions

1. **Graph-native compilation procedure.** A method that transforms physical mechanism and task records into ordered closure paths, dependency modules, rank-checked coordinate partitions, and connected interfaces for configuration, motion, actuation, and dynamics. The compiler rejects inputs that pre-author paths, partitions, modules, or coordinate orders, and generates them instead.
2. **A common independent-coordinate interface.** From one shared assembled configuration, the framework generates a tangent lift (independent to full velocities), a constraint-curvature correction extending it to accelerations, and virtual-work-dual actuator-port maps. Together these support motion control plus reduced inverse and forward dynamics for fixed-base robots and floating-base robots under ideal support modes.
3. **Cycle-local analytical Jacobians and dependency-aware update schedules.** Generated from the graph, these allow selective evaluation and reuse so repeated work is skipped during continuation and local task changes, while preserving the underlying PACDM closure and correction equations.
4. **Multi-environment evaluation.** Interfaces are tested on three physically closed-chain mechanisms and two robots with task or actuator coupling, checked against independent constrained-dynamics computations and executed in MuJoCo, Pinocchio, and Isaac Sim.

## Main Findings

- **Mechanical consistency confirmed:** High-precision constrained-dynamics computations and independent Pinocchio checks confirm mechanical consistency; MuJoCo and Isaac Sim/PhysX executions demonstrate task performance and model reuse under native contact.
- **Large computational speedup on Kangaroo:** Compilation reduces residual-and-Jacobian evaluation time by **96.7%** and closed-loop rollout wall time by **66.8%**, with dynamics and control held fixed.
- **Broadest documented interface coverage among compared methods:** Among the methods compared in Table I, only RoboCompiler is documented to combine point, revolute, and universal cuts, position-level assembly, an explicit independent-to-full tangent map, virtual-work-dual actuator-port maps, reduced forward dynamics, floating-base/contact workflows, and multi-simulator validation. (The authors state the table summarizes documented interface coverage rather than ranking complete software systems.)
- **Model reuse across environments:** The same compiled models run in MuJoCo 3.3.7, Pinocchio 3.8.0, and Isaac Sim 6.1; a separate solver comparison in Table V also tests Pinocchio 4.1 and MuJoCo 3.14.0.
- **Excavator task result in native PhysX:** Nine revolute cuts with seven independent arm speeds; the excavation and settled-soil-transfer task delivered **92.153 kg** with an **11.46-μm** peak arm gap.
- **Go2 support-mode scheduling:** The quadruped's changing support is handled by compiling each support mode as a fixed-topology closure and scheduling switches between compiled modes, with **110 support transitions** reported.
- **Reconfiguration is not just a matrix match:** Proposition 1 shows that, under a change of independent-coordinate representation, task, transmission, bound, metric, objective, and effort quantities must all transform through the same invertible map, and that matching reduced mass matrices alone is insufficient to establish equivalent dynamics because a configuration-dependent map adds its own acceleration term.
- **Compilation scale:** For Kangaroo the compiler generates 76 joint and 64 chart coordinates in six loop modules from an input of 78 bodies, 77 joint edges, 16 point plus 8 universal cuts, and 12 actuator ports with a gear of 1.0 and force bounds of [-2000, 2000] N; each module is corrected separately and skipped when its motor inputs are unchanged.
- **Not reported in the provided text:** The full experimental tables (Table III onward, including the truncated Isaac Sim/PhysX entries for Go2, Panda, Kangaroo, and the Stewart platform) are cut off in the supplied content, so per-robot results for those systems other than those listed above are not available here.

## Methodology in Plain English

The team treats the robot's physical description as the single source of truth and builds everything else from it.

1. **Describe the mechanism physically.** Bodies, joints, attachment frames, inertias, and actuator ports are recorded as a graph of rigid bodies connected by joints. Repeated parts stay separate instances, and actuator transmission records are kept distinct from the joints, so choosing independent coordinates is decoupled from how actuation is wired.
2. **Cut the loops into a tree.** The compiler picks a spanning tree and treats the remaining edges ("chords") as cuts. Each cut is compared against the unique ordered path through the tree that connects its two endpoints. Closure means the two ways of computing the same relative transform agree; keeping the cut joint's own coordinate means the loop can still execute its physical motion, rather than being frozen into a weld.
3. **Group the equations into modules.** Equations that share a dependent variable are grouped so they can be solved separately. The grouping is deliberately conservative: variables that appear unconstrained are never placed in the dependent set, and a rank test later decides whether the partition actually works.
4. **Assemble the robot.** Starting from an infeasible guess, the compiler uses a defect-continuation scheme from PACDM to gradually remove the closure error while holding prescribed inputs fixed, then applies local correction during motion. A rank analysis of the closure Jacobian selects which velocities are dependent and produces a lift from a small set of independent speeds to the full robot motion.
5. **Carry motion and force through together.** The lift gives task and actuator velocity maps. Because actuator effort is paired with actuator velocity through virtual work, the effort map follows automatically, so power is preserved when switching coordinates. A curvature term extends the construction to accelerations, which feeds reduced rigid-body dynamics.
6. **Speed up repeat work.** The compiler knows which residual and Jacobian entries depend on which variables, so when only some inputs change it re-evaluates only the affected cycles and reuses the rest — always re-checking the full residual afterward.
7. **Check against independent tools.** The compiled models are compared with independent constrained-dynamics computations and with Pinocchio, then executed in MuJoCo and Isaac Sim/PhysX with physical parameters, references, and actuator definitions held fixed within each matched experiment.

## Why This Matters

**Impact on research.** The paper reframes closed-chain robot modeling as a compilation problem rather than a collection of separately maintained model files. It makes the consistency conditions explicit — same assembly branch, same independent coordinates, power-conjugate port maps, curvature retained in the acceleration map — and shows that agreeing coordinate vectors or successfully importing a model is not sufficient evidence of correctness. The reformulation of representation change as a transformation contract is a reusable idea for anyone maintaining multiple models of the same machine.

**Real-world applications.**

- **Heavy machinery and excavation:** hydraulic arms with closed linkages and moving actuator bodies, where the same model must serve both controller design and soil-interaction simulation.
- **Legged robots:** quadrupeds whose feet impose task-dependent contact and support constraints that change many times per run.
- **Parallel manipulators:** six-UPS Stewart platforms used as motion bases, stabilizers, or precision positioners, where loop closure dominates the mechanics.
- **Industrial manipulators with coupled mechanisms:** grippers whose fingers are linked by a single actuator port, and tool-frame tasks layered on top.
- **Simulation-driven development:** reinforcement learning and controller testing pipelines that require one model to run unchanged across multiple physics engines.

**Industry relevance.** Teams that currently maintain a URDF tree for the controller, a different set of constraints for the simulator, and a third set of coordinates for the dynamics library can replace that duplication with one compiled interface. The reported wall-time reduction of 66.8% on closed-loop rollouts matters directly for iteration speed in simulation-based development, and the multi-engine execution path reduces the risk of a policy that works in one simulator but not another.

## Future Directions

- **Bring contact into the compiled interface.** In the reported executions, impacts and contact transitions are resolved by the executing backends' own contact models, and unilateral contact is listed as future work for the compared manifold-planning line. Compiling unilateral constraints into the same rank-checked reduction is the natural next step.
- **Hardware validation.** All five systems are simulated. Demonstrating that the compiled interfaces hold on physical machines — particularly with real friction, transmission loss, and sensor noise at the declared mechanical ports — remains open.
- **Dynamic and contact feasibility for underactuated systems.** The velocity-selection formulation explicitly notes that floating-base or otherwise underactuated systems need an additional dynamic/contact feasibility layer to realize the selected velocity with admissible actuator efforts and contact forces.
- **Nonholonomic constraints.** Rolling constraints act at the velocity level and are described as entering through a separate motion layer; integrating them into the same compilation and consistency contract is unresolved.
- **Broader cut types and larger mechanisms.** The compiler's evaluation covers point, revolute, universal, and weld closures; extending the generated cut selection and assembly to a wider class of joint closures and to larger, more heavily looped mechanisms is a further open question.

## Target Audience

Robotics researchers and engineers working on closed-chain mechanisms, parallel robots, legged robots, and heavy machinery; developers of constrained-dynamics libraries and physics simulators who need well-defined model interfaces; and control engineers who must keep a controller, a dynamics model, and a simulator numerically consistent. Readers without a background in screw theory, constrained dynamics, or Jacobian-based redundancy resolution will find the formal sections difficult, though the motivation and the computational results are accessible.

## Authors’ abstract

Robots with kinematic loops, coupled actuators, and changing contacts require consistent models of configuration, motion, force, and dynamics. Yet these interfaces are often reconstructed separately for control and simulation, making closure and actuation consistency difficult to maintain. This paper presents RoboCompiler, a graph-native framework that compiles a canonical mechanism graph into a shared mechanical interface. From bodies, joints, frames, inertias, and actuator…

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

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

## Related papers

- [Adapting Rigid-Body Dynamics Derivatives for Constraint Embedding Closed-Chain Models](https://robotics.world/paper/adapting-rigid-body-dynamics-derivatives-for-constraint-embedding-2609.21024) 2026-09-17 · cs.RO · Key terms of the title in common
- [Beyond Policy Alignment: Closing the Planning-Learning Loop for Robot Control with Learned World Models](https://robotics.world/paper/beyond-policy-alignment-closing-the-planning-learning-loop-for-robot-2609.39751) 2026-09-30 · cs.RO · Key terms of the title in common
- [Adaptive Mean Flow for Responsive Closed-Loop Robot Control](https://robotics.world/paper/adaptive-mean-flow-for-responsive-closed-loop-robot-control-2610.06089) 2026-10-05 · cs.RO · Key terms of the title in common
- [Learning in Orbit: Onboard Training and Closed-Loop Attitude Control with a Thermal Segmentation Model on a Spacecraft](https://robotics.world/paper/learning-in-orbit-onboard-training-and-closed-loop-attitude-control-2610.19122) 2026-10-13 · cs.RO · Key terms of the title in common
- [When Do Learned Priors Help Visual Inertial Estimation? A Controlled Study of Prior Integration, Calibration, Initialization, and Backend Consistency](https://robotics.world/paper/when-do-learned-priors-help-visual-inertial-estimation-a-controlled-2609.13777) 2026-09-12 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/robocompiler-graph-native-compilation-of-closed-chain-robots-for-2609.35717
