Repository navigation
Conversation
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]>
5306936 to
ac2066c
Compare
| 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``, |
|
|
||
| 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 |
| 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
keep only the first sentence, remove the second. we should only have one recommended approach. should we remove --external_callback all together?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
revert this change. this will be in the next release so don't belong here.
| @@ -0,0 +1,81 @@ | |||
| --- | |||
| kwargs={ | ||
| _RL_DISCOVERY_PLACEHOLDER_KEY: True, | ||
| TASK_REGISTRATION_CALLBACK_KEY: _ARENA_REGISTRATION_CALLBACK, | ||
| "default_agent": "rsl_rl", |
There was a problem hiding this comment.
do we need default_agent?
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
why calling twice?
Discover Arena environments automatically in Isaac Lab's RSL-RL training/playback and demo recording/replay commands. Reuse the shared
isaaclab_arena.pluginsentry points from #1804 for external environments.Why this change?
Launching an Arena task through Lab currently requires the user to supply Arena's
--external_callbackimport path. Let the selected task carry that registration information instead.What changes?
isaaclab.tasks, with a task-owned callback that builds the full Arena environment when selected.isaaclab_arena.pluginsentry points and@register_environment, preserving existing class-path loading and explicit callbacks.qianl-nv/IsaacLab:qianl/feature/task-registration-callback. This draft depends on upstreaming that Lab support.Usage example
Before:
After:
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 lockednvidia-ml-pydependency through that overlay.Long training runs and complete teleoperation recording/replay workflows have not been rerun for this split.