Skip to content

Discover Arena tasks automatically in Isaac Lab workflows - #1820

Draft
qianl-nv wants to merge 2 commits into
mainfrom
qianl/feature/isaaclab-task-discovery
Draft

qianl-nv wants to merge 2 commits into
mainfrom
qianl/feature/isaaclab-task-discovery

Conversation

@qianl-nv

@qianl-nv qianl-nv commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Discover Arena environments automatically in Isaac Lab's RSL-RL training/playback and demo recording/replay commands. Reuse the shared isaaclab_arena.plugins entry points from #1804 for external environments.

Why this change?

Launching an Arena task through Lab currently requires the user to supply Arena's --external_callback import path. Let the selected task carry that registration information instead.

What changes?

  • Publish lightweight Gym registrations through isaaclab.tasks, with a task-owned callback that builds the full Arena environment when selected.
  • Discover external factories through module-only isaaclab_arena.plugins entry points and @register_environment, preserving existing class-path loading and explicit callbacks.
  • When plugins are installed, collect their environment names in a short-lived subprocess so catalog imports do not load standalone USD into the process that will start Kit. The selected callback loads the plugins after simulation startup. Registration must be repeatable across processes and should not download assets or start simulation.
  • Update training, demonstration, and external-environment documentation.
  • Pin the prerequisite Lab task-registration commit, published on qianl-nv/IsaacLab:qianl/feature/task-registration-callback. This draft depends on upstreaming that Lab support.

Usage example

Before:

uv run isaaclab train --rl_library rsl_rl --task lift_object \
  --external_callback isaaclab_arena.environments.isaaclab_interop.environment_registration_callback

After:

uv run isaaclab train --rl_library rsl_rl --task lift_object

Automatic callback registration covers RSL-RL train/play and demo record/replay. Other Lab workflows still require separate integration.

Validation

Native uv: an installed external plugin environment completed one RSL-RL training iteration with two CPU environments and wrote a checkpoint, without --external_callback. Discovery kept plugin and USD imports outside the parent process until the catalog was explicitly loaded. Simulation-backed callback and recorder checks used Lab's pinned Newton 1.6.1 through a temporary uv overlay; the latest-main checks also supplied its locked nvidia-ml-py dependency through that overlay.

Long training runs and complete teleoperation recording/replay workflows have not been rerun for this split.

Register installed Arena environments with task-owned callbacks so Lab
training and demonstration commands no longer need --external_callback.
Keep class-path loading compatible with main's typed factory API.

Pin Lab's task-registration commit d29733378 and document environment
entry points and the supported training and demonstration workflows.

Signed-off-by: Qian Lin <[email protected]>
Discover external environments through Arena's common plugin catalog.
Keep catalog imports outside the simulation process during discovery
to avoid loading incompatible USD libraries before Kit starts.

Signed-off-by: Qian Lin <[email protected]>
@qianl-nv
qianl-nv force-pushed the qianl/feature/isaaclab-task-discovery branch from 5306936 to ac2066c Compare December 3, 2026 08:16

@qianl-nv qianl-nv left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review 1

install your package as an :ref:`Arena plugin <arena-plugins>`, every runner and Experiment finds
``franka_table`` by name, without ``--external_environment_class_path``.

Isaac Lab also discovers plugin environments through ``--task`` for ``train``, ``play``,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


docker run --rm -it --gpus all -e ACCEPT_EULA=Y --workdir /opt/arena --entrypoint bash my_project

Install the external package even when its source is already on ``PYTHONPATH``. Arena discovers

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

in entry-point name order, after its own built-in components. Each entry point must name a module;
an entry point that names a function or another module attribute is rejected.

Lab's ``isaaclab.tasks`` discovery uses the same plugins to make their environments available

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove. just add an example command for running with lab teleop or record_demo for this external environment


Isaac Lab's ``train``, ``play``, ``teleop record``, and ``teleop replay`` commands discover
Arena's task-registration callback automatically. The explicit ``--external_callback`` option
remains available for scripts that do not use task-owned registration metadata and for

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep only the first sentence, remove the second. we should only have one recommended approach. should we remove --external_callback all together?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also clarify "task-registry". "task" is the Lab term. the arena term should be "environment-registry"?

graph asset parameters and initial poses (#1266, #1302, #1363).
- **Evaluation and recording:** Added rollout timing and trajectory extraction. Run
exactly the requested number of evaluation episodes (#1198, #1254, #1371).
exactly the requested number of evaluation episodes. Added

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change. this will be in the next release so don't belong here.

@@ -0,0 +1,81 @@
---

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this doc

kwargs={
_RL_DISCOVERY_PLACEHOLDER_KEY: True,
TASK_REGISTRATION_CALLBACK_KEY: _ARENA_REGISTRATION_CALLBACK,
"default_agent": "rsl_rl",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need default_agent?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does registered arena task work with other lab agent for RL?

)
try:
isaaclab_interop.register_arena_tasks_for_discovery()
isaaclab_interop.register_arena_tasks_for_discovery()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why calling twice?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant