arXiv:2609.35717cs.ROSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.35717

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

Mehdi Heydari Shahna, Joongheon Kim, Jouni Mattila

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mehdi Heydari Shahna D◯\textcircled{D}, Joongheon Kim D◯\textcircled{D}, and Jouni Mattila D◯\textcircled{D}

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 ports, it constructs closure paths and analytic residual Jacobians, then assembles feasible configurations through rank-checked continuation and correction. A tangent lift maps independent velocities to full robot and task motion, while paired actuator-port maps preserve virtual work. A constraint-curvature correction extends the reduction to accelerations and projected rigid-body dynamics, including floating-base and support modes. Cycle-local evaluation, generated Jacobians, and dependency-aware reuse enable localized updates when closure inputs change. We evaluate physical loops and task-induced constraints on a Komatsu excavator, Unitree Go2, Franka Panda, Kangaroo, and a six-UPS Stewart platform. High-precision constrained-dynamics and independent Pinocchio checks confirm mechanical consistency; MuJoCo and Isaac Sim/PhysX executions demonstrate task performance and model reuse under native contact. For 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.

Index Terms—Closed-chain mechanisms, constrained dynamics, kinematics, parallel robots, robot modeling, simulation.

I. INTRODUCTION

A robot’s physical joints and actuator attachments determine its admissible motion and how mechanical work enters the system. Closed linkages make these relationships difficult to carry through a computational model: a dynamics library may open a loop to form a tree, a controller may use a different set of independent coordinates, and a simulator may impose the same connection through native constraints. Contact and support introduce further mode-dependent constraints. These representations can describe one mechanism, but their configuration, velocity, acceleration, and effort interfaces must remain compatible. This requirement is especially consequential for robots with multiple coupled linkages, moving actuator bodies, and floating bases [1].

Robot-description methods provide a foundation for representing such systems. URDF+ adds loop joints and coupling relations to URDF and automatically groups constrained bodies for recursive algorithms [2]. Extended URDF records closure and actuation information alongside a tree model and provides tools to construct corresponding Pinocchio models [3]. Both make physical connections available to downstream computation. A separate line of work infers a robot's connectivity and joint geometry from proprioceptive data [4].

Methods for operating on constrained configurations address another part of the problem. Manifold-based kinodynamic planning integrates motion on holonomic constraint manifolds [5]. HyRoDyn combines analytical submechanism solutions with numerical closure and provides mappings between independent and actuation coordinates for kinematics and dynamics [6], [7]. The Kangaroo model develops detailed closed-loop kinematic and actuator relationships for a floating-base mechanism [8]. PACDM constructs closure residuals and analytical Jacobians from ordered transformation paths, then uses rank selection, defect homotopy, and continuation to obtain a feasible configuration and its local differential map [9].

Constrained dynamics and control have advanced in parallel. Constraint embedding and GRBDA enable recursive dynamics for mechanisms with local loops [10], [11]; recent work develops dynamics derivatives for constraint-embedded models [12]. Pinocchio provides constrained-dynamics solvers, including recursive closed-loop forward dynamics [13]–[15], while MuJoCo represents loop connections through equality constraints and executes contact-rich simulations [16], [17]. At the control level, hierarchical optimization, redundancy resolution, geometric motion policies, and optimal control provide ways to use constrained kinematics and dynamics for tasks [18]–[23].

Table I compares selected methods by the interfaces they expose, including closed-chain modeling, assembly, kinematic mapping, dynamics, floating-base contact, and multi-simulator execution. The comparison is intended to summarize documented interface coverage rather than to rank complete software systems with different design goals.

Taken together, these advances address major parts of closed-chain model description, constrained assembly, kinematic reduction, dynamics, simulation, and control. They leave, however, an important integration question: how can these computational views be generated from the same physical mechanism description while preserving assembly, mo-

This work was supported by the grant named the Post Docs in Companies (PoDoCo) program in Finland.

M. H. Shahna and J. Mattila are with the Faculty of Engineering and Natural Sciences, Tampere University, Tampere, Finland; and J. Kim is with the Department of Electrical and Computer Engineering at Korea University, Seoul, Republic of Korea. (Corresponding author e-mail: mehdi.heydarishahna@tuni.fi)

