Manuscript Offprint
arXiv:2610.21400Modular Inverse Dynamics and Wrench Recovery for Closed-Chain Mechanisms Using Path Assembly
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Mohammad Dastranj
Unit of Automation Technology
and Mechanical Engineering
Tampere University
Tampere, Finland
Corresponding author
Jouni Mattila
Unit of Automation Technology
and Mechanical Engineering
Tampere University
Tampere, Finland
Abstract—Rigid closed chains can admit indeterminate internal reactions even when their motion is fully specified. This paper develops a modular inverse-dynamics workflow that combines path-based motion reconstruction with recovery of uniquely determined actuator and joint-wrench outputs. Analytical second-order differentiation of assembled transformation paths supplies passive velocities and accelerations on a regular closure branch. Spatial Newton–Euler balances are then assembled over the physical body-and-joint graph. Established nullspace and dual criteria identify and recover unique outputs, while balance, ideal-joint admissibility and affine-family diagnostics assess nonunique reference reactions. Evaluation against Simscape Multibody uses prescribed motion of a seven-degree-of-freedom heavy-duty hybrid serial–parallel manipulator under common rigid-body, ideal-joint assumptions. The results show close agreement with the reference for passive positions, actuator efforts and uniquely recoverable constraint-wrench components. Reaction diagnostics support compatibility with the admissible numerical load family.
Index Terms—Closed-chain mechanisms, modular modeling, inverse dynamics, path assembly, joint-wrench recovery.
I. INTRODUCTION
Modular modeling supports the reuse of submechanism descriptions while preserving their kinematic and dynamic coupling. Systematic treatments of closed chains include modular dynamics for parallel manipulators with hybrid limbs [1] and constraint embedding for recursive dynamics with local loops [2]. Virtual Decomposition Control (VDC) likewise requires compatible motion and wrench quantities for its virtual-power-flow analysis [3]; applications include heavy-duty hydraulic manipulators [4], [5] and, more recently, hydraulic robot legs with triangular closed chains [6]. These developments motivate reusable motion and load descriptions for closed-chain modules.
Closure-consistent motion, however, does not imply that every joint load is uniquely determined. Redundant rigid constraints can admit multiple reaction distributions while selected components remain unique [7]. Free-body-diagram [8] and constraint-matrix [9] approaches have been developed for analyzing reaction and driving-force uniqueness, with subsequent developments within the divide-and-conquer framework [10]. Consequently, load recovery requires identifying which requested outputs are invariant across the admissible solutions of the balance equations.
Path-Assembled Closure Differential Mapping (PACDM) provides closure resolution and local active-to-passive mappings from ordered transformation paths [11]. This representation has also been connected to actuator-port mappings, acceleration reduction, and reduced inverse and forward dynamics [12]. However, integrating reaction-uniqueness analysis into PACDM-based inverse dynamics for physical actuator and joint-wrench recovery remains to be demonstrated. Building on these developments and established body-balance and reaction-uniqueness formulations [8], [9], [13], the present work develops a path-assembly workflow for motion reconstruction and recovery of uniquely determined actuator and joint-wrench outputs in the presence of indeterminate internal reactions. Here, modularity refers to module-local closure reconstruction and assembly of body-level balance equations; the coupled load-recovery problem is solved globally.
The workflow extends the inherited kinematics through analytical second-order path differentiation, reconstructing passive velocities and accelerations on a regular closure branch. Spatial Newton–Euler balances are assembled over an explicitly specified physical body-and-joint graph, with each body’s inertia included once. The established nullspace criterion and its dual formulation recover each determined output, subject to numerical consistency and rank checks. Reference reactions that are nonunique are assessed through body balance, ideal-joint admissibility and distance to the normalized affine solution family. Together, these elements retain the modular path description while separating uniquely recoverable loads from indeterminate reaction distributions.
The formulation is evaluated against Simscape Multibody under prescribed motion of a 7-degree-of-freedom heavy-duty hybrid serial–parallel manipulator with two closed-chain modules. Simulation provides reference constraint forces and torques that are difficult to measure comprehensively in hardware [13]. The common rigid-body, ideal-joint setting isolates reconstruction and load recovery from measurement noise and unmodeled physical disturbances.
A. Problem Formulation and Conventions
The reconstruction problem concerns the prescribed motion of a rigid closed-chain manipulator with ideal revolute and prismatic joints. The active trajectory and its first two time derivatives are given, while the passive motion is determined by the closure equations. The active and passive subvectors of the full coordinate vector are defined by
where the constant selection matrices and extract the active and passive coordinates, respectively, with . The prescribed trajectory is assumed to be twice continuously differentiable. Reconstruction is restricted to a selected regular closure branch on which the passive coordinates are locally determined by the active coordinates.
Following the path-assembly representation of [11], each closed-chain module is described by ordered transformation paths sharing the same endpoints. These paths comprise fixed frame transformations and constant-twist joint transformations. The module partition, path definitions and geometry are specified inputs to the reconstruction.
The transformation maps coordinates from frame B to frame A. The wedge and vee maps between and use angular-first vector ordering, with a twist expressed as , where denotes vertical concatenation. Revolute and prismatic coordinates are expressed in radians and metres, respectively. The reconstructed positions, velocities and accelerations provide the kinematic inputs to the physical body balances in Section III. These balances are subsequently used to assess the uniqueness of the requested actuator efforts and joint-wrench components and to recover the uniquely determined outputs.
B. Analytical Motion Reconstruction
The closure representation and local differential mapping of [11] provide the basis for motion reconstruction. For each independently resolved closed-chain module , the active and passive coordinates form the vector . For two paths and sharing endpoints, closure is expressed within the selected local logarithm chart as
For a module with paths, path 1 is retained as the reference in every comparison, while runs through the remaining paths. The resulting residuals are assembled into . Although these residuals enforce equality of all path transformations, their scalar components may be dependent. The corresponding module-coordinate Jacobian is . A row-selection matrix retains equations, giving
Local reconstruction assumes that has constant rank in a neighborhood of the considered configuration and that the selected passive block is nonsingular. Under these conditions, the selected equations are locally equivalent to the full closure equations and determine the passive coordinates from the active coordinates. Differentiation of (3) gives the passive coordinate rates. Assembly of the module maps in the global coordinate order then yields
(4)
where the intermediate Jacobian maps the prescribed active rates to the full coordinate rates.
A closure-consistent initial configuration is obtained by defect homotopy as in [11]. The present implementation retains the row-selection matrix established at initialization. At subsequent trajectory points, the previously accepted configuration provides a first-order prediction, followed by Newton correction with passive-coordinate bounds and line search. The corrected configuration is checked against the full closure residual.
The corresponding acceleration follows by time differentiation of (4), in accordance with the standard dependent-coordinate acceleration relation [14],
The acceleration bias accounts for the configuration dependence of the intermediate Jacobian. Its evaluation uses analytical derivatives of the path factors. A joint factor has a constant generator , including any signed coordinate scale, which satisfies [14]. Its first and second time derivatives are therefore
For a fixed factor, both derivatives vanish. When a factor F is appended to a partial path product T, the product rule gives
Successive application of these relations provides the first and second derivatives of each assembled path.
The closure acceleration bias is isolated by evaluating these recursions at the reconstructed and with a zero acceleration argument. The resulting second path derivatives are denoted by . At closure and for a tangent velocity, the relative path transform and its first derivative are and zero, respectively. The logarithm differential used in PACDM [11] reduces to the identity at this point. Since the first derivative of the relative transform vanishes, the second derivative of the logarithmic residual gives the closure acceleration bias as
The module bias vector contains these pairwise terms in the same order as the residuals in . The corresponding acceleration constraints follow by twice differentiating the selected closure equations [14]. Together with (5), they give
(9)
where collects the passive entries of for module . Since the active entries are zero, assembly of these module solutions determines and hence the full coordinate acceleration in (5). The reconstructed motion is checked through the full velocity closure equations and the full acceleration mismatch matrices of the path pairs.
III. INVERSE DYNAMICS AND WRENCH RECOVERY
A. Physical Inverse-Dynamics Assembly
The reconstructed coordinate motion determines the pose and motion of every physical body. For body i, maps its body reference frame to the fixed world frame, and its derivatives are evaluated from the assigned path using (7). The body twist and its time derivative follow from the standard body-twist definition [15] as
(10)
Both quantities are expressed in body axes. The derivative is the ordinary time derivative of these body-frame components, so its linear part includes the effect of the rotating axes.
The constant spatial inertia is expressed about the body reference origin in body axes and represents its mass distribution [15]. Wrenches use moment-first ordering, with moments in N.m and forces in N. For , the dual spatial cross-product operator is
where . The spatial Newton–Euler balance [16] then gives the net wrench required from the incident joints as
Gravity contributes , with . Here, is the body mass, is its center-of-mass offset from the body origin in body axes, is the rotation block of , and is the gravitational acceleration in world axes. The term denotes a known nongravitational wrench applied to body , expressed about its reference origin in body axes. Nonzero prescribed external loads are included directly through this term. One balance is assembled for each physical moving body or rigid aggregate using its total spatial inertia.
Joint connects a base body to a follower body , with denoting the world. Its total wrench acts from base to follower and is expressed about the origin of the joint follower frame in its axes. For an ideal revolute or prismatic joint, the reaction basis has orthonormal columns satisfying , where is the unit-axis motion screw expressed in . This reciprocity expresses the workless character of ideal constraints [15]. The joint wrench therefore has the form
where contains the reaction coordinates. For an active joint, and is the actuator torque or force; passive joints have no actuation term or associated load column. The effort sign follows the physical positive joint axis, independently of path traversal direction.
For a transform T with rotation R and translation p, the corresponding wrench transport is [15]
The off-diagonal block accounts for the change of moment reference. The load vector contains the reaction coordinates and active efforts in joint order. The blocks of associated with joint and its two incident bodies are
(15)
Here, maps the joint follower frame to body frame i. Both terms transport the same wrench reference, with opposite signs for action and reaction. The base block is omitted for , and all other body blocks in these joint columns are zero. Assembly over the moving bodies gives
where contains the wrench requirements in (12). For moving bodies and scalar outputs, and . Rows of select actuator efforts or components of the constraint wrench or total wrench , after transport to the specified output frame. Thus, each output retains its joint, frame, component and physical meaning.
B. Output Uniqueness and Recovery
Output uniqueness follows the established nullspace criterion for reaction components and their linear combinations [13]. For a consistent balance system, a particular solution and a basis of describe all solutions as
where is arbitrary. For row of , the corresponding output is independent of this freedom if and only if
(18)
The first condition removes the term , and the remaining equivalences follow from .
Consequently, any such dual vector recovers the output as
Thus, selected outputs can be determined even when the complete load vector is nonunique.
The numerical calculation uses positive diagonal scales , and for the balance equations, load coordinates and outputs, respectively:
These scales make the numerical tests dimensionless. A full singular value decomposition [13] provides the retained factors , and for numerical rank . The remaining right singular vectors form . The complete right basis is retained because the physical balance matrix may have more columns than rows. The representative solution and dual recovery are
with the last line providing candidate output values.
Acceptance is assessed separately for each output. For row of and column of , both and must satisfy the prescribed absolute and row-relative tolerances. Acceptance also requires a sufficiently small normalized balance residual and an unchanged numerical rank when the singular-value threshold is multiplied and divided by ten. Outputs failing any of these conditions are marked unavailable. The representative is retained for diagnostics; its undetermined load components are not reported as unique predictions.
C. Diagnostics for Nonunique Reactions
Nonunique reactions are assessed through the compatibility of the logged Simscape loads with the rigid-body balance equations and ideal-joint conditions. These checks are performed after recovery and do not modify the predicted outputs.
For joint , denotes the logged base-on-follower constraint wrench, expressed at the origin of in its axes. Projection onto the reaction basis introduced in Section III-A gives the reaction coordinates and excluded wrench component as
(22)
Joint admissibility is assessed from , with moments and forces normalized by their respective scales, and the signed quantity . The latter is the free-axis torque for a revolute joint or free-axis force for a prismatic joint.
The projected coordinates and logged actuator efforts form in the load-coordinate order of (16). The projected balance residual is . A second balance restores the excluded components through the corresponding wrench transports, with opposite signs on the connected bodies. This raw balance uses the original logged wrenches and retains each body's Newton–Euler equations, including the components removed by projection. Both balances use the reconstructed motion and therefore also reflect motion or model mismatch.
The normalized reference vector is . When the balance system is numerically consistent and its rank is stable, the same orthonormal basis N used in Section III-B gives
(23)
This is the dimensionless Euclidean distance to the normalized affine family . Its relative value divides by , where machine epsilon prevents division by zero. The norm measures the discrepancy along the numerical nullspace. The coordinates depend on the chosen basis and serve only this diagnostic projection.
A small family distance supports compatibility of the projected loads with the computed solution family and is interpreted together with raw balance and joint admissibility. These diagnostics do not identify physical load sharing or introduce a compliance model.
IV. SIMULATION AND RESULTS
A. Manipulator and Simulation Setup
The 7-degree-of-freedom heavy-duty hybrid serial–parallel manipulator and its path illustrations in Figs. 1 and 2 are adapted from [11]. Geometric and inertial parameters are protected by a nondisclosure agreement (NDA). Its tilt four-bar has identical parallel side links with endpoint joints (10a, 12a) and (10b, 12b). Both are modeled separately, giving 14 moving bodies and 18 coordinates: seven active and eleven passive.
The lift and tilt modules have two and four paths, connecting 1F to 4B and 6B to 9B, respectively. Path 1 is the reference, giving one lift and three tilt closure pairs. Tilt paths 3 and 4 contain the original (a) and additional (b) side links, respectively. The active coordinates are , , , , , and ; , and are prismatic, and all passive coordinates are revolute.
Simscape executes the 30 s trajectory in Fig. 3, evaluated on a 1 ms sampling time. The test includes gravity and zero non-gravitational external wrench. Active positions, velocities and accelerations are the reconstruction inputs; passive positions and joint loads serve only for validation.
The assembly has 84 balance equations, 97 load coordinates and 223 requested scalar outputs. Equation and load-coordinate scales are N and N.m. The singular-value threshold is , with the largest singular value of . These settings are independent of the agreement errors.
B. Reconstruction and Load-Recovery Results
Errors are path-assembly values minus Simscape values, with equally weighted samples for root-mean-square errors


Lift module

Tilt module
Fig. 1. left: Manipulator with a four-bar close-up. Yellow/gray markers denote active/passive joints. The close-up shows the identical parallel side links; labels 10 and 12 represent and to avoid clutter. right: Lift and tilt closed-chain modules. Tilt paths 3 and 4 overlap in this side view.

Tilt module

Fig. 2. Lift and tilt path graphs. Suffixes and denote base and follower frames; identify the parallel links.

Revolute joints
Fig. 3. Prescribed active-coordinate trajectories: prismatic joints (upper) and revolute joints (lower).
(RMSE). Table I reports the raw passive-coordinate errors without angle wrapping. All eleven coordinates are reconstructed throughout the run; the largest absolute error is rad at . This comparison assesses passive-position reconstruction on the tested assembly branch.
The balance and rank checks pass at every sample, and all seven actuator efforts satisfy the recovery conditions. Figure 4 compares their histories; Table II quantifies the agreement.

Path assembly
- Simscape
Fig. 4. Actuator efforts from path assembly (solid) and Simscape (dashed): torques on the left and forces on the right. Each joint has an independent vertical scale, shared by the two methods; all efforts retain their physical units.
TABLE I PASSIVE-COORDINATE ERRORS (RAD), WITHOUT ANGLE WRAPPING. ALL ELEVEN COORDINATES HAVE FULL COVERAGE.
| Joint | RMSE | Max. abs. error |
|---|---|---|
The largest force and torque RMSEs are and , respectively.
Table III reports 37 of 54 force components and 28 of 54 moment components as valid throughout the run. The requested set comprises all three components at each of the 18 joints; validity identifies uniquely recoverable outputs satisfying the checks in Section III-B, independently of their agreement with Simscape. In a redundant rigid model, individual reactions can vary within the balance-equation nullspace. Such
TABLE II ACTUATOR-EFFORT ERRORS. ALL SEVEN OUTPUTS ARE VALID AT EVERY EVALUATED SAMPLE.
| Joint | Unit | RMSE | Max. abs. error |
|---|---|---|---|
| N.m | |||
| N | |||
| N | |||
| N | |||
| N.m | |||
| N.m | |||
| N.m |
TABLE III UNIQUE CONSTRAINT-WRENCH RECOVERY AND ERRORS RELATIVE TO SIMSCAPE.
| Group | Valid/ requested | Max. RMSE | Max. abs. error |
|---|---|---|---|
| Forces (N) | 37/54 | 0.000407 | 0.00113 |
| Moments (N.m) | 28/54 | 0.00641 | 0.00704 |
Valid: uniquely recoverable components satisfying all recovery checks throughout the run. Errors use these components; the two maxima may occur in different components.

Fig. 5. Scaled raw body-balance residual (upper) and relative reaction-family distance (lower). Both diagnostics are dimensionless.
nonunique components are assessed through the compatibility diagnostics below. The counts thus describe recoverability, while the error statistics measure agreement for uniquely determined components. The valid counts include structurally zero ideal-joint components. Each group RMSE is the largest individual component RMSE, and all error statistics use valid outputs.
Figure 5 shows the diagnostics defined in Section III-C. Here is the largest absolute scaled residual across the 84 raw body-balance equations, and is the relative form of in that section. Their temporal RMS values are and , with maxima and , respectively. The ideal-joint admissibility residual is zero throughout. These diagnostics support compatibility of the logged reactions with the numerical load family.
V. CONCLUSION
This work connected analytical path-based motion reconstruction to physical inverse dynamics and recovery of uniquely determined loads. The prescribed-motion comparison showed close agreement for passive positions, all seven actuator efforts and the valid constraint-wrench components. The reaction diagnostics supported compatibility with the admissible numerical load family without selecting a unique redundant reaction distribution. These findings apply to the tested regular branch and rigid-body, ideal-joint model; compliant load sharing remains outside the formulation.
ACKNOWLEDGEMENTS
We acknowledge the financial support of the Finnish Ministry of Education and Culture through the Intelligent Work Machines Doctoral Education Pilot Program (IWM VN/3137/2024-OKM-4).
REFERENCES
[1] A. Müller, “Dynamics of parallel manipulators with hybrid complex limbs—modular modeling and parallel computing,” Mechanism and Machine Theory, vol. 167, p. 104549, 2022.
[2] M. Chignoli, N. Adrian, S. Kim, and P. M. Wensing, “A propagation perspective on recursive forward dynamics for systems with kinematic loops,” IEEE Transactions on Robotics, vol. 41, pp. 5584–5603, 2025.
[3] M. Hejrati and J. Mattila, “Physical human–robot interaction control of an upper limb exoskeleton with a decentralized neuroadaptive control scheme,” IEEE Transactions on Control Systems Technology, vol. 32, no. 3, pp. 905–918, 2024.
[4] G. R. Petrović and J. Mattila, “Mathematical modelling and virtual decomposition control of heavy-duty parallel–serial hydraulic manipulators,” Mechanism and Machine Theory, vol. 170, p. 104680, 2022.
[5] M. Hejrati and J. Mattila, “Orchestrated robust controller for precision control of heavy-duty hydraulic manipulators,” IEEE Transactions on Automation Science and Engineering, vol. 22, pp. 14285–14306, 2025.
[6] K. Zhang, H. Zong, Y. Li, J. Ai, J. Zhang, and B. Xu, “Equivalence of closed chains to open chains: Virtual decomposition control combined with adaptive RBF neural network for hydraulic robot legs,” IEEE Robotics and Automation Letters, vol. 10, no. 10, pp. 10138–10145, 2025.
[7] M. Wojtyra, “Joint reaction forces in multibody systems with redundant constraints,” Multibody System Dynamics, vol. 14, no. 1, pp. 23–46, 2005.
[8] M. Pękal, M. Wojtyra, and J. Frączek, “Free-body-diagram method for the uniqueness analysis of reactions and driving forces in redundantly constrained multibody systems with nonholonomic constraints,” Mechanism and Machine Theory, vol. 133, pp. 329–346, 2019.
[9] M. Pękal and M. Wojtyra, “Constraint-matrix-based method for reaction and driving forces uniqueness analysis in overconstrained or overactuated multibody systems,” Mechanism and Machine Theory, vol. 188, p. 105368, 2023.
[10] M. Pękal, P. Malczyk, M. Wojtyra, and J. Frączek, “Reaction uniqueness problem in the divide-and-conquer approach,” Multibody System Dynamics, vol. 68, no. 1, pp. 203–222, 2026.
[11] M. Dastranj and J. Mattila, “Modular kinematic reduction of closed-chain mechanisms using path assembly and defect homotopy,” 2026, arXiv:2609.11338v1.
[12] M. H. Shahna, J. Kim, and J. Mattila, “RoboCompiler: Graph-native compilation of closed-chain robots for consistent modeling, control, and simulation,” 2026, arXiv:2609.35717v2.
[13] M. Pękal, P. Malczyk, M. Wojtyra, and J. Frączek, “Divide-and-conquer-based approach for the reaction uniqueness analysis in overconstrained multibody systems,” Multibody System Dynamics, vol. 63, no. 3, pp. 367–396, 2025.
[14] A. Müller, “An overview of formulae for the higher-order kinematics of lower-pair chains with applications in robotics and mechanism theory,” Mechanism and Machine Theory, vol. 142, p. 103594, 2019.
[15] K. M. Lynch and F. C. Park, Modern Robotics: Mechanics, Planning, and Control. Cambridge University Press, 2017.
[16] R. Featherstone and D. Orin, “Robot dynamics: equations and algorithms,” in Proc. IEEE Int. Conf. Robotics and Automation (ICRA), 2000, pp. 826–834.