# Isaac Lab runbook — Isaac-Sim01-ResidualPass-v0

**Simulation-tested · Not built.** Synthetic training materials only. Not for human or veterinary treatment.
Educational research trainer, not a medical device; must not be used on humans or animals.

Isaac Lab 3.0 (Isaac Sim 6.1.0, PhysX), RSL-RL 5.4.1 PPO, one RTX 5060 Ti (16 GB). Every GPU command holds the
shared `gpu` slot (`_shared/hwqueue.py`); `tasks.py` does this for you and releases it when Isaac exits.

| Step | Command | Output |
|---|---|---|
| Robot USD | `uv run tasks.py usd` | `robot/robot.usd` (URDF converter, fixed base), `docs/sim-tests/usd_dump.json`, MODEL-CONSIST |
| Reference library | `uv run tasks.py demos` | `runs/demos/library.npz` (4000 seeded scripted descents + passes from the MuJoCo planner) |
| Task parameters | `src/gen_isaac.py` (run by `train`) | `simulation/isaac/sim01_isaac/params.json`, `models/policy_io.yaml` |
| Train | `uv run tasks.py train > runs/train_v3.log` | 1500 iterations, 1024 envs, seed 42 -> `runs/logs/rsl_rl/sim01_residual_pass_v3/<date>/` |
| Export + evaluate | `uv run tasks.py export [checkpoint]` | `runs/checkpoints/policy_final.pt`, `runs/policy/policy.onnx` (then `src/policy_browser.py` -> `models/policy_browser.onnx`), `docs/sim-tests/rl_isaac_eval.json` (100 randomized episodes, policy vs zero residual) |
| Curves | `python src/train_curves.py` | `docs/sim-tests/training.json`, `training_curves.png` |
| Probe | `isaaclab.bat -p tools/probe_contact.py <out.json>` | tunnel proxy force, excess load and compliance with zero residual (DESIGN_LOG D29) |
| MuJoCo | `uv run tasks.py sim2sim` | RL-SIM2SIM, AI-COMPARE, recorded runs |

The task (`sim01_isaac/env.py`, DESIGN_LOG D14, D29): the R arm follows a reference from the library (descent to the
hover pose, hold, wrist-roll pass) with randomized servo zero offsets (curriculum 0.3° -> 1° over 600 iterations), PD
gains (x0.8–1.2), link masses (x0.85–1.15), friction (x0.5–1.5), action latency (0–2 steps), noisy sample-and-hold vision
error (every 5 steps), servo-load noise and a viscous term in the load reading, and a tunnel offset. Observation 35,
action 5: a low-passed (alpha 0.3), rate-limited residual (bounds 3/3/3/5/5°, at most 0.08/0.08/0.08/0.12/0.05° per 20 ms command), 50 Hz,
episode 8 s. The silicone tunnel is an analytic contact proxy around the planned arc (2000 N/m total, friction 0.6, the
MuJoCo pad's measured stiffness: `runs/diag/mj_tunnel_stiffness.txt`); the MuJoCo controller's compliance runs in the
loop; an episode whose proxy force exceeds 2 N ends as a failure (the MuJoCo COLLISION abort). Success: the arc centre
stays within 2 mm of the plan through the pass and no collision. The thread and the L arm are not in the Isaac task.

The v1 run (600 + 900 iterations, no rate limit, no contact model) is kept in `runs/old/v1/`; the first D29 run (v2: no low-pass, faster rate limits; it chattered in MuJoCo) in `runs/old/v2/`.

Results: `docs/sim-tests/rl_isaac_eval.json` (RL-ISAAC) and `docs/sim-tests/SIM_TEST_REPORT.md`.