Code: https://github.com/Mehdi-Heydari-Shahna/RoboCompiler

TABLE I

CAPABILITIES OF CLOSED-CHAIN MODELING AND DYNAMICS TOOLS. √: YES; o: PARTIAL; ×: NO; -: NOT STATED IN THE PRIMARY SOURCE; N/A: NOT APPLICABLE. LOOPS IN MODEL: CLOSURES ARE PART OF THE MODEL/GRAPH DESCRIPTION. AUTO. CUT SEL.: SPANNING TREE AND CUT JOINTS CHOSEN AUTOMATICALLY FROM A GENERAL BODY-JOINT GRAPH. ASSEMBLY: BUILT-IN POSITION-LEVEL CLOSURE SOLVE. TANGENT MAP: EXPLICIT MAP FROM INDEPENDENT TO FULL VELOCITIES. PORT MAPS: EXPLICIT ACTUATOR-PORT VELOCITY MAP WITH ITS DUAL (VIRTUAL-WORK-CONSISTENT) EFFORT MAP; o = JOINT-SPACE TORQUES, GEARS OR COUPLINGS ONLY. FD: R = REDUCED/PROJECTED, K = LAGRANGE-MULTIPLIER/KKT, REC = RECURSIVE, S = SOFT (REGULARIZED) CONSTRAINTS; A/N = ANALYTIC/NUMERICAL J˙q˙\dot{J}\dot{q}. FLOAT. BASE + CONTACT: FLOATING-BASE MODELS WITH CONTACT OR SUPPORT CONSTRAINTS (BILATERAL OR UNILATERAL). MULTI-SIM.: EXECUTION OR VALIDATION OF THE SAME MODEL IN EXTERNAL SIMULATORS OR DYNAMICS LIBRARIES (√: SEVERAL; o: ONE).

WorkLoops in modelAuto. cut sel.Closure typesAssembleTangent mapJ˙q˙\dot{J}\dot{q} termPort mapsFDFloat. base + contactMulti-sim.
Bordalba et al. [5]--holonomic Φ(q)=0\Phi(q)=0✓oao^a--manifold ODE−b-^b-
HyRoDyn [6], [7]○×submechanism libraryc^c✓✓✓ (A)✓R--
Kangaroo model [8]✓×relative pose, selected axes✓✓✓ (A)✓ID onlyd^d✓○
URDF+ [2]✓×URDF joint types, linear couplings-○-○n/ae^e--
Constraint embedding / GRBDA [10], [11]✓f\checkmark^f×explicit GG, implicit ϕ(q)\phi(q)○✓✓ (A)○Rec○○
LCABA [14] / Pinocchio 4.1 [13], [15]○ogo^gpoint (3D), weld (6D)oho^h×✓ (A)i^i○K, Rec✓ojo^j
MuJoCo 3.3.7 / 3.14 [16], [17]✓×point, weld, scalar joint/tendonoko^k××/olo^l✓S✓n/a
PACDM [9]○×SE(3) path-pose equality✓✓--× (kinematics)-○
RoboCompiler (this work)✓omo^mpoint, revolute, universal; welds✓✓✓ (N)n^n✓R✓✓

a^{a} Orthonormal basis of the state-manifold tangent space at each chart centre (local chart coordinates), not an explicit q˙\dot{q} map.

b^{b} All examples are fixed-base; unilateral contact is listed as future work.

c^{c} Closed-form submechanism types (e.g., 1-RRPR, 2-SPU+1U, 6-UPS) plus a numerical fallback; users annotate the submechanisms.

d^{d} Inverse dynamics via Lagrange multipliers; no forward-dynamics algorithm is stated.

e^{e} Model format; its output is intended for recursive constraint-embedding algorithms.

f^{f} Through URDF+ in the GRBDA library (≥v2.1.0); the T-RO paper itself uses a cluster-graph formalism.

g^{g} The SDF parser keeps one parent joint per multi-parent link in the tree and converts the others into constraints.

