M.Sc. Thesis — Phase 1 Complete Robotics & AI NUST, Pakistan

Safe Dual-Arm Cable Routing
with Deformable Linear Objects

A controller-agnostic MuJoCo workcell: two Panda arms on rails, a 120-segment DER cable, deterministic dynamic obstacles, and measured contact forces

Muhammad Mahad · Supervised by Dr. Karam Dad Kallu

Scroll to explore

The Workcell

A 1.8 × 1.0 m pegboard with two Franka Emika Panda arms on linear rails. Every feature in one captioned pass: the DER cable, each fixture class, both dynamic obstacles, and the two documented caveats.

Captioned walkthrough of the workcell: board, arms, DER cable, fixtures, and both dynamic obstacles
🧵

Route

A 3.5 m, 120-segment Discrete-Elastic-Rod cable threaded through C/U/Y-clips across the board

🌀

Avoid

A passive pendulum and a sinusoidal slider — deterministic, so every controller faces the same threat

📊

Sense

A spring-loaded clip yields a real approach → spike → decay force profile for contact detection

What Phase 1 Delivers

Phase 1 delivers the simulation environment the thesis is measured in. It ships no controller — deliberately, so it can sit unchanged under both the HQP-OSCBF stack and the MPC baseline. A scene that changes between them would measure itself as much as the controller.

01

Deterministic Obstacles

Pendulum period 1.081 s against a 1.023 s small-angle prediction — the 6% gap is the large-angle correction, which is what validates the physics. Drift over 60 s: −0.000000.

02

Bounded ḧ by Construction

The slider follows a sinusoid, not a shuttle. Under torque control the barrier has relative degree 2, and a shuttle's direction flip is infinite acceleration — which makes the QP infeasible.

03

Measured Contact Forces

Per-cable CEI thresholds from 0.49 N to 10.13 N — a 20× spread, so a single global trigger cannot work. Re-measured by the test suite, so data and model cannot drift apart.

MuJoCo + DER
Scene + Obstacles
Any
Controller

Inside the Cell

The scene is composed procedurally by build_scene.py — not hand-written XML. Three variants, eight cables, and 54 documented switch combinations, all of which build.

Layer 1

Board & Manipulators

A 1.8 × 1.0 m pegboard on a 0.15 m pedestal; two Panda arms, each on a 0.60 m prismatic rail

14 + 2 DoF Full-board reach nu = 19 actuators
carries
Layer 2

The DLO

A 3.5 m, 120-segment Discrete-Elastic-Rod cable on the mujoco.elasticity.wire plugin

Chen & Pham 2025 8 parameter sets Flat-spiral start pose
routed through
Layer 3

Fixtures & Instrumentation

C/U/Y-clips, round pegs, a sliding channel, L-towers, and a hollow destination socket. One C-clip is sprung.

Spring-loaded jaws Mouth scales with radius CEI force source
threatened by
Layer 4

Dynamic Obstacles

A passive pendulum (zero damping, released from a fixed 1.0 rad angle) and a sinusoidal slider

Bit-identical reruns Bounded acceleration HOCBF-feasible
🔌

Phase 2 Interface: data.qpos → your controller → data.ctrl

No perception pipeline sits in the loop — the controller reads state directly. The scene exposes 19 actuators and a force-instrumented clip; everything else is the controller's business. That is what "controller-agnostic" buys.

Measured, Not Asserted

Every figure below is re-measured by the test suite, so the documentation and the model cannot drift apart. 65 tests, mutation-verified: each historical bug was reintroduced and confirmed to fail the suite.

5.94
Pendulum peak (rad/s)
Drift over 60 s: −0.000000 ✅
1.480
Slider peak (m/s)
At the route centre ✅
65
Tests Passing
Mutation-verified ✅
54
Switch Combinations
All build ✅
Cable Diameter (mm) CEI peak (N) Threshold (N) Note
flexible_silicone 3.5 0.49 0.25 Thinnest — a 1.5 N global trigger never fires
copper_pvc ✅ 6.0 2.32 1.16 Default cable
stiff_ethernet 7.0 2.82 1.41 —
thick_power 12.0 10.13 5.07 Thickest — 20× the thinnest cable's peak

