Repository navigation
Update Arena to Isaac Lab 3.0 release - #1481
Conversation
[Medium impact] The changes reach Arena's simulation runtime and developer setup. The cuRobo image build needs a matching CUDA compiler before this PR is safe to merge. Findings
SummaryUpdates Arena to Isaac Lab 3.0 and Isaac Sim 6.2.
Acknowledged limitation: Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
Sim["Isaac Sim 6.2"] --> Lab["Isaac Lab + CUDA 13 Torch"]
Lab --> Dev["Arena developer image"]
Lab --> Builder["cuRobo builder: CUDA 12.8 compiler"]
Builder --> Failure["CUDA major-version mismatch"]
Dev --> Target["dev-curobo"]
Failure -. blocks wheel installation .-> Target
Reviews (1) · Last reviewed commit: "Update to Isaac Lab 3.0 release" · Reviewed by Greptile |
4d32bd4 to
55825f7
Compare
|
/review |
🤖 Isaac Lab-Arena Review BotSummaryThis PR moves Arena to Isaac Lab 3.0.0 and Isaac Sim 6.2 and switches the Docker build to Lab's uv venv workflow. It also adapts Arena to Lab's changed reset, camera, clone-plan, and Franka APIs. The reset/recorder changes match Lab's new signatures, and the camera observation dispatch follows Lab's own pattern. But two of the ports break existing code: scene keys nested under another asset no longer resolve, and the soft Franka example asks for an actuator group the legacy preset doesn't have. Several Docker/OSMO changes also need follow-up before merge. Findings🔴 Critical: isaaclab_arena/environments/arena_world_scene_access.py:36 — Not on changed lines:
Greptile's earlier cuRobo finding (CUDA 12.8 compiler vs. cu130 torch) is fixed: the builder now uses CUDA 13.0. Test Coverage and CI Cost
VerdictSignificant concerns |
8f9dd9b to
d4afd45
Compare
david-tingdahl-nvidia
left a comment
There was a problem hiding this comment.
Thanks for doing this!
alexmillane
left a comment
There was a problem hiding this comment.
Looks great! Thank you for doing this.
I have a couple of small comments. One thing for @cvolkcvolk to check, and one thing I'd (@alexmillane) would like to check.
qianl-nv
left a comment
There was a problem hiding this comment.
Thanks for all the feedbacks, I've updated to address most of the comments.
The fix for broken camera intrinsics runtime variant with multi-env will be defered to a separate PR.
Pin Arena to the latest Isaac Lab release/3.0.0 revision and move the Docker runtime to Isaac Sim 6.2. Adapt environment resets, camera APIs, scene discovery, robot presets, and dependency constraints to the new Lab interfaces. Keep the Torch 2.11 CUDA 13 stack selected by Lab so Arena avoids the RTX and NCCL incompatibility addressed upstream. Signed-off-by: Qian Lin <qianl@nvidia.com>
Update Arena's Docker environment for parity with Isaac Lab PR #7405 (commit eed50f77c53), using frozen uv locks and the Kit-based venv. Signed-off-by: Qian Lin <qianl@nvidia.com>
Match the cuRobo compiler toolkit and CUDA_HOME with Isaac Lab's PyTorch cu130 build. Signed-off-by: Qian Lin <qianl@nvidia.com>
Narrow the Isaac Lab dependency-layer inputs and defer documentation copies so source-only changes reuse installation layers. Signed-off-by: Qian Lin <qianl@nvidia.com>
Advance the Isaac Lab submodule from the release branch snapshot to the final v3.0.0 release tag. Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
ceb948f to
2c22e65
Compare
Signed-off-by: Qian Lin <qianl@nvidia.com>
Add a disabled `asset_selection` variation to every rigid `Object`, so an Experiment Run can spawn a different registered asset in each rebuild. To support it, build the task contact sensors and the default task description after the selection, so they match the selected asset, and name the `pick_and_place_maple_table` objects `pick_up_object` and `destination_location`, so their variation keys stay the same whichever asset they spawn. ## Why this change? Lighting, HDR maps, camera poses and object mass are variations: an experiment turns them on, the seed decides their values, every episode row records them, and recorded variation replay repeats them. The pick-up object is not. An environment fixes it in code or with an option such as `pick_up_object`, so comparing objects takes one Run per object, and the object is not seeded, recorded or replayed like the variations. `RigidObjectSet` varies objects across the environments of one build, but it does not record which object an environment got, and `supports_recorded_placement()` turns off placement recording for a build that contains one. ## What changes? - Every rigid `Object` except a `RigidObjectSet` gets a disabled `asset_selection` variation, a `RigidAssetSelectionVariation`. When enabled, each build spawns one of its `registry_names` in all environments. Rebuild k takes the k-th name, using `SequentialSampler` from #1517, or a random one with `sampler_cfg.random_choice: true`. A name listed twice is selected more often. Each build checks every name but constructs only the selected one. - The selection runs before placement, so placement and the task's contact sensors use the selected asset. Episode rows record the name, and recorded variation replay spawns it again. A replay record with placement samples must include the value of every enabled build-time variation that sets the new `changes_object_geometry` flag, which `RigidAssetSelectionVariation` does. - The selected name becomes the object's `registry_name`, and the default descriptions of `PickAndPlaceTask` and `AssemblyTask` name it. - `Scene.validate_simulation_cfg()` runs the check of the asset a selection spawns, through the new `Asset.get_spawned_asset()`. A selected Newton-only gear fails a PhysX build, and a declared gear that selects a PhysX asset passes one. - The Experiment Runner passes the rebuild index to `ArenaEnvBuilder`. A warning for in-order selections with fewer rebuilds than names follows in #1520. - The `swap_objects` Run of `getting_started_experiment.yaml` selects its pick-up object from a list, one per build, and the variations docs cover it in the build-time explanation and the table of variations. Breaking changes: - `PickAndPlaceTask`, `ObjectInTask` and `SortMultiObjectTask` build their contact sensors in `get_scene_cfg()`. `scene_config`, `make_scene_cfg()` and `SortMultiObjectTask.pick_up_object_contact_sensor_list` are removed. - `PickAndPlaceTask.task_description` and `AssemblyTask.task_description` hold only a description passed to the constructor. Call `get_task_description()` for the generated one. - The `pick_and_place_maple_table` object names change, and with them their variation keys, scene entity names and placement keys. Variation overrides, replay files and HDF5 demos recorded on main with the old names need the new ones. - Variations that override `configure_at_build_time(seed, variation_key)` must also accept `rebuild_index`, because `ArenaEnvBuilder` now passes it. Limitations: - Only the spawn configuration, the simulation check and `registry_name` change. The object keeps its declared class's `scale`, `spawn_cfg_addon` and other methods. - An unknown name, or one whose class declares another object type, fails in the first build. A name the physics backend cannot simulate, or one whose type is known only after construction, such as an embodiment, fails when a rebuild selects it. - Outside the Experiment Runner, for example in `record_demos.py`, every build is rebuild 0, so in-order selection spawns the first name. - The descriptions of `GearInsertionTask` and `PlaceUprightTask` still name the declared asset, and a `SimReadyUsdObject` is described as `simready_usd_object`. - Metrics cover all selected objects together. Group episode rows by `pick_up_object.asset_selection` for per-object results. - A hand-written `language_instruction` applies to every rebuild. - A `bounding_box` override fails the build when the selection is enabled. - An `ObjectReference` into a selected object still reads the declared asset's `usd_path`. ## Usage example Before, one Run per object: ```yaml runs: rubiks_cube: environment: type: pick_and_place_maple_table pick_up_object: rubiks_cube_hot3d_robolab mustard_bottle: environment: type: pick_and_place_maple_table pick_up_object: mustard_bottle_hot3d_robolab ``` The object is set outside the variation system, so: - the seed, the episode rows' `variations` and recorded variation replay do not cover it; - objects cannot be drawn from a list, in order or at random; - every object needs its own Run. After, one Run that spawns another object in each rebuild (the `swap_objects` Run of `getting_started_experiment.yaml`, which takes the rest of the environment from `shared`): ```yaml runs: swap_objects: environment: destination_location: wooden_bowl_hot3d_robolab num_rebuilds: 3 rollout_limit: num_episodes: 3 variations: pick_up_object.asset_selection.enabled: true pick_up_object.asset_selection.registry_names: [mustard_bottle_hot3d_robolab, orange_01_fruits_veggies_robolab, rubiks_cube_hot3d_robolab] ``` Set `pick_up_object.asset_selection.sampler_cfg.random_choice: true` to draw a name at random in each build instead. ## Validation - On ce7302e, the getting-started Experiment loading tests pass in the local container. On d8596bf, so did the selection tests that run without simulation and `test_recorded_variation_samples.py`. - On d3623d0, the plain Python tests pass in the local container: the selection tests that run without simulation, `test_run_execution.py`, `test_recorded_variation_samples.py` and `test_variation_base.py`. - On 3588692, before the merge of main, 102 related tests pass in the local container, including the Experiment Runner rebuild and replay subprocess tests. The asset selection example experiment of that commit records the three objects in order over rebuilds 0 to 2. - The simulation tests cannot run locally after the merge of main: the local Docker image predates #1481, and Isaac Lab 3.0 fails to import with its warp 1.16.0. CI runs the full suite. --------- Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Use oriented bounding boxes for placement collision loss and validation. Keep the existing interval calculation for axis-aligned boxes and batch collision checks across candidates. This builds on `OrientedBoundingBox` from #1477. ## Why this change? Enclosing AABBs can overlap even when rotated objects are separate. Placement previously penalized and rejected those layouts, although the oriented geometry was available. ## What changes? - Preserve each candidate's rotation and assigned object geometry through solving, filtering, ranking and validation. - **Loss for rotated boxes:** multiply the interval overlaps along each box's face axes, and penalize the harmonic mean of the two volumes. - It is zero exactly when a face axis separates the boxes by at least `clearance_m`, and it equals the intersection volume for axis-aligned pairs. - When only one box's projections sit inside the other's, the other box's volume still gives a gradient. - `CachedOverlapVolumeUpperBound` caches the rotation-dependent terms once per solve. Its `compute()` still returns the smaller volume, a true upper bound. - Validate with the separating-axis test. - Keep the axis-aligned loss, directed gradients and existing mesh checks. Use matching collision geometry for meshless background obstacles. - `RelationSolver` prepares pair routing for the box and mesh losses once per solve. - In the oriented loss, used when any collision box in a solve is rotated, boxes thinner than 2 mm count as 2 mm thick. A flat object that overlaps an obstacle therefore still has an overlap volume to reduce. `collision_bboxes` stores oriented geometry once per batch, and each candidate's enclosing AABBs are derived from it. Those AABBs remain available for relation constraints and mesh proxies. For rotated rows they can differ from the previous rotation code by up to about 2e-7 m. `CollisionMode.BBOX` uses this automatically. Arbitrary-yaw results can change, including existing clutter examples. Support containment and clutter release initialization remain AABB-based; the existing rotated-support and `On(overlap=True)` containment issues need a separate correction. ## Results The placement-success benchmark (#1497) ran every RoboLab and KitchenBench spec on main and on this branch, with 50 layouts × 3 seeds per spec. | Setting | Suite | Layout success, main → this PR | Change (95% interval) | Valid candidates, main → this PR | Change (95% interval) | | --- | --- | ---: | ---: | ---: | ---: | | Random yaw | RoboLab (38) | 64.6% → 76.4% | +10.9 to +12.3 pts | 36.2% → 64.6% | +28.0 to +28.7 pts | | Random yaw | KitchenBench (20) | 31.8% → 33.1% | −0.1 to +2.6 pts | 8.2% → 8.5% | −0.1 to +0.7 pts | | As authored | RoboLab (38) | 94.2% → 94.2% | −0.8 to +0.8 pts | 67.0% → 67.6% | +0.2 to +1.0 pts | | As authored | KitchenBench (20) | 84.2% → 84.2% | −1.6 to +1.7 pts | 27.3% → 27.3% | −0.7 to +0.6 pts | - **Random yaw:** 24 RoboLab tasks improve significantly after a Holm adjustment, and none get worse. Bin and clutter tasks gain the most: - `throw_away_snacks`: layout success goes from 28% to 100%, and valid candidates from 3% to 68%; - `marker_in_mug`: valid candidates go from 7% to 82%. - **KitchenBench is unchanged.** Random yaw also turns its robot away from the fixture it is placed next to, and that dominates its failures, so its random-yaw row says little about oriented boxes. - **As authored:** no suite gets worse. Two RoboLab tasks improve, `food_packing_1_boxes` and `food_packing_1_cans` (valid candidates 75% → 84%). - **Why it improves:** the separating-axis test is exact for boxes, so rotated layouts that enclosing AABBs falsely rejected now pass. - **Exact quarter turns** are unchanged: positions, losses and verdicts match main. ## Limitations - **Tilted boxes:** the loss can penalize tilted boxes that the separating-axis test finds separate. - **Crossed rods:** when two long, thin boxes cross in an X, both face-axis volumes are flat and the gradient is zero. In a probe with two 0.5 m rods at random yaw, 73.4% of candidates were valid, against 78.7% with the enclosing-AABB loss under the same validator. A follow-up adds an in-plane enclosing-box term to rotated pairs, which reached 84.5% in the same probe. - **Near-quarter yaws:** robot yaws such as `yaw_rad: 1.57` in KitchenBench are not exact quarter turns, so those scenes take the oriented path. Positions matched main in a probe; only the cost differs. ## Performance - **Per solver iteration:** cost rises in rotated scenes, because each directed pair stores a rotation per candidate. Caching the rotation-dependent terms makes iterations 6–26% faster on CPU and lowers peak memory by 16–22%, compared with recomputing them. The harmonic mean adds 4–10% per iteration on CPU over the smaller volume. | Scene (objects × candidates) | CPU per iteration | Peak GPU memory | | --- | ---: | ---: | | 6 × 640 | 3.2 → 3.5 ms | 2.4 → 6.6 MiB | | 12 × 1024 | 7.3 → 9.8 ms | 15.2 → 44.4 MiB | | 25 × 1024 | 26.5 → 37.0 ms | 65.8 → 194.6 MiB | - **Validation** is batched across candidates, which offsets much of the solver cost. - **Full-suite wall time** was noisy on a shared machine. Random-yaw RoboLab went from 979 to 802 s. As authored, the median spec took 16% longer. These are placement measurements, not physics-acceptance rates. ## Validation - **Benchmark:** the runs above compare main at `88f83c967a` with this branch's final loss, before rebasing onto the Isaac Lab 3.0 update (#1481). All 69 specs ran with no failures in both settings. - **CI:** every check passes on `16e712dce3`, including both test jobs. - **Local tests:** - 392 placement, geometry and collision tests pass, including the relation-solver visualization example; - 24 simulator tests pass, covering clutter placement, embodiment collision meshes, placement after build-time variations, and relation placement from YAML; - pre-commit passes. - **Stuck gradient:** a test places a yawed bar whose own-axis volume is constant against a cube. It checks that the smaller volume has zero gradient there, while the loss pushes the bar out. - **Exact quarter turns:** candidate positions, losses and verdicts match the AABB baseline exactly. The harmonic mean equals the exact volume for axis-aligned pairs. - **Zero thickness:** a test checks that a zero-thickness panel overlapping a fixed block gets a loss and is pushed clear; it fails without the 2 mm minimum. - **Loss vs validator:** in 1.6M random pairs, yaw-only and tilted, at margins 0 and 0.01, the validator accepted every layout the loss treats as clear. The harmonic mean is zero exactly where the smaller volume is, so this still holds. --------- Signed-off-by: zhx06 <zihaox@nvidia.com>
Fix the cuRobo reachability check, which crashes with `warp-lang` 1.17. Add a test that builds the real cuRobo solver, so CI catches this. ## Why this change? The Isaac Lab 3.0 update (#1481) pinned `warp-lang==1.17.0`. Since then, building `CuroboIKSolver` fails: ``` AttributeError: module 'warp' has no attribute 'torch' ``` Warp removed `warp.torch` in 1.13, but cuRobo still calls `wp.torch.device_from_torch`. So every run with cuRobo reachability validation fails during placement. Isaac Lab has a shim for this in `isaaclab_mimic`. CI missed it because it does not include a test involving starting Curobo IK solver. ## What changes? - Add `add_warp_torch_`warp.torch` the same way Isaac Lab Mimic's init__` calls it - Add TODO for removal once Curobo bumps. - Add `test_ik_solver_eal Droid solver on GPU and checks one reachabIt runs in the existing `curobo_deps` ## Validation Ran in the cuRobo image (`./docker/run_docker.sh -c`) rebuilt from `main` at f8c3e78, with the OpenPI pi05 DROID server for our example workflow cmds. --------- Signed-off-by: Xinjie Yao <xyao@nvidia.com>
The README lists its own prerequisites, and users upgrading from v0.3 read the release notes, so both should say that #1481 raised the NVIDIA driver requirement to 580. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Document that Arena needs NVIDIA driver 580 or newer, and update the Isaac Sim version on the installation page to 6.2.0. ## Why this change? Since [#1481](#1481), both the uv and Docker installs use `torch 2.11.0+cu130`, which needs driver 580 or newer. On an older driver such as 560, Isaac Sim still starts, but runs on the GPU fail when torch initializes CUDA. The installation page did not mention a driver requirement. It also still named Isaac Sim 6.0.1 and linked the 6.0.0 requirements page. ## What changes? - The Supported Systems section of the installation page states that Arena requires driver 580 or newer. - The Isaac Sim version and requirements link now point to 6.2.0, matching the Docker base image and `uv.lock`. - The README prerequisites and the v0.4.0 release notes state the same driver requirement. --------- Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Update Arena to the Isaac Lab 3.0.0 GA pin and Isaac Sim 6.2. Keep the Isaac Sim base image while installing the pinned Lab and Arena source trees from their frozen uv locks.
Why this change?
Arena was on Lab 3.0 EA and Isaac Sim 6.1. Update to the Isaac Lab v3.0.0 release, pinned at
e3f7d9ff1f5d7f8280de3ece9000b7117f66bcf4, and adapt Arena to its released APIs and dependencies.What changes?
Docker and uv workflow
eed50f77c53, while retaining Arena's Isaac Sim base-image stages and editable Lab source.pythonandpython3toisaaclab.sh -p, andpytesttoisaaclab.sh -p -m pytest, so commands initialize Isaac Sim and execute from/opt/isaaclab-venv.isaaclab.sh -pexplicitly; build-time package operations useuv pipor/opt/isaaclab-venv/bin/python./isaac-sim/python.shis no longer a supported Arena entry point because it bypasses the Lab launcher and the locked Lab virtual environment./opt/isaaclab-venvwith Isaac Sim's Kit Python.uv.lock. The metadata-only stage skips all local path packages; after the complete submodule is copied, a second sync installs its editable packages.uv sync --inexact, then install Arena editable into the same environment.resolution-markersandsupported-markersand remove it from uv lock edges.Torch 2.11 and CUDA 13 handling
torch==2.11.0andtorchvision==0.26.0to thecu130PyTorch index. Docker takes those versions from Lab's frozen lock instead of duplicating them in a hand-written constraint list. Arena drops its directtorchaudiodependency, matching Lab.CUDA_HOME=/usr/local/cuda-13.0, matching PyTorch's CUDA major version.Other API and released-stack changes
Noneenvironment selections in Arena's environment and recorder reset paths. This is API compatibility, no behavior change.mdp.imageterm with the RGB, depth, normals, or segmentation observation function selected for each modality. Unsupported data types now fail explicitly.FrameViewpose writes into Fabric so RTX sees camera movement. Remove Arena PR #1196 and itsCameraPoseWriterUSD workaround. Camera-extrinsics variations now use Labset_local_poses()directly; retained tests cover rendered images and reported poses under PhysX and Newton with Fabric enabled and disabled._update_intrinsic_matrices()withCamera.set_intrinsic_matrices(). Lab's ordinary pinhole runtime API enforces square pixels, so Arena now samples one focal-length delta and applies it to bothfxandfy. Note: intrinsics variation has an pre-existing bug before this Lab upgrade which results in env_0 camera params being used for all parallel envs. Fix will go in a separate PR.cloner.query.iter_sources()helper. arena_world_scene_access.py was updated to essentially re-implement the removed helper.FRANKA_PANDA_LEGACY_CFGandFRANKA_PANDA_LEGACY_HIGH_PD_CFGexplicitly after Lab made the flat Franka asset the default and introduced shared minimal presets. This keeps Arena's nested/pandahierarchy, legacy joint names, and existing actuator grouping.kitchen_peninsula.usda, which now exposes 50 physics roots instead of 56. Its_OnlineVisualphysics roots decrease from 24 to 18, and the previously discovered_OnlineVisualarticulation is no longer present.Validation
Passing local checks:
uv lock --check --no-python-downloadswith uv 0.12.9