Summary
Tendon-in-the-Loop (TiL) is a proposed hardware-in-the-loop (HIL) dynamometer that couples an instrumented tendon transmission to a virtual robotic finger in MuJoCo. The objective is to estimate distal tendon tension and finger joint positions from motor-side measurements when the transmission is nonlinear and changes with use.
| Item | Status |
|---|---|
| Physical testbed | Proposed; not built |
| Numerical prototype of the coupling architecture | Implemented and verified (synthetic data) |
| Motor-only observers (tension, joint angles) | Evaluated on synthetic data only |
| Hardware transfer | Not tested |
General cable mechanics and MuJoCo tendon representations are discussed in the Cable blog series.
1. Problem
Tendon-driven robots transmit actuator force through flexible cables. The relation between motor motion and finger state is affected by three coupled effects.
- Configuration-dependent dynamics. Routing determines how motor motion and force reach the joints. As the finger moves, cable contact, bending and moment arms can change the transmission response.
- Time-varying dynamics. Repeated loading changes effective cable length, stiffness, friction and hysteresis through settling, creep and wear. A model identified under one condition may not describe the transmission after extended operation.
- Partial observability. Motor position, velocity and current do not directly measure distal tendon tension or joint configuration. Cable deformation and friction lie between the two.
The effects interact. Joint motion changes tendon loading and possibly routing; loading history changes the transmission response; uncertainty in that response makes joint motion and contact difficult to infer from motor measurements. For example, if a motor moves and a joint moves less than expected, the difference may come from cable elongation, transmission friction or external contact. These causes can produce similar motor-side signals, so their contributions are difficult to separate in experiments on an assembled hand.
TiL separates the physical transmission from the robot dynamics while keeping their force–motion interaction. Robot loading and contact can then be varied independently of selected transmission properties. System identification characterizes the transmission; state observers test what can be recovered without distal sensing.
Research question. Can motor-side measurements support reliable estimation of distal tendon tension and joint states under configuration-dependent, time-varying and partially observed transmission dynamics?
2. Testbed Design
2.1 Transmission channel
The dynamometer connects two actuators through the cable, guides or pulleys, and terminations under test. An input quasi-direct-drive (QDD) motor drives the tendon as it would in a robotic finger. An emulation motor reproduces the distal boundary motion generated by a virtual two-degree-of-freedom (2-DoF) finger. The two actuators form one transmission channel; each additional tendon requires another actuator pair and its instrumentation.
Input and output load cells measure tension at both ends of the transmission. Motor encoders and pulley motion measurements provide the kinematics. With both boundaries measured, transmission losses and deformation can be characterized without assuming that motor torque determines distal tendon force.
2.2 Force–motion coupling
Measured distal tension is applied to the simulated finger through its tendon length Jacobian:
Here, is the tendon length determined by the finger configuration; positive tension resists tendon lengthening. MuJoCo advances the joint dynamics, including inertia, passive mechanics, gravity and object contact. The updated configuration sets the emulation motor command:
Actuator coordinates and signs must be calibrated consistently with the tendon displacement convention. Because the physical transmission supplies the tendon force, its stiffness and friction must not be applied again through a numerical tendon model.
Test a real cable with a virtual finger on its end
Initial parameters (fixed): changing one restarts the run
Pulley details (diameter, efficiency, friction)
Runtime parameters: applied immediately
Load case
Teaching model. The real-hardware part is computed here too: both cable spans are linear springs k_c, and the pulley has no inertia, only friction. The tension difference it can hold is τ_c/r + μ(T_in + T_out), with μ = (1 − η)/(1 + η) from the bearing efficiency η (with τ_c = 0, T_out = η·T_in while slipping); a velocity-proportional friction b adds while slipping. The amplitude A is a pulley angle, so the cable stroke is r·A (r = D/2). The virtual finger has moment arm r_f = 10 mm, inertia 0.00005 kg·m², return spring stiffness k_f and damping 0.005 N·m·s/rad; the pretension balances the return spring at φ = 0. The object is a spring of rotational stiffness k_s about the joint; it only pushes once touched (never pulls) and has contact damping 0.02 N·m·s/rad. In the gravity case the drawing is flipped so that flexion lifts the link; β is the link angle above horizontal at φ = 0, and the gravity torque is m·g·l·cos(φ + β). The output actuator is assumed to track the computed position exactly and without delay. In a real HIL rig that tracking bandwidth and delay limit how stiff a finger and object can be rendered.
2.3 Routing
In a compact tendon-driven hand, cable contact changes as the joints move. The initial TiL design uses a fixed physical route: MuJoCo joint motion changes virtual tendon length and moment arms, but not the physical cable path in the dynamometer. Physical routing is therefore a separate experimental condition. Interchangeable fixtures can set bending radii, wrap angles and guide arrangements; reproducing a continuously changing route would require additional mechanical motion synchronized with the virtual finger. The initial apparatus applies robot-generated boundary loading but does not reproduce every moving contact inside an articulated finger.
One tendon per joint: test both tendons on real hardware
Initial parameters (fixed)
Pulley details (efficiency, friction)
Virtual finger target pose: sliders or drag the target tip (dashed circle)
Virtual finger joint PD gains (both joints)
Object: drag to move
Teaching model. The virtual finger has links of 50 mm and 35 mm, and a PD controller per joint (K_p, K_d) drives it toward the target pose (joint inertias 0.0002 and 0.00005 kg·m², computed independently). Dashed is the target pose, solid the actual one. The tendons carry the PD torque. Tendon 1 crosses joint 1 only, with moment arm R₁ = 15 mm; tendon 2 crosses both joints with moment arm r = 10 mm. The rig pulleys have the same radii. The rig link follows q₁, and tendon 2 enters the joint-1 idler pair crossed so both strands stay wrapped. Emulation Motor 2 renders the joint-2 PD torque; Emulation Motor 1 renders the joint-1 PD torque minus the share tendon 2 already applies at joint 1. Neither goes below the pretension. Each pulley has only bearing friction (Coulomb τ_c and efficiency η): while the cable moves it sets a tension step in that direction, and when it stops the last step is held. Inertia, dynamic friction and idler friction are not modeled.
The two-tendon illustration extends the single-channel concept. Each tendon has its own input and emulation actuator pair, so the intended apparatus has four motors: two robot actuators and two boundary emulators. Both interactive examples illustrate the proposed mechanisms; they are not HIL measurements. The Phase 1–3 numerical studies (Section 7) use a single-tendon underactuated finger. A separate two-channel reference verifies coupled actuation and motor-only reconstruction; it approximates constant pulley moment arms and does not derive the illustrated spatial routing.
3. Experimental Design
3.1 Loading protocol
Each planned experiment moves the virtual finger toward an object, establishes contact, presses, holds, releases and repositions. During contact the joints can be constrained while tendon tension continues to change, which exposes compliance, friction and loading-history effects that are less visible in free motion.
3.2 Sources of uncertainty
The three effects are studied separately before they are combined.
| Effect | Variables | Method |
|---|---|---|
| Transmission dynamics | Motor excitation, pretension, contact location, object stiffness, initial configuration, physical routing | Controlled comparisons of input motion, distal tension and finger motion |
| Time-varying mechanics | Settling, creep, effective stiffness and friction | Extended repeated operation; periodically repeated reference trajectories separate accumulated use from task differences |
| Partial observability | Excitation and contact conditions | Estimator restricted to motor-side signals; transmission measurements and simulated joint states kept as references |
The final experiments combine changing transmission properties, operating history and contact, to test whether an identified model and observer remain usable when the effects occur together. The intended outcome is a statement of which transmission effects can be identified, which hidden states can be estimated, and which ambiguities remain under motor-side sensing.
3.3 Measurements and data
| Data source | Notation | Available information |
|---|---|---|
| MuJoCo finger | Joint position and velocity, tendon geometry, object and contact state | |
| Instrumented testbed | Motor states, input/output tension, pulley and boundary motion, apparent deformation | |
| Motor-side observations | QDD motor position, velocity, current or torque estimate, and command |
MuJoCo provides the reference joint states and contact conditions. The testbed measures the transmission response. The deployed observer receives only motor-side signals, without joint encoders or distal tension.
Apparent transmission deformation, , is derived from calibrated boundary motion. It may include cable stretch, termination slip and structural compliance, and is therefore not equivalent to cable material strain.
Records retain timestamps, units, actuator calibration, routing conditions and operating history. Numerical verification also records known transmission parameters and internal states in a separate reference group; these exist because the numerical model defines them, and physical experiments do not provide equivalent ground truth. Training, validation and test runs are separated by operating period, contact condition and cable or routing configuration, not by randomly splitting adjacent loading cycles. The protocol specifies which privileged channels may supervise training and which are reserved for evaluation.
Before hardware is available, an independent numerical transmission model replaces the physical tendon in the same coupling architecture, so that the force–motion interface, data pipeline and estimation methods can be tested under known mechanical conditions.
4. Transmission Modeling
The first model is an effective physics-based model fitted to measured input/output motion and tension, with stiffness, damping, friction and reference length as candidate parameters. These are parameters of the reduced-order model and need not correspond to material properties. The fitted model is the baseline for learned alternatives.
| Approach | Formulation | Question |
|---|---|---|
| Physics-based identification | Effective stiffness, damping, friction, and reference length | How much behavior can a compact mechanical model explain? |
| Physics + learned residual | Does learning the unexplained response improve accuracy or data efficiency? | |
| Fully learned dynamics | Can boundary-motion and loading history predict transmission behavior without an explicit mechanics decomposition? |
All models use the same identification and validation runs; input signals and tuning budgets are reported. is the history of boundary signals available to a forward transmission model; the predicted output tension is not a contemporaneous input. A forward model may use known distal boundary motion, whereas a deployed motor-only observer cannot assume that motion is measured.
Evaluation covers force prediction error, loading/unloading response, data efficiency, sensitivity to mechanical drift, and held-out contact or routing conditions. A model is also tested when coupled to the robot dynamics, where transmission force errors change motion and contact. Comparisons across routing configurations test whether one model structure holds with different parameters or whether a change in cable contact requires a different model.
5. Motor-Side State Estimation
Transmission modeling describes the cable response to boundary conditions. The observer addresses whether the distal state can be reconstructed from motor-side measurements only. The deployed observation is
with QDD motor position, velocity, current and command. Current is interpreted through a torque calibration and an actuator loss model. The estimation targets are distal tension and joint position,
and a causal observer updates them from the current observation and a recurrent state:
carries information about previous motion and loading. Auxiliary outputs may include apparent deformation, distal displacement and estimates of evolving mechanics. For a model-informed observer, the effective parameters are
These belong to a selected model; their physical interpretation and identifiability require separate verification. A learned observer may instead represent mechanical change in its latent memory. In both cases, privileged testbed measurements may supervise training, and inference is restricted to .
5.1 Observability
Joint estimation is harder than tension estimation because tendon deformation and joint motion contribute to the same motor displacement. For a compliant transmission,
where is the effective transmission deformation. Even with known, one tendon length does not determine two joint angles. Mechanical coupling, dynamic constraints, contact and excitation history may add information, but unique reconstruction is not assumed. Time-varying mechanics add another ambiguity: a change in motor response may come from a change in cable stiffness or slack, a different contact condition, or a different joint state.
Observers are therefore evaluated by prediction error and by the conditions under which their estimates remain distinguishable; uncertainty and failure cases are reported. The study compares model-informed and learned observers, including ones that adapt their mechanics representation over time. Whether adaptation recovers from unseen cable conditions is an open question.
5.2 Robot-level force
Distal tension estimates transmitted force more directly than uncorrected motor torque, but it does not determine fingertip contact force. Mapping tension to joint torque requires tendon geometry and joint configuration; a fingertip wrench also requires contact location and direction, and the passive, gravitational and inertial contributions. A later physical-finger experiment would compare transmission-aware estimation with calibrated QDD-based estimation, using independent joint measurements and a calibrated fingertip force sensor as evaluation references only.
6. Validation Plan
Validation proceeds from numerical verification of the coupled architecture, to identification and observation experiments, to physical transmission and robot-level evaluation.
| Experiment | Evidence | Evaluation question |
|---|---|---|
| Force–motion coupling | Emulator tracking error, phase lag, port energy balance, stability under delay and saturation | Does the testbed reproduce the commanded boundary motion without unacceptable numerical or control behavior? |
| Transmission identification | Parameter error where identifiable, held-out tension MAE/RMSE | Can the measured response support a compact predictive model? |
| Model comparison | Force prediction, hysteresis response, data efficiency, closed-loop contact response | Does additional model complexity improve prediction under comparable conditions? |
| Time-varying mechanics | Error over operating history, adaptation response, known or independently measured drift | Does the model remain calibrated as the transmission changes? |
| Motor-side observation | Distal tension MAE, joint-angle MAE, deformation error, uncertainty | Which hidden quantities can be estimated without distal sensing? |
| Robot-level evaluation | Fingertip force error against independent sensing, comparison with QDD baseline | Does transmission-aware estimation improve force prediction under stated contact assumptions? |
Numerical acceptance limits are distinct from hardware requirements; physical tolerances will depend on actuator bandwidth, sensor resolution, operating range and the control task. Calibration and model selection use training and validation data; final evaluation uses disjoint test runs, including mechanical conditions or operating histories not used during fitting.
7. Numerical Verification
A numerical prototype implements the coupling architecture with an independent cable/pulley plant, QDD motor dynamics, an emulation motor model and a MuJoCo finger interacting with objects. Its constitutive laws and internal states are defined numerically, not measured from a real cable. All results in this section are synthetic.
7.1 Force–motion coupling
Software: MuJoCo 4.0.1, Python 3.13.5, NumPy 2.5.5. The implementation passes 40 mechanical, coupling, data-pipeline and observer-causality tests. Additional runs include five three-cycle cable presets, 26 sensitivity cases and a 50-cycle drift-law run.
| Numerical experiment | Result |
|---|---|
| Nonlinear baseline, 3 cycles at 0.5 Hz | Emulator RMSE 0.0444 mm; fundamental phase lag 0.127° |
| Added delay of 0 / 2 / 10 / 30 ms | Peak tracking error 0.814 / 1.544 / 10.791 / 14.534 mm |
| Current limits of 1 and 2 A | No recorded contact, although the simulation completed |
| Drift preset, 50 cycles over 75.3 s | Prescribed segment stiffness 10,000 → 8,309 N/m; creep state 0.0874 mm |
| Taut viscous plant, 2 s at 3 Hz | Energy-accounting residual 1.19 × 10⁻⁷ J (0.0654% of port work) |
Notes:
- The 10 and 30 ms delay cases and the 0.02 m/s emulation velocity limit triggered the oscillation diagnostic. Its 5 mm threshold is a numerical diagnostic, not a hardware acceptance criterion.
- A near-rigid preset with an ideal emulator reached 408 N peak tension. Finite numerical states do not imply safe physical operation.
- The phase lag is one cycle’s fundamental component, not the emulator bandwidth. Energy accounting was checked only for the stated viscous case. Stiffness and creep values are prescribed states of the synthetic degradation model, not identified material properties.
Configurations, source hashes, and full numerical metrics · Reproduction instructions
7.2 Phase 1 — Motor-only tension and deformation observer
Setup. A 32-unit GRU receives motor position, velocity, current and command at 200 Hz and predicts distal tension and apparent deformation. Distal measurements and plant states are training targets only. Joint-position estimation and explicit identification of evolving stiffness and friction were not evaluated in this phase; its dataset and results are kept as the Phase 2 reference.
Data. 24 independent runs: 12 training, 3 validation, 9 test. Training uses 128-sample windows within individual runs. Input normalization and linear-compliance calibration use training data only; the validation set selects a checkpoint from 60 epochs. Each test run starts with reset recurrent memory and is evaluated continuously, including initialization. One training seed.
Baselines. A calibrated QDD torque estimate, a dynamics-corrected QDD estimate (actuator inertia and viscous losses), and a fitted linear-compliance relation for deformation.
Results. Dynamics-corrected baseline → GRU; each test group contains three independent runs, weighted equally.
| Held-out condition | Distal tension MAE [N] | Apparent deformation MAE [mm] |
|---|---|---|
| Unseen object stiffness / placement | 0.790 → 0.423 | 0.189 → 0.040 |
| Changed friction law and cubic stiffness | 0.702 → 0.467 | 0.348 → 0.261 |
| Accelerated drift, 20 cycles per run | 0.835 → 0.439 | 0.154 → 0.089 |
The GRU error is lower than the baseline in all three groups. Deformation error is lowest for unseen contact (0.040 mm) and highest for the changed law (0.261 mm). The changed-law test replaces Dahl friction with smoothed Coulomb friction and reduces cubic stiffness; the drift test adds creep and degradation absent from training.
Limitations. Three test runs per condition, one seed, and a numerically defined plant. The tests probe sensitivity to mechanical changes outside training but do not establish generalization to arbitrary cable mechanics, nor whether the model identifies the mechanical changes or only learns a predictive relationship within the tested conditions.
Observer settings, learning history, and per-run errors · Training and reproduction instructions
7.3 Phase 2 — Transmission priors and joint-state estimation
Setup. Phase 2 adds dimension-derived cable compliance, recoverable viscoelastic memory, fixed routing fixtures, load-dependent creep and conditioning, and finite-effort emulation. True motor torque constants differ from the nominal calibration; telemetry includes gain/bias, temporal correlation, causal filtering, delay and sample hold. Material, thermal, bending and aging parameters are hypothetical priors, not measured hardware properties.
Data. 128 simulated sessions, including linked specimen histories and controlled replays. A 32-unit motor-only GRU predicts distal tension, proximal angle and distal angle. Training uses 48 sessions and validation 8; the rest form separate held-out conditions. No joint state, contact label, routing ID or true mechanical parameter enters the four-channel motor input. All 66 tests pass.
Results. Mean per-run MAE across three training seeds. Seed variability, RMSE, high-percentile errors and initialization/contact/reversal breakdowns are in the full report.
| Held-out condition | Tension MAE [N] | Proximal MAE [deg] | Distal MAE [deg] |
|---|---|---|---|
| Within training ranges | 0.482 | 1.17 | 1.24 |
| Contact conditions | 0.700 | 3.28 | 2.91 |
| Cable specimen | 0.467 | 1.30 | 1.82 |
| Routing fixture | 1.141 | 1.52 | 1.61 |
| Mechanical evolution | 0.577 | 1.88 | 4.20 |
| Combined OOD | 1.266 | 3.73 | 4.22 |
| Payout / slack diagnostic | 0.584 | 6.62 | 3.24 |
| Weak / ambiguous setup | 0.188 | 11.40 | 22.92 |
Ambiguity test. Low average error does not prove observability. A controlled weak-excitation search found two valid equilibria with identical motor histories at the observer interface and joint differences of 22.92° and 45.84°. Their calibrated tendon zeros and passive spring preloads differ. This shows ambiguity across unknown setup conditions, not non-observability of a mechanism with known, fixed preload.
Limitations. The 120-session core completed numerically. Eight weak-motion sessions and one saturation-dominated validation session keep diagnostic flags. A later frozen-model payout test adds eight sessions; runs that reach slack are distinguished from taut controls. Timestep refinement improves joint trajectories, but contact-force peaks remain sensitive, so small differences between observers should not be read as physical improvements. No mechanics-parameter recovery or online adaptation is claimed. Repeatable homing and preload calibration, known mechanical coupling, or additional sensing may be required in ambiguous conditions.
Phase 2 configurations, three-seed metrics, diagnostics and 22 figures · Design, assumptions and reproduction commands
7.4 Phase 3 — Calibrated motor-only joint estimation
Setup. Phase 3 tests whether repeatable home, tendon zero, spring preload and pretension improve two-joint estimation under a fixed routing. This is one-time reference calibration: hardware would need an angle-referenced jig, boundary encoders and load cells during setup. The deployed observer still receives only motor position, velocity, current and command.
Data. 146 sessions and fifteen independently trained 32-unit GRUs (five training conditions × three seeds). Each model uses 16 training and 4 validation runs. Each primary condition has three free and three contact test runs.
Results. Mean per-run joint MAE across three seeds after a common 1.2 s hold or probe prefix; complete startup errors are reported separately.
| Setup and excitation | Free motion: proximal / distal [deg] | Controlled contact: proximal / distal [deg] |
|---|---|---|
| Unknown setup | 2.775 / 6.390 | 2.151 / 5.900 |
| Homed, residual mechanical uncertainty | 2.768 / 3.012 | 1.463 / 1.261 |
| Calibrated, passive prefix | 0.301 / 0.345 | 0.416 / 0.491 |
| Calibrated, active probe | 0.286 / 0.347 | 0.409 / 0.488 |
All calibrated seeds meet the proposed post-prefix targets of 2° free-motion and 5° contact MAE per joint. Startup is weaker: the largest first-0.3-second errors reach 7.31° / 19.97°. A calibrated reduced physics observer also meets the free-motion target at 0.578° / 0.520°, so the results do not show that a neural model is required.
The standardized 0.5 mm, 1.2 s multisine probe did not show an additional benefit. With the same frozen model and paired subsequent tasks, the active-minus-passive error is approximately +0.0016° / +0.0001°, comparable with numerical sensitivity. Local sensitivity varies with operating point and passive mechanics; neither a larger singular value nor low prediction error proves observability. A restricted search with identical preload and tendon zero found no pair meeting its ambiguity criterion, which does not prove global observability either.
Phase 3 configurations, per-run errors, three-seed histories and 15 figures · Calibration assumptions, numerical limits and reproduction commands
7.5 Two-tendon architecture
Setup. The two-tendon reference connects two separate actuator–transmission–emulator chains to one MuJoCo finger. Tendon 1 acts on q₁; tendon 2 acts on q₁ and q₂. The declared pulley approximation uses excursions and in metres. The full-rank mapping permits independent motion within a bounded tensile-force region. Passive return springs provide the opposing torque; arbitrary signed joint torques are not available.
Verification. Jacobian and torque checks cover the intended joint range. Two-channel force–motion coupling, isolated transmission energy, limits, timestep refinement, controller rate and contact sensitivity pass the declared numerical gates. Contact still increases tracking error. The physical P1/P2/idler routing is a separate hardware-design question, and the single-tendon ambiguity results are not transferred to this architecture.
Estimation. 72 sessions compare estimators that use only position, velocity, current and command from both robot motors. The table reports full-run joint MAE, including initialization; contact groups reflect sustained contact, not object placement alone.
| Motor-only estimator | Free, 6 runs: proximal / distal [deg] | Contact, 2 runs: proximal / distal [deg] |
|---|---|---|
| Rigid two-tendon geometry | 0.526 / 1.519 | 2.084 / 1.758 |
| Calibrated deformation correction | 0.089 / 0.153 | 0.134 / 0.137 |
| Calibrated reduced physics filter | 0.074 / 0.145 | 0.160 / 0.165 |
| 32-unit GRU, three-seed mean | 0.150 / 0.207 | 0.162 / 0.253 |
The deformation correction has lower error than the GRU mean in both nominal groups. Changed stiffness, routing, pretension and reference zero produce different failure patterns. A known-home encoder reference reduces the zero-error test from 1.907°/4.726° to 0.087°/0.163° with the same compliance model; this requires a one-time reference setup and is not online adaptation. The physics filter was developed iteratively with training-reference residual calibration, so the comparison is not a preregistered blind study.
Two-tendon configurations, diagnostics, three-seed metrics and 13 figures · Routing assumptions, control/estimation comparisons and reproduction
8. Status and Open Questions
The numerical experiments cover force–motion coupling, motor-only prediction of transmission and joint states, and explicit tests of setup ambiguity. Estimation is accurate under the specified task conditions and fails when those conditions provide insufficient information. The physical testbed and hardware transfer are not yet validated.
Open questions:
- How much of the transmission dynamics can be identified across different routing geometries?
- Can an observer distinguish mechanical aging from changes in robot loading?
- Under which conditions can distal tension and joint positions be reconstructed from motor-side measurements alone?
The proposed physical HIL experiments are intended to test these questions with transmission measurements that the numerical models cannot supply.