Skip to content

NIST assembly, ported from Isaac Lab

A Franka picks ten parts off a table and inserts them into a NIST task board: nuts threaded onto bolts, round and rectangular pegs into holes, a gear onto its shaft and USB-A, RJ45, D-sub and waterproof connectors into their sockets. Every contact between a part and its fixture is a triangle mesh against a signed distance field, with clearances of a fraction of a millimetre. A pretrained policy drives the arm at 25 Hz and Steel steps the physics at 100 Hz with eight substeps.

0.00 s

This is the whole 50 s episode of seed 1703, world 0, which assembles all ten parts. The left view shows the scene and the right one follows the gripper. Drag to orbit, right-drag to pan and scroll to zoom in either. Contacts shows one arrow for each pair of bodies that touch: the net contact force between them from the solver, normal and friction force summed over the pair’s contacts and averaged over 40 ms. The arrow is the force on the part (on the arm where the arm touches the board) and starts at the pair’s load centre, the force-weighted mean of its contact points. Its length grows with the log of the force up to the value in the key. For display, each arrow is blended over two frames either side, so it holds steady while the solver moves load among a resting part’s contacts. The robot, board and part meshes are decimated from the assets of Isaac Lab’s NIST demo (isaac-sim/IsaacLab#9177).

The example, nist_assembly, is a standalone Newton port of the NIST demo (examples/demos/nist.py) in isaac-sim/IsaacLab#9177, ported from the pull request’s head commit 2a28cad06. The demo and the alphaNIST policy are by ooctipus; the policy was trained in MuJoCo Warp, and it runs unchanged on Steel.

Terminal window
cd examples
uv sync --extra policy # the policy is TorchScript
uv run shelf play nist_assembly # Steel + rolling friction, four boards
uv run shelf play nist_assembly --solver steel # Steel without rolling friction
uv run shelf play nist_assembly --viewer null --world-count 4 --seed 1703 --deterministic \
--num-frames 3500 --record outputs/nist_1703 # a replay of each board's first episode

The first run downloads the policy and the USD assets from Isaac Lab’s public content into ~/.cache/steel-shelf/isaaclab-nist. They are not bundled with the examples and keep their own terms.

No Isaac Lab code runs. The example rebuilds what the demo’s configuration asks Isaac Lab to build:

Piece Newton
Robot, board, fixtures, parts ModelBuilder.add_usd on each asset with the Newton and PhysX schema resolvers; masses and kinematic flags authored on the stage first, as the demo’s spawners do
Contacts texture SDFs on every finite collider (resolution 256 and a ±5 mm band on parts and fixtures, 64 elsewhere), a 5 mm contact gap on parts and fixtures, CollisionPipeline(broad_phase="sap") once per 10 ms physics step
Drives the demo’s implicit actuator gains written into the model, in POSITION_VELOCITY mode
Gravity on the arm a per-link body force -m g in every substep (MuJoCo’s gravcomp attribute does not apply to Steel)
Actions relative joint targets recomputed from the current joint positions at each of the four physics steps of a policy step, and a binary gripper
Observations the demo’s 195-value robot history and 5 × 10 × 40 part history, term by term
Resets the demo’s board yaw, board placement and part drops, drawn from the same seeded generator

Several things Isaac Lab does without the demo saying so had to be made explicit: the default contact gap of 10 mm, the robot material event that sets the finger friction to 0.75, the strict SDF provisioning that turns the hand’s capsule into a mesh, the target mode chosen from the drive gains, position targets stored in joint-coordinate order, and the random draws of the startup events before the first reset.

The demo and the example ran on the same Newton build, the same GPU and the same seeds. The finalized models agree on every body mass and inertia, every collider’s material, gap and SDF, and every drive gain, limit and armature. The reset poses agree to 10⁻¹⁶ rad, the policy’s robot observations are bitwise identical, its per-part observations agree to 1.2 × 10⁻⁷ and its first actions agree to 6 × 10⁻⁶. With determinism on in both, the arm follows the same path to within 3 × 10⁻⁷ m until the first parts land. From there those small differences grow through contact and the runs separate. For scale, two default runs of the same stack, which do not repeat bit for bit, are already millimetres apart when the parts land.

Over 32 seeds of four boards (each board’s first 140 s episode):

Preset Isaac Lab demo nist_assembly Boards lost (a part left the workspace)
steel_rolling 82.0% 83.6% 1 / 2
steel 55.5% 60.9% 24 / 23

Both presets change the demo’s own Steel settings (8 iterations, Baumgarte 0.05, joint limits off), which assembled about half the boards: joint limits on, Baumgarte 0.2, contact_gap_gate=0 (no rows for contacts that are still apart), free_body_constraint_max=1280, and no contacts between the kinematic board and its fixtures. The parity runs above used the same settings on both sides.

Without it, the 16 mm round peg sometimes lands on its side and keeps rolling until it leaves the workspace, before the arm ever reaches it: about four in five of the lost boards in the table. Nothing in a rigid contact resists rolling, so a cylinder on its side keeps going. One millimetre of rolling friction on the loose parts (ShapeFrictionMode.SLIDING_ROLLING, mu_rolling = 0.001) stops the same peg within a few centimetres:

0.00 s

Both views follow the peg from the same reset, seed 1703, world 0, run with --deterministic, at half speed. Without rolling friction the episode ends at 2.56 s, when the peg leaves the workspace. The two presets also differ in iterations per substep (12 for steel, four for steel_rolling), so the table compares complete presets. To separate the friction from the iterations, I ran the same 128 boards with only rolling friction changed. At 12 iterations the lost boards drop from 23 to 1, and the round peg goes from 18 of them to none. At four iterations they drop from 43 to 2, and the peg from 36 to none. See Friction for how Steel builds the rolling rows.

--record DIR writes each world’s first episode as a pose stream (every policy step, or with --record-hz 100 every physics step plus each touching body pair’s net contact force and load centre), a manifest and a scene.glb, the format of the NIST replay viewer. --deterministic sorts contacts and fixes the solve order; on the build and GPU the port was checked on, two runs of a seed matched bitwise over the first 50 policy steps.

The replays on this page are packed with site/scripts/nist_replay.py, which decimates the meshes for display and keeps the poses at 50 Hz and the pair forces at 25 Hz, each the mean of the four physics steps around it:

Terminal window
cd examples
uv run shelf play nist_assembly --viewer null --world-count 4 --seed 1703 --deterministic \
--num-frames 3500 --record outputs/nist_1703_100 --record-hz 100
uv run python ../site/scripts/nist_replay.py ../site/public/examples/nist_assembly/replay-rolling.bin \
--run "outputs/nist_1703_100:0:Steel + rolling friction"