Thresholds are 50% of the measured peak. The peak is speed-invariant for a given cable (2.52 / 2.52 / 2.51 / 2.53 N over a 30× range of push speeds), because the force is a spring resisting geometric interference rather than an impact impulse — which is what lets one fixed threshold per cable work with no velocity term. Four of eight cables shown; all eight are published in cable_params.yaml.

Recorded, Not Hidden

Two things in this environment do not work as a reader might assume. Both are documented here rather than left to be discovered.

01

The CEI noise floor is unmeasured

The clip reads 0.0000 N with the scene running — but only because the settled cable never comes within 88 mm of it. That number says nothing about noise during manipulation, which needs a controller that does not exist yet. It is the first Phase 2 task.

02

The fiducial markers are scaffolding

Four plates are placed at the board corners, but one is occluded by the cable coil and one renders as a blob rather than a checker. Left unfixed because nothing consumes them without a perception pipeline — and no test checks appearance, which is why the defect went unnoticed until the walkthrough video was watched.

Tech Stack

🔬

MuJoCo 3.3.2 (patched)

Built from source to carry the DER plugin. Stock PyPI wheels lack it and refuse to load the scene.

🧵

Wire DER Plugin

mujoco.elasticity.wire — Discrete Elastic Rods, 120 segments over 3.5 m of cable

🤖

Dual Franka Panda

Two 7-DoF arms, each on a prismatic rail for full-board reach. Fetched from MuJoCo Menagerie.

🏗️

MjSpec Composer

Procedural scene assembly — variant tables and cable parameter sets, not hand-written XML

🧪

pytest

65 tests covering clip physics, scene portability, and the CLI surface

🛡️

HOCBF-Ready

Obstacles designed so ḧ stays bounded — a precondition for QP feasibility under torque control

Thesis Timeline

Phase 1 — This Work
✅ Completed

Simulation Workcell

Procedural scene, two deterministic dynamic obstacles, a force-instrumented elastic clip with per-cable CEI thresholds. 65 tests, tagged v1.0.0.

Phase 2
🔲 Next

HQP-OSCBF Controller

Hierarchical QP with operational-space control barrier functions. First task: measure the CEI noise floor under actual manipulation.

Phase 3
🔲 Planned

Global Motion Planner

DIT* or JIT adapted for the 14-DoF + DLO configuration space with a catenary-aware cost function.

Phase 4
🔲 Planned

Contact-Aware CBF Safety

CBF-QP safety filter across arm–arm, arm–environment, and cable–environment barriers, with mode-switching for clip insertions.

Phase 5
🔲 Planned

Benchmarking

HQP-OSCBF against an MPC baseline on identical, bit-reproducible obstacle trajectories — which is what the determinism work was for.

Phase 6
🔲 Planned

Thesis Writing & Defense

Data analysis, final manuscript, and defense presentation.

Key References

  1. Chen, K., & Pham, Q.-C. (2025). "Simulation of Deformable Linear Objects in MuJoCo." Discrete Elastic Rods — the wire plugin this workcell runs on.
  2. Zeng, Q., et al. (2023). "Accurate Simulation and Parameter Identification of Deformable Linear Objects in MuJoCo." arXiv:2310.00911.
  3. Chen, K., Bing, Z., et al. (2023). "Contact-aware Shaping and Maintenance of Deformable Linear Objects With Fixtures." IROS 2023.
  4. Ames, A. D., et al. (2019). "Control Barrier Functions: Theory and Applications." ECC 2019.
  5. Xiao, W., & Belta, C. (2022). "High-Order Control Barrier Functions." IEEE T-AC, 67(7).
  6. Yu, M., et al. (2023). "A coarse-to-fine framework for dual-arm manipulation of deformable linear objects with whole-body obstacle avoidance." ICRA 2023.
  7. Escande, A., Mansard, N., & Wieber, P.-B. (2014). "Hierarchical quadratic programming." IJRR, 33(7).
  8. Yin, H., Varava, A., & Kragic, D. (2021). "Modeling, learning, perception, and control methods for deformable object manipulation." Science Robotics, 6(54).