Walking in Isaac Lab
Marvin Bot Mini’s Isaac Lab 3.0 package: the articulation config with the servo actuator (marvin_bot_mini/robot_cfg.py), the walking tasks, and scripts to convert the URDF, check the robot and export policies. It is Marvin Bot’s package scaled to the mini, with the DC motor model replaced by the servo model. Isaac Lab runs on an RTX desktop GPU, not on the Jetson.
| File | What it does |
|---|---|
marvin_bot_mini/robot_cfg.py |
MARVIN_BOT_MINI_CFG: USD path, ServoActuator (the servo model of sim/servo_model.py with a 5-20 ms command delay and per-robot supply voltage and motor-constant spread), joint order and default stance from robot.yaml, IMU mount |
convert_urdf.py |
Converts description/urdf/marvin_bot_mini.urdf to usd/ (git-ignored) with Isaac Sim’s URDF importer |
check_robot.py |
Checks mass, joint order and limits, kinematics against MuJoCo, and that the servos hold the default stance |
marvin_bot_mini/tasks/ |
MarvinBotMini-Velocity-Flat, MarvinBotMini-Velocity-Rough (rough v1-v5 trained; 1.5 cm stairs within the torque rule, 3 cm only beyond it) and MarvinBotMini-GetUp-Flat (getting up from the floor; trained, does not get up yet) |
../mujoco/check_getup.py |
The MuJoCo check of an exported get-up policy: dropped face down and face up, does it stand within the torque rule |
check_stairs.py |
Isaac Lab’s own stairs check of a rough-ground checkpoint: how many robots climb out of a stair pit at one step height (cross-checks the MuJoCo one) |
export_policy.py |
Exports a checkpoint to policy.onnx plus policy.json (joint order, default pose, action scale, observation layout) |
../mujoco/check_policy.py |
The MuJoCo cross-check of an exported policy with the same servo model: walk, turn, stop, fast walk or steps; --render saves an animation |
The servo actuator
Section titled “The servo actuator”The policy outputs target angles at 50 Hz. Each servo turns its position error into a PWM duty
through its firmware’s P gain, and the motor’s torque follows from the supply voltage and its
back-EMF (BAM’s model structure: description/actuators.yaml). In training, each robot draws its
pack voltage between empty (10.5 V) and full (12.6 V), spreads kt, R and the firmware gain by
±10%, and takes its targets 5-20 ms late. The constants are datasheet-derived until the phase 2
bench fit replaces them. It runs in Isaac Lab’s Python actuator path (use_newton_actuators = False).
As for Marvin Bot: Isaac Lab 3.0 (Isaac Sim 6.2, Python 3.12) installed with uv outside this repo,
commit 961760bcb91e3af48e7d116292e57e8ecaefc31e of release/3.0.0, on one RTX PRO 6000
Blackwell (96 GB).
git clone https://github.com/isaac-sim/IsaacLab.git && cd IsaacLabgit checkout 961760bcb91e3af48e7d116292e57e8ecaefc31euv sync --extra isaacsim --extra importersuv pip install --no-deps -e <path to this repo>/sim/isaaclabexport OMNI_KIT_ACCEPT_EULA=YES # only if you have read and accept NVIDIA's Isaac Sim licenceIsaac Sim is NVIDIA software under its own licence, not open source. uv sync removes packages it
doesn’t manage, so reinstall this package after any sync and use uv run --no-sync otherwise.
Convert and check
Section titled “Convert and check”The URDF refers to the part meshes, which are generated: first, in this repo’s environment,
pip install -e ".[cad]" && python -m cad.build.
uv run --no-sync python <repo>/sim/isaaclab/convert_urdf.py # after any URDF change: both modelsuv run --no-sync python <repo>/sim/isaaclab/check_robot.py # Newtonuv run --no-sync python <repo>/sim/isaaclab/check_robot.py --backend physxThe tasks train on the robot as it runs, with its shells (usd/covers/); with
MARVIN_BOT_MINI_BARE=1 in the environment they, check_robot.py and export_policy.py use the
bare frame (usd/bare/). export_policy.py writes the model and its mass into policy.json, and
check_policy.py says so when it is run on the other one. (Until 2026-12-01 both converted to one
path and the tasks trained on whichever was converted last: with the shells, from flat v5 on.)
Results (2026-11-09, the 2.92 kg model; on 2026-11-11 the 27-joint, 3.51 kg model passes the same checks, its links within 0.7 mm of MuJoCo’s, the stance held with the knees at 13% of the rule):
| Check | Newton (MuJoCo-Warp) | PhysX |
|---|---|---|
| Total mass | 2.924 kg, as the URDF | 2.924 kg |
| Joint order, ranges, effort and velocity guards | match | match |
| Link positions vs MuJoCo FK, 8 random poses | worst 0.10 mm | worst 2.78 mm |
| Default stance, 5 s, on the servo actuators | holds, pelvis 0.286 m, tilt 1.0°, knees 0.34 N·m (13% of the rule) | holds, 0.286 m, 0.9°, knees 0.33 N·m |
Walking tasks
Section titled “Walking tasks”Marvin Bot’s walking tasks (the decoupled whole-body-control split: the policy drives the 12 leg joints, the waist and arm targets jump to random poses every 1-3 s), scaled to the mini:
- Commands: forward −0.15 m/s up to a curriculum limit that starts at 0.25 m/s and grows to 0.5 m/s, sideways ±0.15 m/s, yaw ±1.0 rad/s; 20% of robots stand still. (Marvin Bot’s speeds scaled by about the root of the leg length.)
- Gait shaping: 3.5 cm swing clearance, single-support air time 0.25 s, step width 8 ± 1.5 cm, fall below 0.15 m pelvis height or past 1 rad of tilt.
- Randomization: pushes up to 0.3 m/s, torso mass ±15% and CoM ±1.5 cm, friction 0.4-1.0, plus the servo spread above.
- Torque penalty: the scale of the Isaac Lab humanoid velocity task it is adapted from (tuned for joints of about 120 N·m), raised by about the square of the torque ratio (the servos’ 4.9 N·m).
- Rough ground: steps of 1.5-6 cm with 12 cm treads, boxes to 4 cm, rough ground to 2 cm, slopes to 0.25 rad, a 0.6 × 0.3 m terrain map at 5 cm.
uv run --no-sync isaaclab train --rl_library rsl_rl --task MarvinBotMini-Velocity-Flat --num_envs 4096 --max_iterations 3000uv run --no-sync python <repo>/sim/isaaclab/export_policy.py --checkpoint logs/rsl_rl/marvin_bot_mini_flat/<run>/model_2999.pt# a rough-ground checkpoint needs its task (its network is larger): --task MarvinBotMini-Velocity-Rough# then from this repo, in its own venv:python sim/mujoco/check_policy.py <IsaacLab>/logs/rsl_rl/marvin_bot_mini_flat/<run>/exportedA run takes about 0.47 s an iteration on the GPU above (about 25 minutes for 3000), with rsl_rl’s default seed. Trained policies are not committed.
Getting up
Section titled “Getting up”MarvinBotMini-GetUp-Flat (tasks/getup_env_cfg.py) starts most episodes with the robot
dropped on its front or back (events.reset_lying; a tenth standing, and crouch_share of them
in a balanced crouch) and pays it for an upright pelvis at standing height, then for the default
stance, still; the policy drives the legs, the waist and the arms, which push off the floor. The
servo torque rule is penalised as for walking. No episode ends early: a robot that falls again
gets up again.
uv run --no-sync isaaclab train --rl_library rsl_rl --task MarvinBotMini-GetUp-Flat --num_envs 4096 --max_iterations 1500uv run --no-sync python <repo>/sim/isaaclab/export_policy.py --task MarvinBotMini-GetUp-Flat --checkpoint <run>/model_1499.ptpython sim/mujoco/check_getup.py <run>/exported --covers # this repo's venv; --render to see a trialResults
Section titled “Results”| Policy | Training | MuJoCo cross-check (sim/mujoco/check_policy.py) |
|---|---|---|
| flat v1 | 3000 iterations, Marvin Bot’s reward weights | learned to fall within 0.25 s: the heat penalty outweighed the tracking rewards (decisions 2026-11-09) |
| flat v2 | 3000 iterations from scratch, rescaled rewards | walks, turns and stops; 4.5 steps/s, 10 cm steps, 1.5 cm lift; knees up to 171% of the torque rule’s peak, 109% of rated RMS at 0.3 m/s |
| flat v3 | 2000 iterations from v2, torque-rule penalty, clearance weight 2 | passes at 11.1 V / 10 ms, 10.5 V / 20 ms, full noise, 0.3 m/s on 10.5 V; 2.3 steps/s, 19 cm steps, 3.4 cm lift, knees 60% of rated RMS at 0.2 m/s and 81% at 0.3 m/s; above the torque rule under 1% of the time, at most 20 ms. Fails on 12.6 V / 5 ms: 0.26 m/s for 0.20, a knee above the rule for 56 ms |
| flat v4 | the 27-joint, 3.51 kg model (wrists and pincers, the redrawn frame): 3000 iterations from scratch without the torque penalties, 2000 more with them, 1500 more with a broader clearance reward | passes at 11.1 V / 10 ms, 10.5 V / 20 ms with 0.3 m/s, and with the shells on (3.81 kg); 3.2 steps/s, 14 cm steps, 2.3 cm lift, knees 64% of rated RMS at 0.2 m/s and 72% at 0.3 m/s; above the torque rule 1.4% of the time, at most 46 ms. Fails on 12.6 V / 5 ms: a knee above the rule for 64 ms. Re-checked on the strengthened frame (3.59 kg, 3.86 kg with the shells): passes the same, except with the shells on an empty pack at 0.3 m/s (an ankle pitch above the rule for 60 ms) |
| flat v5 | 1000 iterations from v4’s model_6497.pt on the final model with the shells (3.90 kg; convert_urdf.py --covers), v4’s last stage’s settings |
with the shells, passes at 11.1 V / 10 ms, 10.5 V / 20 ms with 0.3 m/s, and 12.6 V / 5 ms, which every earlier policy failed; 2.7-3.3 steps/s, 17-21 cm steps, 3.2-3.9 cm lift, knees 61-79% of rated RMS (74% at 0.3 m/s); above the torque rule 1-3% of the time, at most 50 ms. Without the shells it passes 10.5 V / 20 ms with 0.3 m/s and 12.6 V / 5 ms, and 11.1 V / 10 ms on seeds 1 and 2; on seed 0 a knee stays above the rule for 58 ms (allowed 50) |
| flat v6 | 1500 iterations from v5 after the sole-height fix (the rewards had measured the sole from the ankle pitch axis, 2.2 cm too high), the clearance target left at 3.5 cm, now from the sole | lifts 2.5 cm, 3.6 steps/s, 12-14 cm steps; with the shells fails 3 of 5 (a knee above the rule for up to 60 ms, 5% of the time at 0.3 m/s); without them fails 12.6 V / 5 ms on the turn |
| flat v7 | 1000 iterations from v5, the clearance target set to 5.7 cm from the sole (what v4 and v5 were trained to before the fix) | lifts 3.7 cm, 17 cm steps; fails 7 of 10, a knee above the rule for 52-78 ms |
| flat v8 | 1000 iterations from v7, torque-rule penalty weight 4 | lifts 4.5-4.7 cm, 2.5 steps/s, 19-21 cm steps; passes 7 of 10; with the shells fails 11.1 V / 10 ms seed 2 (an ankle pitch for 54 ms) and 12.6 V / 5 ms (a knee for 56 ms). Flat v5 stays the walking policy: re-checked on the current model it still passes all five checks with the shells |
| flat v9 | 1000 iterations from v5 on the model with the deeper back, the e-stop and the carry handle (4.06 kg with the shells; the USD converted again), the torque-burst penalty at -2 (env.rewards.torque_burst.weight=-2.0) |
v5 failed 3 of 5 with the shells on this model (a knee above the rule for 52-68 ms). v9 passes 9 of 10; with the shells on a full pack a knee stays above the rule for 54 ms |
| flat v9b | 500 iterations from v9, the burst penalty at -4 | passes the full pack; with the shells on an empty pack at 0.3 m/s it turns at 0.21 rad/s for 0.6 |
| flat v9c | 500 iterations from v9, the burst penalty at -3 | passes all ten checks (11.1 V / 10 ms on seeds 0-2, 10.5 V / 20 ms with 0.3 m/s, 12.6 V / 5 ms; with and without the shells), which no earlier policy did; 2.2 steps/s, 19-21 cm steps (26 cm at 0.3 m/s), 4.7-5.4 cm lift, the hip rolls the hardest-working at 39-44% of rated RMS; above the torque rule at most 1.4% of the time, 20 ms at a stretch. The walking policy |
| rough v1 | the rough task from scratch on the model with the shells, staged as flat v4: 3000 iterations without the torque penalties, 2000 with them, 1500 with the broader clearance reward (stage 1 to a 3.5 cm clearance target, the later stages to 5.7 cm), then 1500 with the torque-rule penalty at weight 4 | after stage 3: terrain level 1.7, a fifth of the episodes ending in a fall; in MuJoCo with the shells it climbs and comes down 1.5, 3 and 4 cm stairs, but a knee stays above the torque rule for 58-164 ms, and on flat ground for 58 ms (4.8 cm lift, 2.5 steps/s). After stage 4: terrain level 2.2; passes the 3 cm stairs, fails 1.5 cm (a knee for 58 ms) and no longer climbs 4 cm; on flat ground a knee is above the rule for 52 ms. Not yet a usable policy |
| rough v2 | rough v1 after stage 3, 1500 iterations with the torque-burst penalty (torque_burst, off by default: env.rewards.torque_burst.weight=-2.0), which charges each control step a joint stays above 95% of the rule’s peak past 20 ms |
terrain level 1.5; in MuJoCo with the shells it climbs and comes down 1.5 and 3 cm stairs within the rule at 11.1 V / 10 ms and 10.5 V / 20 ms, but on a full pack (12.6 V / 5 ms) a knee stays above it for 66 ms on 3 cm; it no longer climbs 4 cm and barely turns on the spot (0.05 of 0.6 rad/s). At weight 0.5 it turns but walks 0.27 m/s for 0.2 and breaks the rule on 3 cm stairs; a further 1000 iterations at 90% of the peak passed the full pack and failed 3 cm at 11.1 V (a hip roll for 76 ms). The bursts land within tens of ms of the 50 ms allowance either way: stair climbing at 3.9 kg sits at the rule’s edge. Not yet a usable policy |
| rough v3, v3b, v3c | on the model with the handle (4.06 kg with the shells): 1500 iterations from rough v2 with the burst penalty at -3 (v3), and 500 more from v3 at -2.5 (v3b) and at -2 (v3c) | v3 and v3c walk, turn and sidestep on the flat within the rule at 11.1 V / 10 ms and 12.6 V / 5 ms and climb 1.5 cm stairs, but stop at the foot of 3 cm stairs, shuffling (the pelvis rises 0.4 cm of 15), steered or not; v3 holds an ankle pitch above the rule for 68 ms on 1.5 cm at 11.1 V. v3b fails the turn. Not usable on stairs |
| rough v4, v4m, v4b, v4r | 1500 iterations from rough v2 on the reviewed task (2026-12-01: the torque penalties reset each episode, the pack voltage drawn per robot, the shells’ model kept apart from the bare one, the curriculum’s distance 0.75 m), the burst penalty at -2, seeds 1 and 2; v4m with the old 1 m, v4b on the bare frame, v4r with the reset fix undone | each walks and climbs 1.5 cm stairs but stops at the foot of 3 cm ones, as v3 does: none of the review’s changes is the cause |
| rough v5p, v5z | as v4 with the burst penalty at -0.5 (v5p), or with it and the torque-rule penalty off (v5z), seeds 1 and 2 | v5p seed 1 climbs 3 cm stairs at every voltage, a knee above the rule for 58-128 ms, and passes the flat at 11.1 V and 10.5 V, turning; seed 2 stops at 3 cm. v5z stops at 3 cm on both seeds and holds a knee above the rule 5-9% of the time on the flat. Not usable on stairs |
| get-up v1 | MarvinBotMini-GetUp-Flat from scratch on the model with the shells, 1500 iterations, the torque penalties off |
learned to stand on its head and feet in an inverted V (the pelvis-height reward paid it): that reward is now scaled by how upright the pelvis is |
| get-up v1b, v1c | 1500 iterations from scratch, then 1500 more with the stood-pose reward widened (std 1.5 rad, weight 4) | gets up to kneeling, upright, in about a second from face down or face up, and stays there; in MuJoCo every trial ends kneeling, its ankle rolls held against their limits (288% of rated): with the torque penalties off nothing stopped it |
| get-up v2 | 1500 iterations from v1c on the model with the handle, the torque penalties on | the standing reward fell to nothing while the torque penalties stayed high: stopped |
| get-up v3 | 1500 iterations from v1c, 30% of the episodes starting from a balanced crouch (crouch_share, feet flat, knee 90°), the torque penalties off |
stands from the crouch in training, but from the floor it still kneels, in Isaac Lab and in MuJoCo. Not yet a usable policy: getting from kneeling to the feet needs more than reward shaping, likely a reference motion to track |
Re-checked on 2026-12-01, after the stairs check stopped counting a robot beside the stairs (they
are 2 m wide) as standing on them, with --steer (the yaw command holding the heading on the
stairs, so a policy that drifts off their side is told apart from one that cannot climb) and a
sidestep in the flat script (flat v9c sidesteps at 0.11-0.13 m/s for 0.1 and still passes all ten
checks). The check also delivered every command one physics step late (12 ms for 10) and capped
the servos’ braking torque at stall; both are fixed, and the collision boxes now follow the CAD.
On it, rough v2 climbs 1.5 cm stairs at every voltage, steered or not; 3 cm ones too, but with a
knee or ankle pitch above the rule for 54-62 ms (allowed 50), except unsteered on an empty pack;
and 4 cm ones only on an empty pack, 68-72 ms above it, stopping at the first step otherwise. On a
full pack it drifts off the 3 cm stairs’ side unsteered. It still does not turn on the flat. Its
further run at 90% of the peak (rough_v2_c) drifted off the side of the 1.5 cm stairs at 11.1
and 12.6 V unsteered, past a metre, and climbs them and 3 cm ones steered within the rule at
11.1 V: so “fails” in some of the earlier checks was a walk off the stairs’ side.
Isaac Lab agrees with that check (check_stairs.py: 64 robots walking out of an inverted stair
pyramid; the share rising two steps or more on 3 cm steps): rough v2 69%, v3 22%, v4 20-44%,
v5p 47% and 0%, v5z 8% and 23%; on 1.5 cm steps 67-78% for every one, on 4 cm 11% or fewer.
Since the model gained the handle (4.06 kg), fine-tunes from v2 keep the climbing gait on some
seeds and lose it on others whatever the torque penalties, and every policy that climbs 3 cm
steps holds a knee or an ankle above the rule past its 50 ms. 3 cm stairs are beyond the rule for
the robot as drawn; rough v2 stays the rough-ground policy.
The checkpoint of flat v3 resumed flat v2 (--checkpoint with v2’s model_2999.pt); the task
config at each stage is in the git history. Flat v4 is staged the same way, but on the command
line, the task config left as it is (its last stage’s): the robot’s policy has to be trained
again from scratch whenever its joints change (the observations hold every joint), and trained
with the torque penalties on from the start, the heavier robot learned to throw itself over
within 0.2 s, as flat v1 did, the falls ending the penalties sooner. And the sharp clearance
reward (std 2e-4) pays only near the 3.5 cm target, so a policy that shuffles with 0.5 cm of lift
gets nothing from it; a broader one (std 2e-3) taught it to step:
uv run --no-sync isaaclab train --rl_library rsl_rl --task MarvinBotMini-Velocity-Flat --num_envs 4096 --max_iterations 3000 \ env.rewards.torque_over_rule.weight=0.0 env.rewards.foot_clearance.weight=1.0 env.rewards.sustained_torque.weight=0.0uv run --no-sync isaaclab train ... --max_iterations 2000 --checkpoint <stage 1>/model_2999.ptuv run --no-sync isaaclab train ... --max_iterations 1500 --checkpoint <stage 2>/model_4998.pt \ env.rewards.foot_clearance.params.std=0.002This page is generated from sim/isaaclab/README.md in the repository.