Skip to content

Commit e417401

Browse files
authored
Upgrade to Arena v0.3.1 and Newton 1.5 (#79)
* arena v0.3.1 lab 3.0 ea update * reduce num envs for skillgen test to prevent CI runner vram overflow * update arena submoudle * address review comments * update test naming * update commit to arena release branch * bump arena release branch commit
1 parent 1c7360d commit e417401

79 files changed

Lines changed: 1250 additions & 347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.dockerignore‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
**/.git
2-
**/.gitattributes
3-
/.agents
4-
/.claude
5-
6-
**/__pycache__
7-
**/*.py[cod]
8-
*.egg-info
9-
**/*.egg-info
10-
.pytest_cache
11-
121
/datasets/
132
/src/
143
/docs/
@@ -17,4 +6,18 @@ submodules/IsaacLab-Arena/submodules/**
176
!submodules/IsaacLab-Arena/submodules/IsaacLab
187
!submodules/IsaacLab-Arena/submodules/IsaacLab/**
198

9+
# Keep generated files excluded after the nested Lab inclusion above.
10+
**/.git
11+
**/.gitattributes
12+
/.agents
13+
/.claude
14+
**/__pycache__
15+
**/*.py[cod]
16+
**/*.egg-info
17+
**/.pytest_cache
18+
**/.cache
19+
**/_isaac_sim
20+
**/.vscode
21+
**/logs
22+
2023
docker/**/*.log

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ jobs:
4949
pip install --no-cache-dir pre-commit==4.6.0
5050
pre-commit run --all-files --show-diff-on-failure --verbose
5151
52-
test_e2e:
53-
name: E2E (GPU, repo Docker)
52+
run_tests:
53+
name: Run tests (GPU, repo Docker)
5454
runs-on: [self-hosted, gpu]
5555
timeout-minutes: 120
5656
needs: [pre_commit]
5757
# Skip GPU work for pull requests opened from forks (no secrets, untrusted code).
5858
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
5959

60-
# Premerge runs the correctness suites: e2e (GPU/Sim data-gen) plus interfaces
61-
# and core (CPU unit tests). The datagen_perf/ success-rate benchmarks (500
60+
# Premerge runs the correctness suites: e2e (GPU/Sim data-gen) plus interfaces,
61+
# core, and utils (CPU unit tests). The datagen_perf/ success-rate benchmarks (500
6262
# trials each) are heavy and run in the nightly instead. No marker filter, so
6363
# both subprocess and unit tests run.
6464
env:
65-
TEST_PATH: "autodata_tests/e2e/ autodata_tests/interfaces/ autodata_tests/core/"
65+
TEST_PATH: "autodata_tests/e2e/ autodata_tests/interfaces/ autodata_tests/core/ autodata_tests/utils/"
6666

6767
steps:
6868
- name: nvidia-smi
@@ -87,7 +87,7 @@ jobs:
8787
git lfs install --local
8888
git lfs pull
8989
90-
- name: Run E2E tests
90+
- name: Run tests
9191
# The GPU runners are shared. Use an empty job-temporary Docker config so
9292
# stale credentials cannot override anonymous access to the public base image,
9393
# and this job cannot modify the runner's persistent Docker login.

‎README.md‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
### Scalable Robot Demonstration Generation for Robot Learning
66

77
[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://github.com/isaac-sim/AutoData)
8-
[![Isaac Sim](https://img.shields.io/badge/Isaac%20Sim-6.0.1-silver.svg)](https://docs.isaacsim.omniverse.nvidia.com/latest/index.html)
9-
[![Isaac Lab](https://img.shields.io/badge/Isaac%20Lab-3.0.0--beta2-silver.svg)](https://github.com/isaac-sim/IsaacLab)
10-
[![Isaac Lab-Arena](https://img.shields.io/badge/Isaac%20Lab--Arena-0.2.x-silver.svg)](https://github.com/isaac-sim/IsaacLab-Arena)
8+
[![Isaac Sim](https://img.shields.io/badge/Isaac%20Sim-6.1.0-silver.svg)](https://docs.isaacsim.omniverse.nvidia.com/latest/index.html)
9+
[![Isaac Lab](https://img.shields.io/badge/Isaac%20Lab-3.0.0-silver.svg)](https://github.com/isaac-sim/IsaacLab)
10+
[![Isaac Lab-Arena](https://img.shields.io/badge/Isaac%20Lab--Arena-0.3.0-silver.svg)](https://github.com/isaac-sim/IsaacLab-Arena)
1111
[![Python](https://img.shields.io/badge/python-%E2%89%A53.12-blue.svg)](https://docs.python.org/3/whatsnew/3.12.html)
1212
[![Linux](https://img.shields.io/badge/platform-linux--64-orange.svg)](https://www.linux.org/)
1313
[![License](https://img.shields.io/badge/license-Apache--2.0-yellow.svg)](LICENSE.md)
@@ -89,8 +89,19 @@ The first launch builds the development image and opens a shell in the repositor
8989
`/workspaces/autodata`. Subsequent launches reuse the image. Use `./docker/run_docker.sh -c` to include cuRobo
9090
for SkillGen workflows.
9191

92-
Docker is the recommended setup. An optional conda installation and additional container options are described in
93-
the [installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html).
92+
This checkout uses Isaac Sim 6.1.0, Arena 0.3.1 at commit
93+
`481f5ae5f19df7bc5d24a17240fc0d96ac81eaf7`, and its nested Isaac Lab at commit
94+
`28a386f063e41c04c07f50e63eefb83fd8408fbe` (v3.0.0-EA plus 3 commits). After updating an existing clone, run
95+
`git submodule update --init --recursive` and rebuild with `./docker/run_docker.sh -c -r`.
96+
Commands, environment profiles, and source dataset metadata use Lab 3.0's `IsaacContrib-*`
97+
task names directly. For example, Franka recording uses
98+
`--task IsaacContrib-Stack-Cube-Franka-IK-Rel`.
99+
100+
Docker is recommended. For a native Python 3.12 environment, the updated
101+
`./conda_installer.sh -c -i` installs the Sim/Lab stack from Arena's lockfile; see the
102+
[installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-conda-installation).
103+
Additional container options are described in the
104+
[installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html).
94105

95106
### Generate Your First Dataset
96107

@@ -99,7 +110,7 @@ Inside the container, generate ten Franka cube-stacking demonstrations from the
99110
```bash
100111
python scripts/generate_dataset.py \
101112
--viz kit \
102-
--env_name Isaac-Stack-Cube-Franka-IK-Rel-v0 \
113+
--env_name IsaacContrib-Stack-Cube-Franka-IK-Rel \
103114
--alg mimicgen \
104115
--generation_num_trials 10 \
105116
--num_envs 10 \

‎autodata_examples/embodiments/franka_ik_rel_skillgen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Embodiment descriptor for SkillGen cube-stack generation on the generic IK-Rel task
5-
# (Isaac-Stack-Cube-Franka-IK-Rel-v0). Identical to franka_cube_stack_embodiment.yaml except for
5+
# (IsaacContrib-Stack-Cube-Franka-IK-Rel). Identical to franka_cube_stack_embodiment.yaml except for
66
# eef_offset: the SkillGen source dataset is annotated in the panda_hand frame (cuRobo's planning
77
# link), while the generic task reports the inter-fingertip frame, so the adapter must shift the
88
# reported pose back to panda_hand.

‎autodata_examples/env_profiles/franka_bin_stack.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
name: franka_bin_stack
1212
description: Blue sorting bin fixed at table center with the blue cube inside; red and green cubes spawn outside the bin.
13-
base_env: Isaac-Stack-Cube-Franka-IK-Rel-v0
13+
base_env: IsaacContrib-Stack-Cube-Franka-IK-Rel
1414
planner: franka_stack_cube_bin
1515

1616
scene:
@@ -34,21 +34,21 @@ events:
3434
# Bin and cube_1 (the stack base) are pinned at the table center; cube_2/cube_3 randomize
3535
# outside the bin.
3636
reset_blue_bin_pose:
37-
func: "isaaclab_tasks.manager_based.manipulation.stack.mdp.franka_stack_events:randomize_object_pose"
37+
func: "isaaclab_tasks.contrib.stack.mdp.franka_stack_events:randomize_object_pose"
3838
mode: reset
3939
params:
4040
pose_range: {x: [0.4, 0.4], y: [0.0, 0.0], z: [0.0203, 0.0203], yaw: [0.0, 0.0]}
4141
min_separation: 0.0
4242
asset_cfgs: [blue_sorting_bin]
4343
reset_cube_1_pose:
44-
func: "isaaclab_tasks.manager_based.manipulation.stack.mdp.franka_stack_events:randomize_object_pose"
44+
func: "isaaclab_tasks.contrib.stack.mdp.franka_stack_events:randomize_object_pose"
4545
mode: reset
4646
params:
4747
pose_range: {x: [0.4, 0.4], y: [0.0, 0.0], z: [0.0203, 0.0203], yaw: [0.0, 0.0]}
4848
min_separation: 0.0
4949
asset_cfgs: [cube_1]
5050
reset_cube_pose:
51-
func: "isaaclab_tasks.manager_based.manipulation.stack.mdp.franka_stack_events:randomize_object_pose"
51+
func: "isaaclab_tasks.contrib.stack.mdp.franka_stack_events:randomize_object_pose"
5252
mode: reset
5353
params:
5454
pose_range: {x: [0.65, 0.70], y: [-0.18, 0.18], z: [0.0203, 0.0203], yaw: [-1.0, 1.0]}

‎autodata_examples/tasks/franka_bin_stack_skillgen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# Franka bin cube stack (SkillGen). Runs on the neutral Isaac-Stack-Cube-Franka-IK-Rel-v0 task
4+
# Franka bin cube stack (SkillGen). Runs on the neutral IsaacContrib-Stack-Cube-Franka-IK-Rel task
55
# with the franka_bin_stack environment profile (--env_profile) and reuses the cube-stack
66
# annotated SkillGen source dataset. action_noise stays 0.0: the bin walls leave little
77
# clearance for perturbed skill segments.

‎autodata_interfaces/datastream/datastream.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def get_robot_prim_path(self, env_id: int) -> str:
357357

358358
robot_name = getattr(self.embodiment_adapter, "robot_asset_name", "robot")
359359
try:
360-
prim_paths = self.env.scene[robot_name].root_physx_view.prim_paths
360+
prim_paths = self.env.scene[robot_name].root_view.prim_paths
361361
return prim_paths[env_id]
362362
except (KeyError, AttributeError, IndexError):
363363
return f"{self.get_env_prim_path(env_id)}/Robot"

‎autodata_interfaces/env/isaaclab_env_interface.py‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@
2222

2323
import isaaclab.sim as sim_utils
2424
from isaaclab.assets import RigidObjectCfg
25+
from isaaclab.envs.mdp.actions.pink_task_space_actions import PinkInverseKinematicsAction
2526
from isaaclab.envs.mdp.recorders.recorders_cfg import ActionStateRecorderManagerCfg
2627
from isaaclab.managers import DatasetExportMode, EventTermCfg, SceneEntityCfg
2728
from isaaclab.managers.recorder_manager import RecorderManagerBaseCfg
2829
from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, ISAACLAB_NUCLEUS_DIR
2930
from isaaclab.utils.datasets import HDF5DatasetFileHandler
3031
from isaaclab.utils.string import string_to_callable
32+
from isaaclab_physx.sim.schemas import PhysxRigidBodyPropertiesCfg
3133
from isaaclab_tasks.utils.parse_cfg import parse_env_cfg
3234

3335
from autodata_interfaces.env.env_profile import EnvironmentProfile, convert_event_params
36+
from autodata_interfaces.env.pink_ik_action import PinkInverseKinematicsActionSharedUrdf
3437
from autodata_interfaces.tasks.generation_policy_spec import GenerationPolicy
3538

3639

@@ -58,6 +61,7 @@ def get_env_name_from_dataset(input_file_path: str) -> str:
5861
dataset_file_handler = HDF5DatasetFileHandler()
5962
dataset_file_handler.open(input_file_path)
6063
env_name = dataset_file_handler.get_env_name()
64+
dataset_file_handler.close()
6165
assert env_name is not None, "Environment name not found in dataset"
6266
return env_name
6367

@@ -96,7 +100,7 @@ def apply_env_profile(env_cfg: Any, profile: EnvironmentProfile, env_name: str)
96100
spawn=sim_utils.UsdFileCfg(
97101
usd_path=usd_path,
98102
scale=add_spec.scale,
99-
rigid_props=sim_utils.RigidBodyPropertiesCfg(**add_spec.rigid_props),
103+
rigid_props=PhysxRigidBodyPropertiesCfg(**add_spec.rigid_props),
100104
),
101105
),
102106
)
@@ -153,6 +157,7 @@ def setup_env_config(
153157
generation_policy_params: GenerationPolicy,
154158
recorder_cfg: RecorderManagerBaseCfg | None = None,
155159
env_profile: EnvironmentProfile | None = None,
160+
enable_cameras: bool = False,
156161
) -> tuple[Any, Any]:
157162
"""Configure the environment for data generation.
158163
@@ -171,13 +176,24 @@ def setup_env_config(
171176
recorder_cfg: Optional recorder manager config; defaults to an action/state recorder.
172177
env_profile: Optional environment profile overlaid on the parsed config (scene additions,
173178
reset-event changes) before the generation-specific adjustments below.
179+
enable_cameras: Record the task's image observations. Defaults to low-dimensional
180+
observations, excluding the cameras used for teleoperation previews.
174181
175182
Returns:
176183
A tuple of the environment configuration and the success termination condition.
177184
"""
178185
env_cfg = parse_env_cfg(env_name, device=device, num_envs=num_envs)
179186
env_cfg.env_name = env_name
180187

188+
# Lab's Pink controller forces a USD conversion per instance. Resolve the
189+
# shared model once before creating the independent per-environment solvers.
190+
for action_cfg in vars(env_cfg.actions).values():
191+
if getattr(action_cfg, "class_type", None) in (
192+
PinkInverseKinematicsAction,
193+
f"{PinkInverseKinematicsAction.__module__}:{PinkInverseKinematicsAction.__name__}",
194+
):
195+
action_cfg.class_type = PinkInverseKinematicsActionSharedUrdf
196+
181197
if env_profile is not None:
182198
apply_env_profile(env_cfg, env_profile, env_name)
183199

@@ -190,6 +206,18 @@ def setup_env_config(
190206
env_cfg.terminations = None
191207
env_cfg.observations.policy.concatenate_terms = False
192208

209+
# Lab 3.0 humanoid tasks include teleoperation preview cameras. Keep the
210+
# existing low-dimensional generation workflow unless images are requested.
211+
if not enable_cameras and hasattr(env_cfg, "image_obs_list"):
212+
for image_name in env_cfg.image_obs_list:
213+
image_term = getattr(env_cfg.observations.policy, image_name, None)
214+
if image_term is not None:
215+
sensor_cfg = image_term.params.get("sensor_cfg")
216+
if sensor_cfg is not None:
217+
setattr(env_cfg.scene, sensor_cfg.name, None)
218+
setattr(env_cfg.observations.policy, image_name, None)
219+
env_cfg.image_obs_list = []
220+
193221
# Setup recorders
194222
if recorder_cfg is None:
195223
env_cfg.recorders = ActionStateRecorderManagerCfg()
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
"""Prepare one URDF for the per-environment Pink IK controllers."""
5+
6+
from __future__ import annotations
7+
8+
import tempfile
9+
import xml.etree.ElementTree as ET
10+
from pathlib import Path
11+
from typing import TYPE_CHECKING
12+
13+
from isaaclab.controllers import utils as controller_utils
14+
from isaaclab.envs.mdp.actions.pink_actions_cfg import PinkInverseKinematicsActionCfg
15+
from isaaclab.envs.mdp.actions.pink_task_space_actions import PinkInverseKinematicsAction
16+
17+
if TYPE_CHECKING:
18+
from isaaclab.envs import ManagerBasedEnv
19+
20+
21+
class PinkInverseKinematicsActionSharedUrdf(PinkInverseKinematicsAction):
22+
"""Reuse the converted URDF while retaining independent IK state for each environment."""
23+
24+
def __init__(self, cfg: PinkInverseKinematicsActionCfg, env: ManagerBasedEnv):
25+
"""Convert USD once before the base action creates its per-environment controllers.
26+
27+
Args:
28+
cfg: Pink action configuration.
29+
env: Environment containing the controlled articulations.
30+
"""
31+
controller = cfg.controller
32+
if controller.urdf_path is None and controller.usd_path is not None:
33+
cfg = cfg.copy()
34+
controller = cfg.controller
35+
controller.urdf_path, _ = controller_utils.convert_usd_to_urdf(
36+
controller.usd_path,
37+
controller.urdf_output_dir or tempfile.mkdtemp(prefix="autodata-pink-"),
38+
force_conversion=True,
39+
)
40+
# Lab's explicit-URDF path attempts to download mesh_path as a file, although
41+
# the exporter returns a directory. Resolve the exported relative mesh names
42+
# in the generated URDF so Pinocchio needs no additional package directory.
43+
urdf_path = Path(controller.urdf_path)
44+
tree = ET.parse(urdf_path)
45+
for mesh in tree.iter("mesh"):
46+
mesh.set("filename", str((urdf_path.parent / mesh.attrib["filename"]).resolve()))
47+
tree.write(urdf_path, encoding="unicode")
48+
controller.mesh_path = None
49+
super().__init__(cfg, env)

‎autodata_interfaces/motion_planners/curobo/curobo_planner.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import numpy as np
88
import torch
99
from dataclasses import dataclass
10+
from types import SimpleNamespace
1011
from typing import TYPE_CHECKING, Any
1112

1213
import warp as wp
@@ -31,6 +32,11 @@
3132
if TYPE_CHECKING:
3233
from autodata_interfaces.datastream.datastream import Datastream
3334

35+
# cuRobo ebb71702 still uses this namespace in WorldMeshCollision. Warp 1.16
36+
# exposes the same bridge at the top level and no longer provides warp.torch.
37+
if not hasattr(wp, "torch"):
38+
wp.torch = SimpleNamespace(device_from_torch=wp.device_from_torch)
39+
3440

3541
class PlannerLogger:
3642
"""Logger class for motion planner debugging and monitoring.

0 commit comments

Comments
 (0)