Repository navigation
Remove the _PLAY configs - #6676
Conversation
|
Too many files changed for review. ( Bypass the limit by tagging |
| @@ -982,18 +982,18 @@ inferencing, including reading from an already trained checkpoint and disabling | |||
| - **rsl_rl** (PPO) | |||
There was a problem hiding this comment.
can we remove the entire Inference Task Name column now?
| The ``IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav-Play`` environment provides a fully | ||
| deterministic setup for debugging policy behavior against a specific real-world scenario. | ||
| All randomization is disabled and observation noise is turned off, so the simulation is | ||
| Playing the ``IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav-ROS-Inference`` environment |
There was a problem hiding this comment.
is this inference mode different from the previous Play mode? or just a rename?
There was a problem hiding this comment.
Dropped all inference refs
| _INFERENCE_TASK_SUFFIXES = ("-Play", "-Play-v0", "-Eval") | ||
| # Play overrides are now applied by the play script via ``play_mode``; only the | ||
| # versionless ``-Eval`` suffix remains registered for dedicated evaluation variants. | ||
| _INFERENCE_TASK_SUFFIXES = ("-Eval",) |
There was a problem hiding this comment.
what is the purpose of Eval?
There was a problem hiding this comment.
This eval environment is unforunately mapped to a specfic eval env, I can do a follow up PR to see how we can properly remove:
IsaacContrib-Assemble-Trocar-G129-Dex3-Eval maps to G1AssembleTrocarEvalEnvCfg
We would need to actually get rid of the original EvalEnvCfg and then we can drop the task as well.
|
let's make sure we also resolve the new names from #6670 |
# Description
This PR removes the `_PLAY` environment-configuration design.
Previously, most tasks shipped a
`*EnvCfg_PLAY` subclass registered under a separate `-Play` gym id,
duplicating the same handful of
inference tweaks (fewer environments, no observation corruption, terrain
shrink, no push events)
across ~75 classes and polluting the task registry with ~55 extra ids.
Play-mode overrides are now a `play_post_init()` method on the
environment configuration, applied
automatically by the play scripts:
- **Base defaults** on `ManagerBasedRLEnvCfg`, `DirectRLEnvCfg`, and
`DirectMARLEnvCfg` collect the
settings that were duplicated across nearly every `_PLAY` config: cap
`scene.num_envs` at 50 and
disable observation corruption/noise.
- **Task overrides**: a task customizes playback by overriding
`play_post_init()` on its training
config and calling `super().play_post_init()` to keep the shared
defaults. Inheritance dedupes
family-wide behavior — e.g. the locomotion-velocity base config defines
the terrain-shrink and
push-event removal once for all velocity tasks; per-robot overrides keep
only genuinely unique
settings (command ranges, episode length, special env counts).
- **Automatic application**: the play entrypoints (rsl_rl, rl_games,
sb3, skrl) load the training
task and pass `play_mode=True` through `register_task()` /
`resolve_task_config()` /
`hydra_task_config()`. The overrides are applied after preset resolution
and before user scalar
overrides, so CLI values (`--num_envs`, `env.foo=bar`) still win.
- **Training config as-is**: a new `--train_env_cfg` flag on the play
entrypoints skips the
play-mode overrides entirely and plays the exact training configuration.
## Migration
- Use the training task id with `play.py`: `--task
Isaac-Velocity-Rough-H1` instead of
`--task Isaac-Velocity-Rough-H1-Play`.
- Retired `-Play` / `-Play-v0` ids passed to the play entrypoints are
redirected to the training id
with a `FutureWarning` (`resolve_play_task_name`). Externally registered
`-Play` tasks are left
untouched.
- Direct users of a `*_PLAY` class should instantiate the training
config and call
`play_post_init()` on it (see the updated `policy_inference_in_usd.py`
tutorial and
`h1_locomotion.py` demo).
## Notable behavior changes
- Play defaults now apply to every task, including ones that never had a
`_PLAY` config
(opt out with `--train_env_cfg` or `--num_envs`). Training behavior is
unchanged everywhere.
- Flat velocity configs inherit their robot's rough-config play
overrides (e.g. fixed forward
velocity command); Cassie and Spot play now also remove push events,
converging on the family
behavior.
- The two Galbot VLA-evaluation variants were not play tweaks but
distinct action-space configs;
they remain registered tasks renamed without the `-Play` suffix
(`IsaacContrib-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor-{Joint-Position,RmpFlow}`).
- The Rizon-4S gear-assembly deterministic debug config folded into
`Rizon4sGearAssemblyROSInferenceEnvCfg.play_post_init()`; the deployment
docs were updated
accordingly.
- `play_rlinf` is not wired for play mode: it parses arguments before
any task registry exists and
its tasks never had `-Play` variants.
## Testing
- `play_post_init()` instantiated and applied on all 149 registered task
configs — zero failures.
- New unit tests: `-Play`/`-Play-v0` redirect behavior
(`test_entrypoints_common.py`) and
`play_mode` plumbing in `register_task` (`test_hydra.py`).
- Passing suites: `test_hydra.py` + `test_entrypoints_common.py` (97),
`test_checkpoint_manifest.py`
(5), `test_typed_preset_cli_train_play.py` (8),
`tools/test/test_environ_docs.py` (19).
- `docs/source/overview/environments.rst` regenerated (144 training
environments) and verified with
`tools/update_environments_rst.py --check`.
- `./isaaclab.sh -f` passes all hooks.
## Type of change
- Breaking change (existing functionality will not work without user
modification)
- New feature (non-breaking change which adds functionality)
- Documentation update
## Checklist
- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
…mera manager counterparts (#6421) ## Review Map - **Exact changes**: a stacked PR's page shows the cumulative diff of its dependency chain; the link pins the commit range that is the PR's own contribution. - Links pin specific SHAs and can go stale after a branch update — this table on #6324 is refreshed first. | PR | Status | Depends on | Exact changes | |---|---|---|---| | 📌 #6421 Part 6/10: Handover + camera manager counterparts |  | — | [changes](https://github.com/isaac-sim/IsaacLab/pull/6421/changes/b31b04eaf71..0cae3d87be4) | | #6410 Part 7/10: Environment overview docs |  | #6421 | [changes](https://github.com/isaac-sim/IsaacLab/pull/6410/changes/b50ac8906fc..af259c0778d) | | #6415 Part 9/10: Benchmark success-rate utilities |  | #6421 | [changes](https://github.com/isaac-sim/IsaacLab/pull/6415/changes/b50ac8906fc..c7f2f019d8b) | | #6582 Part 10/10: Warp variants → experimental (draft; merges last) |  | — | [changes](https://github.com/isaac-sim/IsaacLab/pull/6582/changes/d29afc75e71..167c28578b3) | | #6324 [DO-NOT-MERGE] Lumped validation reference |  | ALL | — | ## Summary Completes manager coverage of the dexterous task families by adding manager-based counterparts for the Shadow handover and Shadow camera reorientation tasks. - **2 manager tasks** added: `Isaac-Shadow-Handover` and `Isaac-Reorient-Cube-Shadow-Camera`. - **The last 2 `-Play` registrations** in `isaaclab_tasks` are removed. ## 1. Handover manager counterpart The fused handover reward became a plain reward term, with success and goal-distance bookkeeping moved to `HandoverCommand`, which owns the goal. It reports `Metrics/success_rate` as a per-episode bit, matching the handover Direct environment. `HandoverCommand.command` builds its pose per call rather than returning a persistent buffer, so consumers that store it across steps are not aliased to live data. The task keeps no observation, reset or event code of its own. Every observation is a framework term or a reorientation one: fingertip pose is `body_pose_w`, the object block is the root pose, root velocities, the generated command and the reorientation goal-quaternion difference, and only the fingertip velocity stays task-local because the framework has no `body_vel_w`. Both hands reset through the reorientation hand reset, one term per hand. The object and goal block was previously observed once per agent with identical values, so a single copy now carries the same information. `presets=randomized` adds the domain-randomization terms to the reset, matching how the reorientation manager tasks expose theirs. The reset and action observations use the framework terms rather than task-local ones, following Part 5: the object resets through `reset_root_state_with_random_orientation` and both hands observe `last_action`, leaving only the two-hand joint and PD-target reset task-local. This samples the object's reset orientation uniformly over SO(3) where the Direct task composes X/Y rotations, and reports zero actions on the reset step where the Direct task reports the pre-reset action. ## 2. Camera manager counterpart The camera task runs on PhysX by default: the RTX render modalities require Fabric cloning, which Newton does not support, so the inherited default could not render. Newton remains selectable with `physics=newton_mjwarp` for the state-only observation groups. The feature-extractor observation term ignored its declared `feature_extractor_cfg` parameter and read the environment configuration instead; it now honours the parameter. ## 3. Camera playback moves to `play_mode` `Isaac-Reorient-Cube-Shadow-Camera-Play` and `-Camera-Direct-Play` were the last `-Play` registrations left in `isaaclab_tasks`; every other task moved to `play_mode` in #6676 — Remove the _PLAY configs. Their playback environment count and inference feature extractor now live in `play_mode` overrides on the manager and Direct camera configurations. The override mutates the feature extractor rather than replacing it. Replacing the object resets every field the caller does not name, which silently re-enabled the CNN in `ShadowHandCameraBenchmarkEnvCfg` — a configuration whose entire purpose is to disable it. ## 4. Reorientation action configuration The action term is named through a module path, so loading a task configuration no longer imports the USD bindings. ## Validation Trained at 4096 environments, 1500 iterations, seed 42, on one L40 (`jichuanh-autorun-8gpu`). Success rate is logged per reset batch, so the figures below are the mean and range over the final eight batches rather than a single value. | Task | Backend | Success rate | Range | |---|---|---|---| | `Isaac-Shadow-Handover` (manager) | `newton_mjwarp` | 0.756 | 0.745 - 0.779 | | `Isaac-Shadow-Handover-Direct` (reference) | `newton_mjwarp` | 0.697 | 0.563 - 0.875 | | `Isaac-Shadow-Handover` (manager) | `isaacsim_physx` | 0.999 | 0.992 - 1.000 | The manager task matches the Direct reference it replaces on the same backend. The spread between backends is a pre-existing property of the Newton Shadow Hand actuation, not something this pull request introduces; it is tracked separately. `Isaac-Reorient-Cube-Shadow-Camera` was smoke-tested rather than trained to convergence: 300 iterations at 256 environments through the Kit renderer completes cleanly. Its rendering matrix and golden images are covered separately. `presets=randomized` converges more slowly than the default and does not plateau within 1500 iterations. A longer run is in progress to set an appropriate iteration budget.
Description
This PR removes the
_PLAYenvironment-configuration design. Previously, most tasks shipped a*EnvCfg_PLAYsubclass registered under a separate-Playgym id, duplicating the same handful ofinference tweaks (fewer environments, no observation corruption, terrain shrink, no push events)
across ~75 classes and polluting the task registry with ~55 extra ids.
Play-mode overrides are now a
play_post_init()method on the environment configuration, appliedautomatically by the play scripts:
ManagerBasedRLEnvCfg,DirectRLEnvCfg, andDirectMARLEnvCfgcollect thesettings that were duplicated across nearly every
_PLAYconfig: capscene.num_envsat 50 anddisable observation corruption/noise.
play_post_init()on its trainingconfig and calling
super().play_post_init()to keep the shared defaults. Inheritance dedupesfamily-wide behavior — e.g. the locomotion-velocity base config defines the terrain-shrink and
push-event removal once for all velocity tasks; per-robot overrides keep only genuinely unique
settings (command ranges, episode length, special env counts).
task and pass
play_mode=Truethroughregister_task()/resolve_task_config()/hydra_task_config(). The overrides are applied after preset resolution and before user scalaroverrides, so CLI values (
--num_envs,env.foo=bar) still win.--train_env_cfgflag on the play entrypoints skips theplay-mode overrides entirely and plays the exact training configuration.
Migration
play.py:--task Isaac-Velocity-Rough-H1instead of--task Isaac-Velocity-Rough-H1-Play.-Play/-Play-v0ids passed to the play entrypoints are redirected to the training idwith a
FutureWarning(resolve_play_task_name). Externally registered-Playtasks are leftuntouched.
*_PLAYclass should instantiate the training config and callplay_post_init()on it (see the updatedpolicy_inference_in_usd.pytutorial andh1_locomotion.pydemo).Notable behavior changes
_PLAYconfig(opt out with
--train_env_cfgor--num_envs). Training behavior is unchanged everywhere.velocity command); Cassie and Spot play now also remove push events, converging on the family
behavior.
they remain registered tasks renamed without the
-Playsuffix(
IsaacContrib-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor-{Joint-Position,RmpFlow}).Rizon4sGearAssemblyROSInferenceEnvCfg.play_post_init(); the deployment docs were updatedaccordingly.
play_rlinfis not wired for play mode: it parses arguments before any task registry exists andits tasks never had
-Playvariants.Testing
play_post_init()instantiated and applied on all 149 registered task configs — zero failures.-Play/-Play-v0redirect behavior (test_entrypoints_common.py) andplay_modeplumbing inregister_task(test_hydra.py).test_hydra.py+test_entrypoints_common.py(97),test_checkpoint_manifest.py(5),
test_typed_preset_cli_train_play.py(8),tools/test/test_environ_docs.py(19).docs/source/overview/environments.rstregenerated (144 training environments) and verified withtools/update_environments_rst.py --check../isaaclab.sh -fpasses all hooks.Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there