h^{h} No library routine; the official examples hand-code an inverse-geometry loop.

i^{i} Analytic drift γc,T\gamma_{c,T}. In Pinocchio 4.1.0 lcaba, the Baumgarte term is active only for 6D constraints.

j^{j} A Pinocchio unit test compares closed-chain MJCF kinematics with MuJoCo; the LCABA benchmarks stay inside Pinocchio.

k^{k} No assembly routine. With anchors, the constraint is assumed satisfied at qpos0; with sites, the sites snap together at the beginning of simulation.

l^{l} Not computed in 3.3.7; added for connect/weld in 3.7.0; still absent for the tendon rows in our 3.14.0 tests.

m^{m} Tree and revolute cuts generated from physical records in the excavator compiler; the Stewart compiler generates the physical tree for each spherical tree-joint choice; the Kangaroo compiler takes declared cuts.

n^{n} Analytic closure Jacobian; J˙q˙\dot{J}\dot{q} by a centered directional finite difference of it.

tion, acceleration, actuation, and mechanical-power consistency across them?

A physical description, a feasible closure solution, and a constrained-dynamics solver must refer to the same assembly branch and actuator coordinates if their outputs are to be used together. Changing the computational tree must preserve the restrictions imposed by each physical connection. Changing independent coordinates must carry the task differentials and reduced inertia with them. Actuator velocities and efforts must transform as a power-conjugate pair, and the acceleration map must retain constraint curvature. Agreement of coordinate vectors or successful model import alone does not establish all of these relationships.

We develop RoboCompiler to address this integration problem. RoboCompiler is a graph-native compiler built around a canonical mechanism graph (CMG) whose body, joint, frame, inertia, and actuator-port records retain their physical identities. Starting from the physical mechanism records, the compiler selects tree and cut assignments or accepts declared cuts, generates ordered closure paths and coordinate-dependency records, and provides the path structure required by PACDM.

PACDM continuation and correction establish a feasible assembly branch, after which rank checks and analytical closure Jacobians provide a tangent lift from independent to full velocities. A constraint-curvature term extends the lift to accelerations, while paired port-velocity and effort maps preserve virtual work. These quantities feed reduced rigid-body dynamics and task-level computation, and backend-specific views support independent dynamics checks and native execution in external simulators. Cycle-local evaluation and reuse of unaffected dependency modules reduce repeated closure computation while preserving the accepted PACDM solution.

In this sense, RoboCompiler is complementary to robot-description formats, constrained-dynamics libraries, and simulators: rather than replacing them, it compiles a shared physical mechanism description into mechanically consistent interfaces that these tools can use. Table I and Figs. 1 and 2

Figure

Fig. 1. Categorical interface coverage from Table I, with RoboCompiler highlighted. Scores 1, 0.5, and 0 encode documented, partial, and absent support; not-stated and inapplicable categories remain gaps.

summarize the resulting interface coverage: among the compared methods, only RoboCompiler is documented to combine point, revolute, and universal cuts and position-level assembly with 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 contributions of this work are as follows:

  • We introduce a graph-native compilation procedure 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.

  • From a shared assembled configuration, we generate the tangent lift, a constraint-curvature correction, and virtual-work-dual actuator-port maps. Together, these form a common independent-coordinate interface for motion control and reduced inverse and forward dynamics of fixed-base robots and of floating-base robots under ideal support modes.

  • We generate cycle-local analytical closure Jacobians and dependency-aware update schedules from the graph. Selective evaluation and reuse reduce repeated work during continuation and local task changes while preserving the underlying PACDM closure and correction equations.

  • We evaluate the interfaces on three physically closed-chain mechanisms and two robots with task or actuator coupling. Independent constrained-dynamics checks, matched computational ablations, and executions in MuJoCo, Pinocchio, and Isaac Sim demonstrate mechanical consistency, computational benefit, and reuse across environments.

The complete code for all five robots and their MuJoCo, Pinocchio, and Isaac Sim/PhysX workflows is available open source at https://github.com/Mehdi-Heydari-Shahna/RoboCompiler.

References (25)