Repository navigation
CI only for upstream Isaac Lab PR 9194 - #15
Draft
pdherasciec wants to merge 60 commits into
Draft
pdherasciec wants to merge 60 commits into
pdherasciec wants to merge 60 commits into
Conversation
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
…9214) ## Motivation isaac-sim#9193 added a public option, `final_obs_every_step`, to the configs of the manager-based, direct and multi-agent environments. Only SuperMimic uses it: its learned dynamics needed every environment to capture the physical successor on every step, before resets and interval events. That is a public API change to every environment type for a single learner, and it hasn't shipped yet. This PR reverts it before 3.1 is released. ## Change The revert is possible because of `rsl-rl-lib-extras` 6.0.0.2 (leggedrobotics/rsl_rl#308). Learned dynamics there follows the same contract as SAC: the successors of finished episodes come from the regular `extras["final_obs"]`, and the others from the returned observations. The environments go back to their state before isaac-sim#9193, the SuperMimic runner config enables `compute_final_obs` instead of the removed option, and the dependency moves to 6.0.0.2. ## Effect on training Training is unaffected. Resets are handled as before, and replay windows still stop at dones. Command updates only change goal observations, not the `state` and `labels` groups the world model learns from. So the only difference is that physical interval edits such as pushes now enter the world model's targets, about one transition in 600 in G1 motion tracking. On `Isaac-Motion-Tracking-G1` (Newton, default environment count, one L40S per run, 3 seeds × 60 minutes per recipe), training with and without every-step capture gave the same results: episode reward 12.1 ± 0.4 without vs 11.7 ± 0.3 with it for the SuperMimic recipe, and 13.8 ± 0.2 vs 13.5 ± 0.7 for the BlinkMimic recipe, with the same world-model error. ## Viewer-reset fix Since SuperMimic now relies on `final_obs`, this also fixes a gap that affected SAC: a reset requested from the viewer on a step without an automatic reset ended episodes without capturing their final observations. The three environment types now capture them in that case too. ## Testing To train: ``` uv run isaaclab train --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \ --agent rsl_rl_supermimic_cfg_entry_point presets=state_obs ``` On one RTX 6000 Ada with 1024 environments, the reward rose from 0.17 to 7.4 in under 8 minutes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…im#9209) # Description The OvPhysX guide still says deformables should be used only for small validation scenes and that workloads with thousands of environments are unsupported. This predates the compiled-stage cache opt-out in isaac-sim#9167, which validated initialization and reset of 2,048 Franka cloth environments on the pinned OvPhysX 0.8 runtime. Remove that obsolete workload-size restriction and link to the existing compiled-stage cache guidance. Keep the implementation-backed limitations: uniform simulation-node counts per deformable view, full-stage materialization, and no heterogeneous native fast-path cloning. The determinism caveat also remains unchanged because end-to-end reproducibility is still unverified. ## Type of change - Documentation update ## Validation - Checked current upstream main (`d7df24ffb`) and the pinned OvPhysX `0.8.0.43443703471` integration. - Confirmed the scale claim against the recorded 2,048-environment validation in isaac-sim#9167; no new GPU run performed. - Passed repository-wide formatting and lint checks: `ISAACLAB_CHANGELOG_BASE_REF=upstream/main uv run --no-sync isaaclab --format`. - Passed `git diff --check` and skill validation (24 skills). - No source packages or tests changed; no changelog fragment required. Full documentation build not run. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings in the completed checks - [x] Validation matches the documentation-only scope; no tests changed - [x] No source packages changed, so no package changelog fragment is required - [x] My name already exists in CONTRIBUTORS.md
# Description This automated draft updates CI to the current image from the configured Isaac Sim stream. | Field | Value | |---|---| | Image | `nvcr.io/0947644777160149/internal/isaac-sim` | | Moving tag | `latest-release-6-3` | | Current pin | `latest-release-6-3@sha256:8b1c4ae94025cbeea9a34e17505f3e200664dd079f8178415b03951a12c2aae2` | | Candidate pin | `latest-release-6-3@sha256:e0cdf02b4176f8de8b354cfa3a77636efdee5e575844daadb0b52ff751f882fb` | Source: https://registry.ngc.nvidia.com/orgs/0947644777160149/teams/internal/containers/isaac-sim/tags New PRs are opened as drafts so maintainers can merge after the CI results are acceptable. ## Type of change - Infrastructure update ## Screenshots Not applicable. ## Checklist Docker and GPU tests run on demand. This workflow comments `run-ci` after opening the pull request or updating its commit. - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] 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 Co-authored-by: isaaclab-bot[bot] <282401363+isaaclab-bot[bot]@users.noreply.github.com>
…m#9208) # Description The velocity tasks' `newton_kamino` preset (`RoughPhysicsCfg` in `core/velocity/velocity_env_cfg.py`) runs Kamino's dense P-ADMM solver. On the humanoids this makes training impractically slow. On L40s, `Isaac-Velocity-Rough-G1` at 4,096 envs takes 48.8 s per training iteration against 1.0 s with MjWarp, so its 5,000 iterations would take about 68 h. This PR switches the preset to Kamino's SCC solver with sparse Jacobian and dynamics and the `LLTBRCM` bilateral solver: ```python newton_kamino = NewtonCfg( solver_cfg=KaminoSCCSolverCfg( max_contacts_per_world=64, sparse_jacobian=True, sparse_dynamics=True, dynamics_solver_cfg=KaminoSCCCfg(bilateral_solver_type="LLTBRCM"), ) ) ``` It changes no solver code, and the Newton pin is unchanged. ## Why P-ADMM is slow here Profiled with G1 Rough, 4,096 envs, on an L40: - **The physics step is the whole cost.** It takes 527 ms on Kamino P-ADMM, against about 2 ms on MjWarp. In maximal coordinates G1 has up to 524 constraint rows per world. - **Two kernels take 89% of the GPU time:** - `llt_blocked_solve`, at 48%, runs on each of the up to 100 P-ADMM iterations. - `_build_delassus_elementwise_dense`, at 41%, loops over all 44 bodies for each of about 137k matrix elements per world. - **About half of the G1 worlds don't converge within 100 iterations.** So `use_graph_conditionals=True` or a looser tolerance (1e-3, 1e-2) leaves the step time unchanged. - **Sparse P-ADMM is 25× slower still.** With SCC, sparse dynamics and `LLTB`, the blocked Cholesky still takes 37% of the step. `LLTBRCM` removes that hotspot: no kernel takes more than 10%. Fewer SCC iterations or a lower contact cap change the step by under 2%, so the PR leaves both at their defaults. ## Validation ### How it was measured - **Hardware.** RTX PRO 6000 Blackwell Max-Q, driver 595, Ubuntu, 4,096 envs everywhere. - **Revisions.** - **Candidate:** this PR on `main` at 4653f04. - **P-ADMM baseline:** the same checkout, with the solver set back to the old preset's `KaminoPADMMSolverCfg(max_contacts_per_world=64)` at run time. - **G1 rows marked "at 892354c":** an earlier checkout at 892354c. It pins the same Newton (`d31603ff`), and uses `KaminoDVISolverCfg`, the name `KaminoSCCSolverCfg` had before isaac-sim#9104. - Installed with `uv sync --frozen --extra rsl-rl`. - **Step time.** A small script builds the task with `resolve_task_config` and `gym.make(task, cfg=env_cfg)` (hydra override `physics=newton_kamino` or `physics=newton_mjwarp`). It steps with zero actions: 5 warm-up `env.step` calls, then 10 timed calls between `torch.cuda.synchronize()` calls (5 warm-up and 3 timed for the slow P-ADMM baselines). - **Per physics step** = env-step time / (`decimation` × `num_substeps`). All these tasks have `decimation=4`. The Kamino preset uses 1 substep and the MjWarp preset 2, so a control step is 4 Kamino physics steps against 8 MjWarp physics steps. - **Per environment step** is the whole `env.step` time. Because of the different substep counts, it is the fair Kamino-vs-MjWarp comparison. - The kernel breakdown above comes from `torch.profiler` (CUDA activity only) over 3 env steps. - **Training.** For each task: ```bash python scripts/benchmarks/training.py --rl_library rsl_rl --task Isaac-Velocity-Rough-<Robot> --seed 42 \ --benchmark_formatter schema --max_iterations 300 --output_path <dir> physics=<newton_kamino|newton_mjwarp> ``` Iteration time is the steady-state value rsl_rl prints. The first iteration, which includes warp compilation and CUDA graph capture, is excluded. **Physics step time.** | Task (Rough) | P-ADMM, ms per physics step | This PR, ms per physics step | Faster by | Env step: this PR vs MjWarp | |---|---|---|---|---| | G1 | 377 (at 892354c, same Newton pin) | 8.05 | 47× | 32.2 vs 15.3 ms | | G1-29DoF | — | 8.41 | | 33.7 vs 19.8 ms | | H1 | 61.4 | 4.29 | 14× | 17.2 vs 12.6 ms | | H2 | — | 6.59 | | 26.4 vs 16.9 ms | | AnymalD | 29.1 | 7.21 | 4.0× | 28.8 vs 9.5 ms | | UnitreeGo2 | 31.3 | 6.96 | 4.5× | 27.9 vs 55.7 ms | | Cassie | — | 3.42 | | 13.7 vs 11.4 ms | On an L40, G1 drops from 527 ms to 12.1 ms per physics step (43× faster). **Training.** `scripts/benchmarks/training.py`, rsl_rl, seed 42, 300 iterations. There was no NaN in any run. | Task | Physics | Iteration time | Episode length at 100 / 200 / 300 | Mean reward at 300 | |---|---|---|---|---| | G1 (at 892354c) | P-ADMM (before) | 36.4 s | — | — | | G1 (at 892354c) | **this PR** | **0.92 s** | 77 / 428 / 700 | — | | G1 (at 892354c) | MjWarp | 0.51 s | 65 / 724 / 939 | — | | H1 | **this PR** | **0.55 s** | 615 / 986 / 958 | 8.1 | | H1 | MjWarp | 0.42 s | 597 / 1000 / 942 | 10.4 | | AnymalD | **this PR** | **0.84 s** | 449 / 611 / 765 | 13.2 | | AnymalD | MjWarp | 0.36 s | 414 / 633 / 821 | 14.2 | - **H1 and AnymalD** learn at the same pace as on MjWarp. - **G1** learns to walk, somewhat behind MjWarp at 300 iterations; its velocity tracking at 300 is 0.42 against 0.57. Full-length policies were not compared. **Tests.** `source/isaaclab_tasks/test/core/test_hydra.py` and `test_env_cfg_no_forbidden_imports.py` pass (134 passed). Ruff 0.14.10 (`format --check` and `check`) passes on the changed file. **Related.** - [newton-physics/newton#5301](newton-physics/newton#5301) speeds up SCC further and makes `LLTBRCM` Newton's default. The current pin (`d31603ff`) predates it. A later Newton bump would make the explicit `bilateral_solver_type` redundant but harmless. - The P-ADMM convergence and Delassus-build findings are relevant to [newton-physics/newton#3032](newton-physics/newton#3032). ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Description Lidar hit overlay in Newton GL and Viser is now opt-in. A dense scan is expensive to copy to the host and upload every visualizer step, so the previous every-tenth-step upload is gone. The overlay is off by default. Enable it at launch with `NewtonGLBackendCfg.show_lidar_hits` or `ViserBackendCfg.show_lidar_hits`, or at runtime from the Newton HUD / Viser Visualization Markers checkbox. Turning it off hides the last batch. Kit keeps its existing debug-draw path and has no checkbox. ## Type of change - New feature (non-breaking change which adds functionality) ## Screenshots https://github.com/user-attachments/assets/bec59e4f-96d5-4dfa-a506-7ec362f708a8 ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [ ] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Kelly Guo <kellyg@nvidia.com>
…tasks by default (isaac-sim#9219) ## Summary `isaaclab train --task Isaac-Cartpole-MDP2` without `--rl_library` picks the task's registered RL library again, and the Reach curriculum test now fails if the curriculum writes to the wrong reward weight. Follow-up to isaac-sim#9159 (MDP2 variants of 13 experimental tasks). # Description | # | Area | Now | |---|---|---| | 1 | `isaaclab_rl` default library | `_resolve_default_library` also imports `isaaclab_tasks_experimental` when it is installed, where isaac-sim#9159 placed the `-MDP2` tasks. | | 2 | Reach curriculum test | Compares the whole reward-weight tensor and adds a case with `joint_vel` disabled. An unguarded write through index -1 then puts that weight into the last active reward column (`action_magnitude`). | Validation (desk, RTX PRO 6000 Blackwell, `physics=newton_mjwarp`): - Dispatch tests in `test_entrypoints.py`: 2 passed; with `dispatch.py` at `main`, the new test fails. - Reach curriculum test: 3 passed; with the kernel's `>= 0` guards removed, `[joint_vel]` fails. - `isaaclab train --task Isaac-Cartpole-MDP2 physics=newton_mjwarp --num_envs 64 --max_iterations 2`, no `--rl_library`: selects `rsl_rl`, trains, exits 0. Suggested reviewers: `ooctipus`, `kellyguo11` (reviewed isaac-sim#9159). ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots Not applicable. ## 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 `uv run isaaclab --format` - [x] No documentation change is needed (a bug fix and a test change) - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Description Restore the **Release backport** section ahead of the upcoming release branch cutoff so contributors can request backports after their PRs merge into `main`. Reuse the existing `<!-- backport-active-release -->` checkbox marker recognized by the backport workflow. Keep the option unchecked by default and refer to the active release branch so the template follows the configured release target. ## Type of change - Documentation update ## Validation - All repository pre-commit hooks passed: `uv run --no-project --with pre-commit python -m pre_commit run --all-files`. - Verified the existing backport parser ignores the unchecked template option and recognizes both `[x]` and `[X]` selections. - `git diff --check` passed. `uv run isaaclab --format` could not run because the project lockfile supports Linux and Windows, excluding this macOS host; the same pre-commit hooks were run directly through uv instead. No source packages are changed, so no package changelog fragment is required.
isaac-sim#9145 serialized standalone smoke tests, increasing non-Kit test execution from roughly 7 minutes to 20 minutes. Restore four pytest workers within the existing CI job slot budgets. Runner counts, launch cases, assertions, and timeouts stay unchanged. Kit smoke-test children use a test-only bootstrap that flushes Python and native stdout/stderr instead of Isaac Sim 6.3's global `fflush(NULL)`, which was observed hanging on an unrelated native file lock. Normal app cleanup still runs. Production launchers and simulator code are unchanged; no new tests are added. Validation on `005a4d524`: - Full formatting/lint, changelog, and whitespace checks passed. - [Full GPU CI passed](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/1). - Kit: 19 passed / 2 skipped in 4m32s; [repeat passed in 4m34s](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/2). - Non-Kit: 23 passed / 3 skipped in 10m27s; [repeat passed in 9m11s](https://github.com/isaac-sim/IsaacLab/actions/runs/45684084621/attempts/3). - No timeout or crash occurred in either standalone group across those runs. Times above measure test execution, excluding job setup. Native RTX destruction remains slow for H1/NIST under concurrent load: they reached 292s/288s in the first run and 275s/283s in the repeat, against the unchanged 300s limit. The green runs demonstrate that the test-only bootstrap works, but the native teardown delay remains a timeout-margin risk. This PR does not claim to fix that separate native delay.
## Description Add `release/3.1.0` to the Sphinx branch allowlist and the multi-version docs deployment workflow so it is included in built documentation versions. Update the workflow comment to describe the selected branches. ## Type of change - Documentation update ## Validation - Passed all repository formatting and lint checks: `uv run --no-sync isaaclab --format`. - Confirmed the Sphinx and CI allowlists match, include `main`, `develop`, and `release/3.1.0`, and exclude other release branches and similar names. - Confirmed the upstream `release/3.1.0` branch exists. - Full documentation build left to CI. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the pre-commit checks. - [x] I have made corresponding changes to the documentation configuration. - [x] I have validated the changed behavior with focused coverage. - Changelog fragment and test changes are not applicable to this docs configuration change.
…sim#9225) # Description On Windows, `scripts/neural/train.py` failed at the first optimizer step: ``` torch._inductor.exc.TritonMissing: Cannot find a working triton installation. ``` `torch.compile` needs Triton to generate CUDA code, and PyTorch installs Triton on Linux only. The training script compiled the loss on any CUDA device, and the `newton_nerd` and `newton_mjwarp_nerd` physics presets compiled the model step the same way, so policy training and playback on a model failed on Windows too. This change makes the default depend on whether Triton is installed: - `isaaclab_neural.nerd.default_compile(device)` returns `True` on CUDA where Triton is installed. Where it is missing, it returns `False` and logs a warning that the model runs without `torch.compile`. - `scripts/neural/train.py` uses it for the loss and for the rollouts of the validation report. - `NeRDSolver` and `MJWarpNeRDSolver` use it when `compile` is left at `None`. An explicit `compile=True` or `compile=False` is passed through unchanged. Without `torch.compile` the model is slower and otherwise equivalent. Behavior on Linux does not change. The how-to and the `compile` field docstrings describe the new default. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## How this was tested This was not run on Windows. The missing Triton was reproduced on Linux with a CUDA device by making `import triton` fail (`sys.modules["triton"] = None`). On `main` this gives the same `TritonMissing` error at the same line of `newton_neural` as on Windows. | Entry point | `main`, Triton hidden | This branch, Triton hidden | | --- | --- | --- | | `train.py --task Isaac-Reach-Franka` | `TritonMissing` | Trains, saves and reports | | `Isaac-Reach-Franka physics=newton_nerd`, 60 steps | `TritonMissing` | Steps, `compiled=False`, finite observations | | `Isaac-Reorient-Cube-Allegro physics=newton_mjwarp_nerd`, 60 steps | `TritonMissing` | Steps, `compiled=False`, finite observations | With Triton present, `train.py` still compiles the loss. Three regression tests hide Triton the same way, one per entry point. Each fails with the fix disabled and passes with it: - `scripts/neural/test/test_nerd_train.py::test_training_without_triton` - `source/isaaclab_tasks/test/neural/test_nerd_solver.py::test_nerd_task_without_triton` - `source/isaaclab_tasks/test/neural/test_mjwarp_nerd_solver.py::test_free_motion_task_without_triton` `test_nerd_train.py` now records its dataset once per module, so the new test adds no second recording. Not tested: a real Windows run. Only the `torch.compile` failure is addressed here; any other Windows-specific issue further along the workflow would not have shown up on Linux. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…-sim#9224) # Description The neural robot dynamics how-to used the NeRD acronym (`NeRDCfg`, `NeRDTrainingCfg`) without ever naming it, and went from one sentence straight into configuration details. This change: - Names the acronym in the page title and in the how-to index entry, and defines it on first use. - Adds "When to train on a model": what a model speeds up, when it is a good fit, and the tradeoffs to expect. - Adds "What the model replaces": a model replaces the dynamics solve of one robot, not the renderer or the rest of the simulation, and how that differs between `physics=newton_nerd` and `physics=newton_mjwarp_nerd`. Documentation only; no behavior changes. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes (not applicable: no behavior or test changes) - [ ] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (not applicable: no source package is touched) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Removes lidar hit drawing from the Kit visualizer because OvRTX lidars cannot run with Kit. Lidar hits can be viewed in the Newton GL and Viser visualizers. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…ing guide (isaac-sim#9155) # Description Follow-up to isaac-sim#7776. Verifying the RLinf VLA post-training guide end to end turned up two defects in the `isaaclab_rl` RLinf entry points and several problems in the guide itself. This PR fixes them and removes the remaining references to personal Hugging Face checkpoints. **Entry point fixes (`isaaclab_rl`)** - `isaaclab play --rl_library rlinf --checkpoint latest|best` never found a checkpoint. Playback looked up run manifests with `env.eval.init_params.id`, while training records `env.train.init_params.id`. All three shipped recipes use a distinct `...-Eval` id for evaluation, so the lookup always failed with `No compatible manifested run with a checkpoint was found`. Playback now resolves the selector against the training id, matching `train_rlinf.py`; an explicit `--task` still takes precedence. - A relative `--config_path` failed with `initialize_config_dir() requires an absolute config_dir as input`. The path is now resolved to an absolute directory before Hydra is initialized. - The launch test is now a train → play round trip with a relative config directory: training writes the run manifest, and playback resolves `latest` through it although the recipe's eval task id differs from its training id. Reverting either fix, or making training record the eval id, turns the test red with the original errors. **Documentation (`rlinf_vla_posttraining.rst`)** - Remove the paragraph that pointed at the task author's personal checkpoint repositories. - Move the `assemble_trocar` `hf download` from the prerequisites into a new "Assemble Trocar checkpoint" subsection after the Step 2 dependency pins, and run it with `uv run --no-sync`. With the lockfile's `huggingface-hub` 1.x and `typer` 0.27, `hf` downloads the files but exits non-zero with a `click.exceptions.Exit` traceback; any `huggingface-hub` < 1.0 works. The Step 2 floor is raised to `>=0.34`, the first release that ships the `hf` CLI. - Add `Environments/Grid` to the local-mirror subtree list; the default `GroundPlaneCfg` USD is loaded from there. - Mark flash-attn as optional for GR00T N1.7, which falls back to PyTorch SDPA attention with a warning when the package is missing (building it needs a CUDA 13 `nvcc` to match the lockfile's torch). - Add `--no-sync` to the `uv run isaaclab ...` commands in "Key Files" so they do not re-sync the environment. No linked issue. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Screenshots Not applicable (CLI and documentation changes). ## Validation - `uv run python -m pytest source/isaaclab_rl/test/test_entrypoints.py` passes (the one skrl parser test was deselected locally because `skrl` is not installed in my environment). - Mutation checks: reverting the playback fix fails the new test with the manifest `ValueError`; reverting the config-path fix fails it with the Hydra `initialize_config_dir()` error; making training record the eval id fails it with the manifest `ValueError`. - `pre-commit` on the changed files, the changelog gate (`tools/changelog/cli.py check`), and a Sphinx render of the guide pass. - No GPU training or evaluation runs were performed for this PR; the code changes are confined to CLI argument handling. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run. Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again. - [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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Description The How-to Guides sidebar lists “Kitless XR teleoperation” and “Installing kitless XR” separately because they are the only pages registered in a hidden toctree on the guide-browser index. Remove that toctree and mark both Markdown wrappers as orphan pages, matching the other how-to guides. List both teleoperation and installation in the Teleoperation group of the searchable how-to guide browser, using the same entry structure as the other guides. Existing URLs, cross-links, and page content remain available. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - `uv run --no-sync isaaclab --format` — all repository formatting and lint checks passed. - Focused Sphinx/MyST HTML build using the real how-to index and XR includes — passed with no warnings. Verified both pages are generated, orphan metadata is applied, the how-to index has no child toctree, and both guide-browser entries and the installation cross-link remain. - `git diff --cached --check` — passed. - Full documentation build left to CI. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run --no-sync isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] Focused documentation validation generates no warnings - [x] I have validated the changed behavior with focused coverage; no test files changed - [x] No source packages changed; no changelog fragment required - [x] My name already exists in `CONTRIBUTORS.md`
## Description Evaluate pi0.5 on `IsaacContrib-TableTop-PickPlace-Franka` from merged isaac-sim#9165 with one command. The first run fetches a pinned OpenPI revision, prepares its separate Python 3.11 environment, anonymously downloads the joint-position checkpoint and starts inference. Subsequent runs reuse the caches. Evaluation shuts down its inference process on completion or interruption. The PR adds two scripts: the evaluator owns scene setup, trial scheduling and local process lifetime; the server entrypoint owns OpenPI model configuration and loading. There are no framework, task, asset or dependency-file changes. OpenPI's dependencies stay outside the Isaac Lab environment. Any idle world requests the next global task-family ID and resets to a fresh object count, category composition, assets and table. Each episode records its instruction, objects, mesh variants, table variant and success/timeout. Completed worlds discard their remaining action chunk and hold their reset arm pose with the gripper open. Every terminal result counts, including one-step episodes. The client uses the standard OpenPI WebSocket protocol, querying active worlds serially. No custom batch adapter is required. Camera updates follow the action chunk interval; both views are letterboxed to 224 × 224, and DROID gripper closure maps to the environment's binary command. ## Run With Isaac Lab installed on Linux and an NVIDIA GPU, git and uv available: ```bash uv run --with msgpack python scripts/large_models/pi05_evaluate.py --viz none ``` No manual OpenPI installation, server launch or Google login is required. The first run downloads the approximately 12.4 GB `gs://openpi-assets-simeval/pi05_droid_jointpos` checkpoint. Source/environment are cached under `~/.cache/isaaclab/pi05`; weights/tokenizer use `~/.cache/openpi` (`OPENPI_DATA_HOME` overrides it). Inference uses the first visible GPU without JAX preallocation; simulation and inference must fit in available GPU memory. Optional controls: - `--num_envs 4 --trials 2`: two trials per task family, distributed across four worlds. - `--policy-device 1`: select another inference GPU through `CUDA_VISIBLE_DEVICES`. - `--checkpoint /path/to/pi05_droid_jointpos`: reuse existing weights. - `--policy HOST:PORT`: use an existing standard OpenPI joint-position server and skip local setup. - `--tasks put_in_container`: select a task family. - `env.episode_length_s=10`: ordinary task configuration overrides. Reports go to a new timestamped directory under `logs/pi05`; `--output PATH` selects one explicitly. The action contract is seven absolute arm joint positions and gripper closure in [0, 1]. The standard velocity-action DROID checkpoint is incompatible. ## Validation - Started with an empty OpenPI checkout/environment cache: automatic fetch of revision `215abfb217dbac7d5f1273282331b9b1866c0479` and locked dependency installation succeeded. - Real pi0.5 inference completed both task families in two worlds with three-second episodes: two timeouts, 45 shared control steps, 90 trial steps and six standard policy requests. This checks integration, not policy performance. - That run used the published robot and scene configuration with no local asset overrides. Existing checkpoint and asset caches were reused; the full 12.4 GB model was not downloaded again. - Separately verified anonymous download of checkpoint normalization assets into a fresh cache, including recursive directory download and cache reuse. - Verified cached environment startup, interruption cleanup and propagation of server startup failure for a missing checkpoint. No inference process remains after exit. - Scheduler checks cover global family scheduling, fresh instructions, one-step episodes, completion within a chunk, idle holds, row ordering, gripper signs and exact step accounting. Reply guards reject short chunks, wrong width/rank, NaNs and server errors. - CLI help, full repository formatting/lint and changelog checks pass. No new simulation tests were added. ## Type of change - New example scripts ## Checklist - [x] Follow contribution guidelines - [x] Run formatting and lint checks - [x] Document setup and usage in the scripts - [x] Validate real inference, lifecycle and scheduling locally - [x] No source-package changes requiring a changelog fragment --------- Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
# Description **MDP2 Part 2** is the second update of MDP2 (isaac-sim#9016). It collects two lines of work: - the MDP2 features prototyped for [Isaac Lab Arena](https://github.com/isaac-sim/IsaacLab-Arena) in isaac-sim#9091, without its pick-and-place example; - the remaining follow-ups of isaac-sim#9016. The theme is **training in many ways from one compiled MDP**. Tasks are built from tasks, values and switches change per world while the CUDA graphs keep replaying, and policies see a named interface. Tasks that use none of this compile to **byte-identical MDP kernels**, and every MDP2 task now steps **15 to 34 µs faster than on `main`**, because the env keeps its episode logs in one generated kernel. Resets from a bank of states are developed separately in isaac-sim#9112. **Contents** 1. [Tasks made of tasks](#1-tasks-made-of-tasks): `compose`, `sequence`, `split`, `choice`, progress 2. [Changing a task while it trains](#2-changing-a-task-while-it-trains): `Tunable`, `when`, `update_task`, variations 3. [Actions](#3-actions): name slots, actions in stages, control rate 4. [Using a part twice](#4-using-a-part-twice): `rename` 5. [The policy interface](#5-the-policy-interface): `spec`, masks 6. [Evaluation, from Arena](#6-evaluation-from-arena): episode budget, records, cameras, `resting_on` 7. [Any physics backend](#7-any-physics-backend): capture through the physics manager 8. [Performance](#performance) · [Breaking changes](#breaking-changes) · [Not in this PR](#not-in-this-pr) **At a glance** | You want to | Use | |---|---| | Build a task in steps, or from a scene, an embodiment and a task | `mdp2.sequence`, `mdp2.compose`, `mdp2.Milestone` | | Train different tasks in different worlds | `mdp2.split` (fixed worlds), `mdp2.choice` (drawn per episode) | | Read how far a task got | `mdp2.progress.<task>.done`, `.active`, `.score`, `.count`, ... | | Change a reward weight or a param during training | `mdp2.Tunable`, `env.tune(...)` | | Turn a term on or off per world | `when=<field>`, `when=mdp2.Tunable(True)` | | Edit the task of a running env | `env.update_task(task)` | | Randomize a value per episode, record it, replay it | `mdp.variation(..., mdp.Uniform / Choice / Replay)` | | Run an embedded controller once per control step | `rate=mdp2.ActionRate.CONTROL` | | Use one part for two robots | `mdp2.rename(part, robot="left_arm")` | | Know which policy column is what | `env.mdp.spec()`, `action_mask`, `observation_mask` | | Run a fixed number of evaluation episodes | `episode_budget`, `env.episode_records()` | --- ## 1. Tasks made of tasks A task can say when it is done, and it can hold named subtasks, which are tasks too. Four functions combine them: | Function | Subtasks run | The task is done when | |---|---|---| | `compose(a=..., b=..., require=k)` | together | `k` of them are (all by default) | | `sequence(a=..., b=...)` | one after another; the next starts the step after | the last is | | `split(a=..., b=..., worlds={"a": 3072, "b": 1024})` | each in its own worlds | the world's own is | | `choice(a=..., b=..., weights={"a": 3, "b": 1})` | one per episode and world, drawn at the reset | the drawn one is | ### Sequences ```python q = mdp2.quantities TASK = mdp2.compose( BASE, # observations, action rate, time limit mdp2.sequence( reach=mdp2.TaskCfg(rewards={"reach": ...}, done=q.near_object), grasp=mdp2.TaskCfg(rewards={"grasp": ...}, done=q.grasped, hold=3), lift=mdp2.Milestone(q.lifted, hold=10), # lifted for 10 steps in a row ), ) success = mdp2.Termination(mdp.is_true, inputs={"value": mdp2.progress.done}) ``` - **Done.** `done=` is a field of one value per world. `hold=n` asks for it on `n` steps in a row. - **Uses.** A task of a sequence runs its uses only while it is active, and they restart when it starts. - **Shared uses.** Uses that the tasks of a sequence define alike are one op, so a shared action-rate term or observation history carries on across stages. <!-- GIF: mdp2_sequence.gif --> *Recorded from 4,096 Cartpole worlds drifting along the rail. Each row is a world, each color the task it runs, and a gap is a reset.* ### Progress Every task's progress is a set of fields that any term can read: ```python mdp2.progress.done # the whole task mdp2.progress.grasp.done # a subtask; also .holding .active .score .done_at .started_at .stage .count ``` | Field | Meaning | |---|---| | `done` | done once, until the episode ends | | `holding` | its completion holds at this step | | `active` | it runs at this step | | `score` | in `[0, 1]`: its subtasks done, weighted by their `score=` | | `done_at`, `started_at` | episode step it was first done (-1 before) and last started | | `stage` | the subtask a sequence or a choice runs | | `count` | how often a task with `repeat=True` was done | ```python mdp2.Milestone(q.dropped, repeat=True) # counts drops: progress.dropped.count mdp2.Event(spawn_target, outputs={...}, mode=mdp2.EventMode.START) # writes the scene when its task starts ``` - **Names.** A subtask reads its own commands, quantities, term state, tunables and progress by name, as a task alone does. Inner names win. - **Logs.** `Progress/<task>` is the share of the last episodes in which each task was done. - **Reset order.** Reset events run before progress restarts, so a curriculum can read the milestones of the episode that ended. ### Splits and choices ```python TASK = mdp2.compose(BASE, mdp2.split(walk=WALK, stand=STAND, worlds={"walk": 3072, "stand": 1024})) TASK = mdp2.compose(BASE, mdp2.choice(walk=WALK, stand=STAND, weights={"walk": 3, "stand": 1})) ``` - **Split.** Each subtask runs in fixed worlds. A split may be a step of a sequence, and several splits divide the same worlds. - **Choice.** It draws one subtask per episode and world, which is multi-task training in one run. `progress.stage` is the drawn index, and `Progress/<task>` logs each task over the worlds that drew it. <!-- GIF: mdp2_choice.gif --> *The left grid is set by the config. The right grid is recorded: each cell is a world colored by its drawn task, and it redraws at every reset.* --- ## 2. Changing a task while it trains ### Tunable values ```python track = mdp2.Reward( mdp.track_lin_vel_xy_exp, ..., params={"std": mdp2.Tunable(0.5)}, weight=mdp2.Tunable(1.5), ) env.tune("rewards.track.weight", 3.0) # each world at its next reset env.tune("rewards.track.std", 0.25, worlds=slice(0, 2048), at="step") # from the next step ``` - **What it is.** A `Tunable` param is a field of one value per world. A `wp.func` gets its world's value, as for any param. A tunable weight is the reward's column of `state.reward_weights`. - **Reading and writing it.** Other terms read a param, and events write it, for example a curriculum: `mdp2.tunable("rewards.track", "std")`. - **No recapture.** `tune` writes in place, so the captured graphs keep replaying. - **When it applies.** With `at="reset"` (the default), the value waits in a pending copy that the reset kernel applies, so no episode mixes two values. Each value has its own pending bit, so a reset leaves values that events wrote alone. - **Revisions.** Each world counts the tunings that took effect in `state.revision`, and the episode records keep that count. <!-- GIF: mdp2_tune.gif --> *Recorded: one Cartpole run tunes the left half of the worlds at their next reset and the right half from the next step.* ### Switches ```python mdp2.Reward(..., when=mdp2.commands.standing) # runs where the mode command is positive mdp2.Reward(..., when=mdp2.Tunable(True)) # a switch per world env.tune("rewards.feet_air_time.when", False, worlds=eval_worlds) ``` - **Where it works.** `when=` takes any field, on a reward, termination, observation, command or interval event. - **Timing.** The field is read at the start of the step, the same rule as for stages. - **Off and on.** The use outputs zero while it is off, and it restarts where it turns on. ### Editing a running task ```python env.update_task(mdp2.compose(env.cfg.task, mdp2.TaskCfg(rewards={"new": ...}))) ``` - **What it does.** It builds the new MDP on the same scene, truncates the episodes (`truncate=True`), and captures again on the next step, which takes about a second. - **What carries over.** `mdp2.migrate(previous, previous_state, mdp, state)` keeps every array that both MDPs key alike: - term state, timers, histories, commands and progress; - random streams, by use; - values declared `Tunable`, with what waits for the reset, as they may have been tuned. - **What is new.** Other reward weights and params come from the new task, and init hooks run again for uses whose params changed. - **Without truncating.** `update_task(task, truncate=False)` lets the episodes go on, keeping the reward sums of the rewards both tasks have. Under an episode budget it raises, since a new task starts a new evaluation. ### Variations ```python DRAWER = mdp.variation("drawer", cabinet.joint_pos, cabinet.joints("drawer"), mdp.Uniform(0.0, 0.35)) task = mdp2.compose(SCENE, EMBODIMENT, TASK, DRAWER) # later: replay what a run recorded REPLAY = mdp.variation("drawer", cabinet.joint_pos, cabinet.joints("drawer"), mdp.Replay(records["drawer"].tolist())) ``` A variation is a reset event that writes the scene, plus a recorded quantity: | Values | Draw | |---|---| | `mdp.Uniform(low, high)` | uniform; `low` and `high` are tunable | | `mdp.Choice(values, weights)` | one of the values | | `mdp.Replay(values)` | in reset order, by world within a step, so a replay does not depend on `num_envs`; the row is recorded as `<name>_row` | --- ## 3. Actions ```python actions = { "wbc": mdp2.Action(g1_wbc_policy, outputs={"targets": robot.joint_pos_target}, rate=mdp2.ActionRate.CONTROL), "hand": mdp2.DirectAction(robot.joint_pos_target, subset=robot.joints(".*_hand_.*")), # every physics step } ``` - **Control rate.** `ActionRate.CONTROL` applies an action once per control step, for an embedded controller or IK, like MDP1's `process_actions`. The default applies it before every physics step. - **Without the env.** Call `mdp2.process_actions(mdp, state, actions)` once per control step, before `apply_actions`. - **Name slots.** Actions have name slots, as observations do: an action name gets one column range across world configs and stages. - **Actions in stages.** Tasks of a sequence may take actions of their own. - **Last actions.** The last action holds zero in the columns a world does not take, which replaces `MDP.narrow_action_dims`. --- ## 4. Using a part twice ```python TASK = mdp2.compose( left=mdp2.rename(ARM, robot="left_arm"), right=mdp2.rename(ARM, robot="right_arm"), ) # actions "left.effort", "right.effort"; observations "left.joint_pos", "right.joint_pos" ``` - **`rename`.** It rebinds the entities a part reads and writes. - **Running together.** Subtasks that run together get their own columns, named with the subtask's name. - **Taking turns.** Subtasks that take turns (a sequence, a choice, a split) share the columns of their name, as wide as the widest. --- ## 5. The policy interface ```python spec = env.mdp.spec() spec.actions[1].name, spec.actions[1].columns # "hand", its slice of the action spec.actions[1].labels # {"actions.hand": ("left_hand_0", ...)}: joint names per op spec.observations["policy"][0].labels # body or joint names, where the inputs name them env.mdp.action_mask(env.state) # (num_worlds, action_dim): columns each world takes now env.mdp.observation_mask(env.state, "policy") # (num_worlds, dim): columns each world writes now ``` Learners, policy servers and exporters can find a column by name instead of by offset. Both masks are Torch-only, so they can run inside a graph. --- ## 6. Evaluation, from Arena ```python cfg.episode_budget = 1000 # worlds stop starting episodes once 1000 have run env.reset() while env.episodes_completed < 1000: env.step(policy(obs)) records = env.episode_records() # columns: world, episode, length, terminated, <quantity>, progress/<task>, revision ``` ```python cameras = mdp2.ObservationGroup(terms={"rgb": mdp2.Observation(mdp.image_rgb, inputs={"image": camera.rgb})}, concatenate=False) on_target = mdp2.Quantity(mdp.resting_on, inputs={"normal_force_matrix_w": obj.normal_force_matrix_w, ...}, params={"filter_index": 0, "min_force": 0.1, "min_cos": 0.7, "max_speed": 0.003}) done = mdp2.Milestone(mdp2.quantities.on_target, hold=10) ``` - **Cameras.** They render inside the step's graph, and cameras that no term reads are not rendered. - **Uncombined groups.** `ObservationGroup(concatenate=False)` keeps a tensor per term, so `uint8` images stay as they are. - **Contact checks.** `mdp.resting_on` is Arena's `object_on_destination`: a contact force within a cone and a speed below a bound, held with `hold`. - **Records.** `Quantity(record=True)` (previously `log=True`) is logged and also recorded per episode. **Porting from Arena** | Arena | MDP2 | |---|---| | `CompletionCriteria`, `subtasks_are_sequential`, `K` | milestones in `sequence`, or `compose(require=K)` | | `desired_subtask_success_state`, `TrueForConsecutiveSteps` | `final=`, `hold=` | | tracked events | `repeat=True` | | run-time variations with JSONL records | `mdp.variation`, `episode_records()` | | configclass merging | `mdp2.compose`, `mdp2.rename` | --- ## 7. Any physics backend ```python manager = env.sim.backend_manager manager.supports_step_capture() # Newton: use_cuda_graph and a capturable solver graph = manager.capture(fn) # records as the backend records its own step env.sim.after_replay(num_steps) # host work of replayed physics steps: step count, sim time type(actuator).capturable # ActuatorBase flag; Newton-native actuators by is_graphable() ``` - **Capture.** `MDP2Env` no longer imports Newton's capture function. A backend that cannot capture its step runs the physics eagerly between the MDP's graphs. - **Actuators.** Delayed PD actuators draw the delays of reset worlds from a device stream, so replayed graphs draw new delays. The network actuators set `capturable = False` rather than inherit it from `DCMotor`. - **`verify_capture`.** Without reproducible physics, it compares the MDP alone, bitwise. These core changes are in their own commits, so they can be split out. --- ## Performance MDP time per step: `env.step` with the physics step replaced by a no-op, at 4,096 worlds, Newton MJWarp, RTX PRO 6000 Blackwell. Each value is the median of 5 warm runs, alternating with `main`. | Task | `main` | this PR | Δ | |---|---|---|---| | Cartpole | 74.9 µs | 41.0 µs | -33.9 | | Go2 flat | 80.0 µs | 63.6 µs | -16.4 | | Go2 walk/stand (split) | 80.2 µs | 65.5 µs | -14.7 | | Kuka Allegro lift | 234.4 µs | 212.4 µs | -22.0 | - **MDP kernels.** They are byte-identical to `main` for all four MDP2 tasks, checked on every commit by dumping the generated sources and the launch counts. - **Where the time went.** `MDP2RLEnv` kept its episode statistics with about 15 Torch operations per step, plus 2 per recorded quantity. Now one generated world-thread kernel keeps them, a row per logged column, and one sum per step gives `extras["log"]`. - **Learning.** A 40-iteration Cartpole RSL-RL run logs the same values as `main`. The logs match the old path to float rounding. - **Benchmarks.** About 1 in 7 runs, on `main` and on this branch alike, take twice as long because of the GPU. They are dropped as runs above 1.5× the fastest. **What the features cost, on Go2** | Variant | MDP time | vs plain | |---|---|---| | plain | 63.6 µs | | | every reward weight and tracking width `Tunable` | 63.6 µs | 0 | | all 10 rewards under `when=Tunable(True)` | 71.6 µs | +8.0 | | `when` on one observation | 65.6 µs | +2.0 (one more observe kernel) | | rewards in two stages of a sequence | 73.8 µs | +10.2 (+77 before this PR's fixes) | | the same rewards, shared by both stages | 67.6 µs | +4.0 | The staged cost is down from +77 µs for three reasons: - uses of every stage now run in the parent's scope; - progress is logged from the same kernel as the rest of the statistics; - staged uses that the stages define alike run as one op. ## Design notes A review of the whole design settled these choices: | Choice | Why | |---|---| | Uses that stages define alike run as one op | A history or action-rate term carries on across stages without hoisting it. The op compiles exactly as if hoisted. The cost: it logs under the first stage's name. | | One pending bit per tuned value | A reset applies only what was tuned, so values that events or curricula wrote stay. | | `update_task` keeps only `Tunable` values | Edited weights and params take effect; tuned ones survive. | | `when` tuned with `at="step"` switches one step later | Switches latch at the end of a step, the same rule as stages. | | Episode logs in an env kernel, not in the MDP's | MDP kernels stay identical to `main`; the log kernel costs about 3 µs. | Not built, because each needs a measured gain or a use case first: - `entered` flags only where read; - skipping `streak` and `score` where nothing reads them; - fusing the observation kernel that stages split off; - tunable choice weights; - a Warp `Replay`. --- ## Breaking changes ```python # Before # After cfg.task = [WALK, STAND] cfg.task = mdp2.split(walk=WALK, stand=STAND, cfg.task_worlds = [3072, 1024] worlds={"walk": 3072, "stand": 1024}) mdp2.Quantity(term, log=True) mdp2.Quantity(term, record=True) # logged and recorded mdp.interval_writes mdp.step_writes mdp.narrow_action_dims / (last_action, dim) one last_action, zero where not taken; MDP.action_mask ``` - **Columns.** Observation and action columns of world configs are allocated by name, rather than packed from the first column. - **Subtasks.** Two subtasks that run together get separate columns, and two that take turns share theirs. - **Episode budget.** `done` stays "terminated or truncated", and a separate mask selects the worlds that restart. - **Logs.** Without a time limit, `Episode_Reward/*` is per second of each episode, rather than 0. A choice's `Progress/<task>` averages over the finished episodes that drew the task. - **Merged uses.** A use that two stages define alike is one op, logged under the first stage's name, so `Episode_Reward/<second stage>.x` no longer exists. Give the uses different weights to keep them apart. --- ## Not in this PR | Item | Status | |---|---| | Resets from banks of states, resets from milestones | isaac-sim#9112 | | In-process scene rebuild (Arena build-time variants) | blocked: needs reliable `SimulationContext` teardown | | RTX cameras in MDP2 | blocked: Kit path; MDP2 stays Newton-only for now | | Newton assets for Arena's library | asset owners and Newton | | Material randomization without Newton internals, per-world gravity setter, asset-level state commit, refreshing only changed worlds of the model | core asset and Newton work | | Self-describing sensors (stage, rate, capturability), re-rendering only reset worlds | sensor API work | | Skipping compute in worlds whose budget is spent | deferred: a branch in every kernel for the tail of an evaluation | | Stacked inputs | dropped: built-in progress replaced the need | | Non-linear milestone graphs | no use case yet | **Known gaps** - **Camera workaround.** The Newton camera workaround (no renderer graphs, for the stale two-camera graph) lost its only test along with the example, and the upstream bug is still open. - **Overlap with isaac-sim#9112.** `lift_env_cfg.py` and `eager.py` also change in isaac-sim#9112. Here they only change `log=` to `record=` and pass default tunables to `init`. ## Type of change - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jichuan Hu <jichuanh@nvidia.com>
…aac-sim#9226) # Description On Windows and macOS, the loading screen hides startup output by replacing `sys.stdout` / `sys.stderr` with a temporary spool file (Linux redirects file descriptors instead and is unaffected). Any `logging.StreamHandler` created while the screen is up — e.g. by `ensure_console_handlers` or `configure_logging` — binds to that spool. Once startup finishes the spool is closed, so every later record fails with `ValueError: I/O operation on closed file` and Python prints a `--- Logging error ---` traceback. The run itself is unaffected. Seen running `examples/sensors/foveated_camera.py` on Windows, where the first record after startup was the Newton site view's `"Fabric runtime unavailable; Newton site poses will not be mirrored to prims."` INFO message. Fix: when `LoadingScreen._restore` puts the original streams back, it now repoints every logging stream handler that still writes to the spool at the matching real stream. `sys.stderr` is a thin alias of the spool during startup so handlers created on stderr go back to stderr rather than stdout. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## 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 `uv run isaaclab --format` (ruff check / format) - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes — added `test_restore_rebinds_log_handlers_created_during_stream_swapping`, which fails before the fix and passes after - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Antoine RICHARD <antoiner@nvidia.com>
…sim#9216) # Description Follow-up to isaac-sim#9131, which lets the OVRTX renderer split a camera sensor over several render products after a failed first frame. The review after the merge asked to treat the split as a temporary workaround for a renderer limit, and to keep it out of the public interface. This PR does that: - **No public setting.** `OVRTXRendererCfg.max_envs_per_render_product` is gone. The environment variable `ISAAC_LAB_OVRTX_MAX_ENVS_PER_RENDER_PRODUCT` takes its place, like the other internal OVRTX toggles. Unset, the search runs after a failed first frame. An integer skips the search, and `all` turns the split off. A variable is global, so the questions of one value per renderer configuration and of Hydra overrides disappear. Code that set `OVRTXRendererCfg.max_envs_per_render_product` gets a configuration error, and code that read `render_product_path`, `num_cols` or `num_rows` of `OVRTXCameraRenderData` gets an `AttributeError`. Neither was in a release. - **No deprecated properties.** `OVRTXCameraRenderData` is opaque to the caller, so `render_product_path`, `num_cols` and `num_rows` are removed. The changelog records the removal next to the pending deprecation entry, because the changelog gate does not allow changes to pending entries. - **Minimal docs.** The split is mentioned only in the known issue about the 4 GiB limit, in two sentences. The variable itself is not documented. The warning names it when a user needs it. - **Minimal comments.** The renderer keeps only the reasons that a maintainer needs, in one sentence each. Two TODO comments mark the workaround for removal once OVRTX renders a tiled image of any size. - **Messages for camera users.** The warnings, errors and the note on a failed frame speak of environments, image size, path-tracing samples per pixel, GPU memory and startup time, and they say what to set. - **Fewer tests.** The pure plan tests are one parametrized test, the two tests about a sensor removed during the search are one, and the test of the environment ranges is merged into the stitching test. - **A test with a real failed frame.** 4 environments of 1024 x 1024 pixels at 40 path-tracing samples per pixel with RTX anti-aliasing exceed the limit for real. The test checks that the error text of OVRTX still matches, that the search splits the sensor into 2 render products, and that every environment renders. It needs about 13 GB of GPU memory and skips on GPUs with less than 16 GiB. - **Lidar.** A lidar sensor renders all environments through one render product in its own step, so the split neither helps nor harms it. A lidar split would need its own retry loop, and nobody has reproduced the limit for a lidar yet. **Tests:** 228 CPU tests of the OVRTX renderer and 111 Newton visualizer tests pass. On the GPU, the real-failed-frame test, both rows of the split test and the five rows of the multiple-cameras test pass. The format check and the changelog check pass. ## Type of change - Removal of an unreleased setting and of unreleased deprecated properties, after the review of isaac-sim#9131 - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: pv-nvidia <197907000+pv-nvidia@users.noreply.github.com>
# Description Include the intrinsic skew coefficient when recovering the normalized camera ray for perspective-to-orthogonal depth conversion. Preserve the existing calculation for zero-skew cameras without introducing a matrix inverse or dependency. Fixes isaac-sim#9236. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - New batched regression failed on main and passed with the fix against an independent NumPy reference. - Full math test file: 123 passed, 3 skipped on CPU. - Changelog and diff checks passed. - Full formatting, GPU integration and simulator tests were not run. ## Checklist - [x] Read contribution guidelines. - [x] Added focused regression coverage and changelog fragment. - [x] Added contributor name. - [ ] Full formatting and integration checks. --------- Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
…saac-sim#9309) # Description After isaac-sim#9145 moved contributed camera tasks to standalone OVRTX, `test-contrib-environments` continued restoring only the Kit shader cache. Restore both cache trees, and add the existing Trocar and Cartpole Camera Showcase smoke-test nodes to the post-merge shader warmer to capture their task-specific shader variants. PR smoke-test selection and assertions are unchanged. Investigated while diagnosing slow contrib CI on isaac-sim#9217. Historical successful runs show Trocar increasing from about 50s to 361s and Cartpole Camera Showcase from 1.8s to 270s across the backend migration. The comparison below measures the consumer-side restore correction using the existing compatible cache. The expanded warmer has not yet published its additional task-specific shaders. ## Type of change - Bug fix (CI configuration) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - Full `ISAACLAB_CHANGELOG_BASE_REF=upstream/main uv run --no-sync isaaclab --format`: passed, including YAML, TOML, and changelog checks. - `git diff --check`: passed. - All 14 shader-warmer targets have matching test functions and included files; target IDs are unique. - Workflow tooling tests: 3 passed; 1 failed because macOS's Bash 3 does not support the existing `${command,,}` expression in the unchanged `run-docker-ci.yml` workflow. - GPU contrib CI passed: 43 Kitless, 3 Kit camera, and 5 Kit physics tests passed, with the same expected skips as the baseline. The log confirms a standalone shader-cache hit. - [Full Docker + Tests CI passed](https://github.com/isaac-sim/IsaacLab/actions/runs/46363860089) on attempt 2 at the same commit. The initial HDF5 file-lock failure and H1 standalone demo timeout passed on retry without code changes. All other PR checks are green; normal conditional skips remain. ## Observed CI timings Compare [baseline isaac-sim#9217](https://github.com/isaac-sim/IsaacLab/actions/runs/46358014690/job/141649462880) with [this PR](https://github.com/isaac-sim/IsaacLab/actions/runs/46363860089/job/141667427631). Both use the same standalone OVRTX version and compatible NVIDIA driver/GPU cache collection. These are separate CI runs rather than a controlled A/B benchmark. | Measurement | Baseline | This PR | Reduction | | --- | ---: | ---: | ---: | | All contrib test execution, excluding image pull and queue | 17m 11.91s | 13m 19.52s | 22.5% | | Kitless file wall time | 767.86s | 547.34s | 28.7% | | Assemble Trocar case | 342.59s | 79.41s | 76.8% | | Cartpole Camera Showcase case | 265.38s | 176.19s | 33.6% | PR test selection and assertions are unchanged. The cache grew by 155 MB beyond the restored snapshot, so additional shader compilation remains; the expanded post-merge warmer is intended to capture those task-specific variants. ## Checklist - [x] Read the contribution guidelines and applied the test-audit criteria to the warmer selection. - [x] Run the full formatting and lint checks. - [x] CI-only change; no source-package changelog or rendered documentation changes required.
# Description `euler_xyz_from_quat` returns angles in `(-pi, pi]` by default since isaac-sim#2365. `AssemblyEnv._apply_action()` and `DisassemblyEnv._apply_action()` compute the `curr_yaw` attribute with the Factory yaw mapping, which still assumes the former `[0, 2*pi)` range: yaws above 235 degrees are moved down by `2*pi`, so the span `[-125, 235]` degrees is not interrupted by the yaw joint limit. With signed input the mapping does nothing, and a yaw between 180 and 235 degrees comes out between -180 and -125 degrees. This PR requests `wrap_to_2pi=True` for these two calls, as isaac-sim#8804 did for FORGE. Nothing in the repository reads `curr_yaw` today, so there is no behavior change for the current tasks. The fix restores the attribute's intended range so that code reading it, such as a nut-thread style rotation check using `ee_success_yaw` from the AutoMate config, gets the expected value. Related: isaac-sim#8779, isaac-sim#8804 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - AutoMate Assembly runs with the change (PhysX), and `curr_yaw` stays in `[-125, 235]` degrees. - Searched the repository: nothing reads `curr_yaw`, so the current tasks are unaffected. - `uv run isaaclab --format` passed every hook, including the ruff hooks, the license headers and the changelog fragment check. - No new unit test. The changed calls live inside `DirectRLEnv` methods that need a simulated scene, so the only way to unit-test them would be to replay the production expression. ## 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 `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation (not applicable: no public API change) - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description `OVRTXRenderer` submitted every capture with a hardcoded `delta_time` of 1/60 s. OVRTX uses this delta for temporal effects such as motion blur and motion vectors, so any scene not rendering at 60 Hz produced temporal output that did not match the simulated time between frames. This passes `SimulationContext.get_rendering_dt()` to capture submissions on the synchronous `step`, the asynchronous `step_async`, and the OVStage `step(..., ordinal=...)` paths, and removes the `_RENDER_DELTA_TIME` constant. The transform-initialization step still submits a zero delta, as before. Fixes isaac-sim#6545 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - `test_ovrtx_renderer_contract.py` and `test_ovrtx_visual_material_sync.py`: 62 passed, 12 skipped with the fix. - The contract tests now use a fake rendering dt of 0.025 s and assert it reaches both the sync and async submissions; 8 of them fail on `main`. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the `pre-commit` checks - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: blessedefe4real <234967906+blessedefe4real@users.noreply.github.com> Co-authored-by: Kelly Guo <kellyg@nvidia.com> Co-authored-by: Alexander Temirov <atemirov@nvidia.com>
…sim#9311) # Description `euler_xyz_from_quat` returns angles in `(-pi, pi]` by default since isaac-sim#2365. `FactoryEnv._get_curr_successes(check_rot=True)`, the nut-thread rotation check (`wrap_yaw(curr_yaw) < ee_success_yaw`), still assumes the former `[0, 2*pi)` range: `factory_utils.wrap_yaw` moves yaws above 235 degrees down by `2*pi`, so the span `[-125, 235]` degrees is not interrupted by the yaw joint limit. With signed input this mapping does nothing, and a yaw between 180 and 235 degrees comes out between -180 and -125 degrees, so it counts as "rotated". isaac-sim#8804 fixed the same assumption in `ForgeEnv._apply_action()`. This PR requests `wrap_to_2pi=True` in the rotation check, and the `wrap_yaw` docstring now states the input range it expects. Factory NutThread cannot reach the affected interval: it starts near 105 degrees yaw and only rotates toward smaller yaw. FORGE NutThread can. Its yaw action is bounded to [-90, 180] degrees in the world frame, and commanding the 180-degree bound makes the hand overshoot to about 182 degrees. If the nut is also pressed down to the success height, the hand has turned the wrong way, yet the check counts it as success. FORGE uses this flag for its success-prediction reward and for the logged success rate. Related: isaac-sim#8779, isaac-sim#8804 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - Direct check of `FactoryEnv._get_curr_successes` on Factory and FORGE NutThread (PhysX). The nut is placed at the success pose and the hand yaw is swept from -120 to 235 degrees with roll at pi. - Before: success was reported for every yaw from 180 to 230 degrees. - After: success is reported only for yaw below `ee_success_yaw` (0 degrees). - Rollouts on FORGE NutThread (256 envs, isaac-sim#8804 applied as on `main`): - Pressing the nut down, then commanding the 180-degree yaw bound for the second half of the episode, gave 186 env-steps counted as success before this change and 0 after. The hand yaw reached up to 182 degrees. - Random, hold and other constant-yaw actions kept the yaw below 122 degrees, and both versions agreed on every step. - Rollouts on Factory NutThread under the same action policies: the yaw stayed between -67 and 120 degrees, and both versions agreed on every step. - `uv run isaaclab --format` passed every hook, including the ruff hooks, the license headers and the changelog fragment check. - No new unit test. The changed call lives inside a `DirectRLEnv` method that needs a simulated scene, so the only way to unit-test it would be to replay the production expression. ## 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 `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation (not applicable: no public API change) - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…ds (isaac-sim#9152) # Description [`FabricXformSelection`](https://github.com/isaac-sim/IsaacLab/blob/main/source/isaaclab/isaaclab/sim/views/fabric_xform_selection.py) tags each selected prim with Fabric index attributes, so that `SelectPrims` can find the view's prims and map Fabric order back to view order. The attribute names came from a per-instance counter, so every rebuild of a view over the same prims authored attributes with a new name. Fabric groups prims by their set of attributes (bucket type), so each rebuild added a bucket type, even though `close()` removed the old attributes. After enough rebuilds with PhysX Fabric GPU interop enabled, the Fabric hierarchy update (`xform_updateAll_kernel`) faults with a CUDA misaligned or illegal address, as reported in [isaac-sim#8672](isaac-sim#8672). This PR names the attributes after a digest of the ordered prim paths instead, as proposed in the [issue](isaac-sim#8672). A rebuilt view over the same prims reuses the same names, so its prims return to bucket types Fabric has already seen and the number of types stops growing. Views over different or differently ordered prims still get distinct names. Views over the same ordered prims write identical index values and share the attributes; a reference count per (stage, digest) keeps them until the last of those views closes. The underlying fault is in usdrt/Fabric; this change stops Isaac Lab from triggering it. Fixes isaac-sim#8672 ## Validation | Scenario | Before | After | |---|---|---| | [Bench2Dex](https://github.com/Bench2Dex/Bench2Dex) Task64, 100 scene/camera rebuilds with the reporter's [repro scripts](https://github.com/user-attachments/files/33540498/bench2dex_fabric_cuda_repro.zip) in the reporter's stack ([Isaac Lab 2.3.2 container](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/isaac-lab), Isaac Sim 5.1, L40S), fix ported to the 2.3.2 [`XformPrimView`](https://github.com/isaac-sim/IsaacLab/blob/v2.3.2/source/isaaclab/isaaclab/sim/views/xform_prim_view.py) | CUDA 716 / 700 at rebuild 53 / 45 | 100/100 in two runs; 500 views used 5 attribute names | | Standalone rebuild probe in the same stack (RTX rendering, 300 rigid bodies), per-instance names removed on close as on `main` | CUDA 700 at rebuild 72 | 300/300 | | Same probe on Isaac Sim 6.2 with this branch's `FabricXformSelection` | CUDA 700 at rebuild 6 | 300/300 | - `source/isaaclab_isaacsim/test/sim/test_views_xform_prim_fabric.py`: 54 passed, 3 skipped. The new `test_views_over_same_prims_share_index_attributes` fails on `main` and when the reference count is removed. - `source/isaaclab_newton/test/sim/test_views_xform_prim_newton.py`: 45 passed. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## 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 `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Description The Experimental Features sidebar listed the bleeding-edge overview as its second sibling, while that page only cataloged `isaaclab_contrib` features. Make it the section's parent page and nest all eight existing feature guides beneath it, retaining the original Welcome to the bleeding edge! title. The overview now distinguishes the complete guide list from the contrib package catalog and points readers from deprecated Warp environments to MDP2. Existing page URLs and both original heading fragments are preserved; the renamed contrib section has an explicit legacy anchor. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - Passed repository-wide pre-commit checks with `uv run --no-project --with pre-commit pre-commit run --all-files`. - Passed focused navigation checks: one parent, eight distinct existing guide targets, and every page in the experimental-features directory included. - Passed `git diff --check`. - Parsed the final reStructuredText with Docutils and verified both original heading fragments resolve to their intended sections. - Full HTML validation remains blocked locally: the standard docs command rejects macOS through the project lockfile, and an isolated Sphinx build stops on missing simulator dependencies and environment-browser generation dependencies. CI must validate the rendered documentation. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the repository-wide pre-commit checks using the macOS-compatible command above. - [x] I have made corresponding changes to the documentation. - [x] I have validated the navigation structure with focused checks. - No source packages or tests changed; package changelog fragments and test-audit changes are not applicable.
…c-sim#8947) # Description Adds per-camera RTX execution and Minimal shading controls for Isaac RTX and OVRTX. The settings live in `CameraCfg.render_settings`, allowing cameras with different modes to share one renderer. Enum-based. `simple_shading_*` outputs automatically select Minimal and their matching shading level. Ordinary RGB outputs respect the camera’s configured mode. Settings apply per render product without changing other cameras or the viewport. OVRTX now populates both RGB and simple-shading buffers when requested together. Invalid combinations, including multiple shading levels or Minimal with HDR/ISP, raise an error. Addresses OMPE-119174. No new dependencies; Isaac RTX assumes Isaac Sim 6 or newer. ## Type of change - Bug fix - New feature - Breaking change: mixed RGB/simple-shading requests use Minimal for both outputs. Path-traced RGB requires a separate camera. - Documentation update ## Validation - 234 tests passed; 6 optional tests skipped. - Formatting, lint, and changelog checks passed. - GPU golden validation was blocked by insufficient available GPU memory. ## Screenshots Not applicable. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [ ] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
is_identity_pose rejects [0, 0, 0, -1], although it represents the same rotation as [0, 0, 0, 1]. Canonicalize quaternion signs before comparing with the identity. Keep the existing tolerance and reject nonunit or nonidentity rotations. Validation: reproduced on main. The original and new identity-pose assertions passed on CPU in an isolated harness. Full pytest collection is blocked by missing SciPy in the local environment. ## Review follow-up Removed the unused identity-rotation clone and reused the tensor before its subsequent reassignment. All identity and nonidentity assertions are retained. The full test_math.py file now runs in an isolated macOS arm64 Python 3.12 environment with PyTorch 2.11.0, NumPy 2.5.5 and SciPy 1.18.1: 123 passed, 3 skipped, 337 dependency deprecation warnings. Ruff 0.14.10 formatting/lint and diff checks passed. CUDA and hosted CI remain outstanding. --------- Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
# Description `renderer=newton_optix` needs `warp-optix` and `pyoptix`, which only the `optix` extra installs (isaac-sim#9058 made it opt-in). Neither container image selects that extra, so `newton_optix` fails in the published images. Image `latest-main-892354c2` has no `warp_optix`. In its runs on OSMO, all 225 `newton_optix` runs on rigid-body camera tasks (Cartpole-Camera, Cube-Shadow-Camera and KukaAllegro Lift and Reorient, both manager-based and Direct, with every physics backend) fail before training: ``` ModuleNotFoundError: No module named 'warp_optix' ... RuntimeError: The OptiX camera backend requires the newton[optix] extra ``` This PR: - **Base image.** Adds `--extra optix` to the base image's `IMAGE_EXTRAS`, next to `ov` and `fovi`. - **Kitless image.** Adds it to the kitless image's `uv sync`. Both packages are marked x86-64 and Windows only, so the arm64 kitless image is unchanged. - **Docs.** Documents in the Newton OptiX renderer section that the x86-64 images include it (the arm64 kit-less image does not), and that OptiX 9.1 needs a 590-series or newer NVIDIA driver. With an older driver the import fails with `ImportError: Unsupported ABI version`. The lockfile already contains both packages, so `uv sync --frozen` needs no lock change. `uv export --frozen` with each image's extras now yields `pyoptix==9.1.1` and `warp-optix==0.3.0` for x86-64 Linux; on `main` it yields neither. **Validation.** Image `latest-main-892354c2` on L40s. Cartpole-Camera, `physics=newton_mjwarp renderer=newton_optix presets=theia_tiny`, rsl_rl, 5 iterations: | | Driver 580.95 | Driver 595.58 | |---|---|---| | Image as is | `requires the newton[optix] extra`, exit 1 | same, exit 1 | | + `warp-optix==0.3.0 pyoptix==9.1.1` (the locked versions, `--no-deps`) | `ImportError: Unsupported ABI version`, exit 1 | trains 5/5, exit 0 | - `docker/test` contract tests: 43 passed, 4 skipped. `test_docker.py`, which builds images, was not run. - No changelog fragment: the change touches no package under `source/`. - **Not done here:** an image build. CI's docker-license-check scans the built image. `warp-optix` declares `Apache-2.0 AND BSD-3-Clause AND LicenseRef-NVIDIA-OptiX`, which the substring rule accepts. Please confirm the NVIDIA OptiX license term is fine for the distributed images. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (no package touched) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: fanes <74020209+fatimaanes@users.noreply.github.com>
## Description Remove `.github/CODEOWNERS` so pull requests no longer automatically request reviewers based on file ownership rules. The codeowners process has been causing too much notification noise for reviewers and masks the required reviews with proper assignees. ## Type of change Repository configuration update. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - All repository pre-commit hooks passed with `uv run --no-project --with pre-commit python -m pre_commit run --all-files`. - `git diff --cached --check` passed before committing; the diff contains only the CODEOWNERS deletion. - `uv run isaaclab --format` was blocked because the project lockfile supports Linux and Windows, while this checkout runs on macOS. The pre-commit hooks were run directly through uv instead. - No runtime code or tests changed; no package changelog fragment is needed.
# Description When stdout uses strict cp932 encoding, the summary title `Isaac Lab · train` raises `UnicodeEncodeError` before training starts. This applies the fallback suggested in isaac-sim#8978: `_write` retries with replacement characters if the stream cannot encode the text. It keeps the characters the stream can display and leaves the stream settings and normal UTF-8 output unchanged. The regression calls `LoadingScreen.summary()` with real cp932 and UTF-8 streams. It checks that the task information remains readable, encodable Japanese text survives, and the stream settings stay intact. The fix includes a package changelog entry. Fixes isaac-sim#8978. isaac-sim#8977 filters greeting art that the console cannot encode. The title still crashes on its head (`2214b28f3332`) with `logo=False`, so that fix does not cover this case. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Testing Tested on macOS ARM64 with Python 3.12.15, rich 14.3.4, pytest 9.1.1, and lazy-loader 0.5. The uv environment contains the editable core package and test/format tools; commands use `--no-sync` to avoid installing the simulation stack. The cp932 regression fails with `UnicodeEncodeError` on the original source at `4cfdfcfa52d7` and passes with the fix. The UTF-8 control passes on both. - `uv run --no-sync python -m pytest source/isaaclab/test/app/test_loading_screen.py -q -k 'not test_interactive_input_shows_captured_context_before_waiting_for_answer'`: 15 passed, 1 deselected. - `COLUMNS=30 uv run --no-sync python -m pytest source/isaaclab/test/app/test_loading_screen.py -k summary_preserves -q`: 2 passed. Before pinning the test width, both cases failed because the task name wrapped. - `uv run --no-sync python -m pytest source/isaaclab/test/app/test_remote_greetings.py -q`: 4 passed. - `ISAACLAB_CHANGELOG_BASE_REF=origin/main uv run --no-sync isaaclab --format`: passed, including repository-wide lint, changelog, and Git LFS pointer checks. - `git diff --check`: passed. The full `test_loading_screen.py` run has 15 passes and one failure: `test_interactive_input_shows_captured_context_before_waiting_for_answer` fails at `assert b"Answer: NO" in output` on this Mac. The same test fails after restoring the original production file. It is unchanged in this patch and excluded only from the focused command above. A Japanese Windows training run and Docker/GPU tests were not run. ## Checklist - [x] Read the contribution guidelines. - [x] Ran pre-commit with `uv run --no-sync isaaclab --format`. - [x] Documented the fix in the package changelog. - [x] No new warnings in the checks above. - [x] Added focused regression coverage and checked it against the test-audit criteria. - [x] Added a fragment under `source/isaaclab/changelog.d/`. - [x] Already listed in `CONTRIBUTORS.md` as `saime428`. - [x] Backport to 3.1. --------- Signed-off-by: saime428 <51110572+saime428@users.noreply.github.com> Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
## Description Bump OvPhysX from `0.8.0.43443703471` to the newly published `0.8.1.45833638316` to test compatibility in the existing Linux/GPU CI suites. Update both install extras and the central version pin in `pyproject.toml`, and regenerate `uv.lock` with the published Linux x86_64, Linux aarch64, and Windows wheels. The lockfile changes only OvPhysX. ## Type of change - Dependency update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - `uv lock --upgrade-package ovphysx` — passed. - `uv lock --check` — passed. - `uv run --no-sync python -m pytest source/isaaclab/test/cli/test_uv_run_pyproject.py::test_version_single_source_matches_literal_pins source/isaaclab/test/cli/test_uv_run_pyproject.py::test_public_ov_packages_use_public_pypi_index -q` — 2 passed. - `uv run --no-sync isaaclab --format` — all repository formatting and lint hooks passed. - Local validation used the existing uv environment with `--no-sync` because macOS is outside the supported project platforms; verified the interpreter and imported repository root first. - Runtime validation will run in the PR's Linux/GPU CI, including the optional OVStage suite. ## Checklist - [x] Read the contribution guidelines. - [x] Run repository formatting and lint checks. - [x] Validate version-pin consistency and lockfile freshness. - [x] Contributor name already exists in `CONTRIBUTORS.md`. - Documentation and package changelog fragments are not applicable: only the root dependency configuration and lockfile changed.
# Description **MDP2 Resets:** reset MDP2 episodes to **stored reset states**. You can generate them from a task, record them during training, generate them once in a separate run, pin worlds to specific ones, and save them. Restoring, recording, and pinning all run inside the captured step. > **Stacked PR:** the viewer for reset states is isaac-sim#9119. > **Built on:** the reset-state API that isaac-sim#8872 merged into `isaaclab.envs.reset`. --- ## The idea in one minute A **reset state** is a state to reset to. The reset states of an event answer three questions. Each answer has one owner, and you can swap each one on its own: | Question | Owner | How you change it | |---|---|---| | **Which reset states exist?** | `ResetStateBuffer` | `source=` and `record=` | | **Which one does each world reset to?** | `ResetStateSampler` | `sampler=`, `default_reset_probability=`, `reset_states.pin(...)` | | **How does a state reach the simulation?** | the event's `outputs` | nothing to configure: any writable scene field or command works | Some vocabulary: - **Slot:** one stored reset state. Slots are numbered within each world's reset states (or each group's, see recipe 7). - **Source:** where the reset states come from at startup: a generator task, a file, or tensors. - **Credit:** when an episode ends, its success is credited to the slot it started from. The sampler uses that history to pick the next reset state. Episodes reset by hand before they end are not credited. - **Default reset:** a reset that keeps what the task's other reset events wrote. This follows mujoco and Newton: a keyframe is just arrays with a leading index, and choosing the index is up to the caller. --- ## Quick start Add one reset event to an MDP2 task: ```python from isaaclab.envs.reset import BetaSamplingScoreCfg, ResetStateSamplerCfg from isaaclab_experimental import mdp2 from isaaclab_experimental.mdp2 import mdp "reset": mdp2.Event( mdp.reset_to_states, inputs={ "succeeded": mdp2.quantities.success, # credited to the starting slot "terminated": mdp2.terminated, # with time_out: only ended episodes count "time_out": mdp2.time_out, }, outputs={**robot_state, **object_state}, # the outputs *are* the state params={ "source": mdp.FromTask(RESET_STATE_GENERATOR, num_states=16), # generated at startup "sampler": ResetStateSamplerCfg(scores=[BetaSamplingScoreCfg(target=0.5)]), }, ) ``` Then read the reset states from the env state: ```python reset_states = mdp.get_reset_states(env.state) # the ResetStates of "events.reset" reset_states.states["joint_pos"] # (num_worlds, num_states, num_joints) reset_states.success_rate # (num_worlds, num_states) ``` `mdp2.quantities.<name>` refers to a quantity your task declares under that name, such as `success` in the Kuka lift task. --- ## Recipes ### 1. Write a task that generates reset states The states come from a **generator task**: an ordinary MDP2 `TaskCfg` that lives next to your main task, so there is nothing new to learn. Each part of it has one job: | Part of the generator task | Its job | |---|---| | `events` | propose a reset state | | `terminations` | reject bad proposals | | `observations["descriptor"]` (optional) | spread the kept states by farthest-point sampling | Here is the one from the Kuka Allegro lift task (`isaaclab_tasks_experimental/mdp2/lift_kuka_allegro/lift_env_cfg.py`), with long input lists shortened to `...`: ```python RESET_STATE_GENERATOR = mdp2.TaskCfg( # 1. Propose: scatter the arm, spin the wrist, and drop the object somewhere above the table. events={ "reset_robot_joints": mdp2.Event( mdp.reset_joints_by_offset, inputs={**joint_limits, "joint_ids": joints}, outputs=robot_state, params={"position_range": (-0.5, 0.5), "velocity_range": (0.0, 0.0)}, ), "reset_robot_wrist_joint": mdp2.Event( mdp.reset_joints_by_offset, inputs={**joint_limits, "joint_ids": robot.joints("iiwa7_joint_7")}, outputs=robot_state, params={"position_range": (-3.0, 3.0), "velocity_range": (0.0, 0.0)}, ), "reset_object": mdp2.Event( mdp.reset_root_state_uniform, inputs={...}, outputs={"root_link_pose_w": target.root_link_pose_w, "root_com_vel_w": target.root_com_vel_w}, params={"pose_range": ((-0.2, 0.2), (-0.2, 0.2), (0.0, 0.4), (-3.14, 3.14), (-3.14, 3.14), (-3.14, 3.14))}, ), # A quarter of the proposals start with the object already in the palm. "reset_object_to_target": mdp2.Event( lift.reset_to_target, inputs={"body_link_pose_w": robot.body_link_pose_w, "body_ids": robot.bodies("palm_link")}, outputs=object_state, params={"position_range": ((0.03, 0.07), (-0.04, 0.04), (0.02, 0.08)), "probability": 0.25}, ), }, # 2. Reject: the robot must not overlap the object or the table. terminations={ "object_robot_clearance": mdp2.Termination(mesh_clearance, inputs={...}, params={"min_clearance": 0.0}), "robot_table_clearance": mdp2.Termination(slab_clearance, inputs={...}, params={"min_clearance": 0.02, ...}), }, # 3. Spread (optional): prefer kept states that differ in how far the hand is from a grasp. observations={ "descriptor": { "grasp_travel_distance": mdp2.Observation(lift.grasp_travel_distance, inputs={...}, params={...}), }, }, ) ``` Then point the main task's reset event at it: ```python "source": mdp.FromTask(RESET_STATE_GENERATOR, num_states=16, oversample_factor=2.0, max_rolls=2000) ``` How `FromTask` uses it: - It rolls the generator task in every world: runs its events, then checks its terminations. - It keeps the proposals no termination fired on, until each world (or group) has enough. - With a `descriptor`, it harvests `oversample_factor` times more and keeps the most spread-out ones. - It gives up with an error after `max_rolls` rolls. The same task works three ways: - **at startup**, through `FromTask`; - **in a separate run**, with `generate_reset_states.py` (recipe 3); - **in the viewer** (isaac-sim#9119), where *Roll generator* shows one proposal per world, labelled accepted or rejected. Two more details: - Commands that the event restores, such as goals, are taken from the generator task, where they are sampled. Inside a named subtask (`compose(pick=...)`), the event writes `commands.pick.goal` and takes the generator's local `commands.goal`. - `mdp.StateGenerator` is the same task bound to the scene and rolled one proposal at a time. The viewer uses it. ### 2. Record visited states during training ```python "reset": mdp2.Event( mdp.reset_to_states, inputs={ "succeeded": mdp2.quantities.success, "terminated": mdp2.terminated, # required: terminal states are never recorded "time_out": mdp2.time_out, "record_if": mdp2.quantities.lifted, # optional: only where this quantity is above 0.5 }, outputs={**robot_state, **object_state}, params={ "source": mdp.FromTask(RESET_STATE_GENERATOR, num_states=16), "sampler": ResetStateSamplerCfg(scores=[BetaSamplingScoreCfg(target=0.5)]), "record": mdp.RecordVisited(num_states=16, probability=0.01), }, ) ``` What happens on each step: - Each world that did not terminate records its outputs, with the given `probability`. - A record replaces the oldest of the world's own recorded slots. - A replaced slot forgets its old outcomes and starts at the first score's target success rate, so new states get tried. Without this, a fresh slot would weigh only `uniform_weight` against established ones. - An episode whose slot is recorded over is not credited. > Recording needs reset states per world (no `shared` or `groups`). Include velocities, and commands for goal-conditioned tasks, in the outputs, so a restored state continues as it was recorded. ### 3. Generate once, train many times Generate many reset states in their own run: ```bash ./isaaclab.sh -p scripts/tools/generate_reset_states.py --task Isaac-Lift-KukaAllegro-MDP2 \ --num_envs 4096 --num_states 64 --out kuka_lift_reset_states.pt physics=newton_mjwarp ``` Then load them in training, which skips generation at startup: ```python "source": mdp.FromFile("kuka_lift_reset_states.pt") ``` > Reset states per world or per group only fit a run with the same worlds, and loading checks that. Shared reset states fit any run. ### 4. Pin worlds to specific reset states ```python reset_states.pin(torch.full((env.num_envs,), 3)) # every world resets to its slot 3 at its next reset reset_states.unpin() # back to sampling ``` - A slot of `-1` draws as usual, so you can pin some worlds and sample the others. - Pins hold until replaced and run inside the captured step, so an evaluation can sweep the reset states. ### 5. Keep some default resets ```python params={..., "default_reset_probability": 0.2} ``` In 20% of resets, the event keeps what the earlier reset events wrote: a fresh draw from the task's default reset distribution. Those episodes are credited to no slot. ### 6. Share one set of reset states across worlds ```python inputs={..., "env_origins": mdp2.Entity("scene").env_origins}, params={..., "shared": True}, ``` Poses are stored relative to each world's origin. Share reset states only between worlds whose states fit each other, such as worlds that spawn the same object. ### 7. One set per object ```python inputs={..., "env_origins": mdp2.Entity("scene").env_origins}, params={..., "groups": mdp.prototype_groups}, ``` `prototype_groups` groups the worlds by the object, or other prototype, that the scene cloned into them, as MDP1's lift does. The worlds of a group draw from one set of reset states and share its success statistics. `groups` takes any callable that returns each world's group. The Kuka lift task uses this with 1024 reset states per object. ### 8. Inspect and save | Member | What it gives you | |---|---| | `reset_states.states` | the stored outputs, per world (or group) and slot | | `reset_states.success_rate`, `.episode_counts`, `.probabilities` | per world (or group) and slot | | `reset_states.started_from` | the slot each world started from (`-1` for a default reset) | | `reset_states.save(path)` | writes a file for `FromFile` | --- ## How it fits into MDP2 ### Where `reset_to_states` runs 1. **Scene outputs restore where the event is scheduled.** Later reset events, and the commands that resample from scene fields, see the restored scene. Credit is taken here too, so `succeeded` is read before progress restarts. 2. **Command outputs restore in the event's `reset` hook**, which runs after the commands resample, at resets and when its task starts mid-episode, so a restored goal stands. 3. **The `update` hook runs once per step, after the rewards.** That is where recording observes the step. This is the one new plan rule: reset events with an `update` hook get an `UPDATE_STATE` step. Other events keep their usual order: a plain event that writes a command is still overwritten by the resample. ### Design choices | Choice | Why | |---|---| | **One event, not three** (store / choose / restore) | Only the owning use writes its own state; three uses would need plumbing between them. Buffer and sampler are already separate one level down. | | **Not a fused `wp.func`** | The reset already replays inside the step's CUDA graph (0.066 ms of a 10.5 ms step, see Performance). | | **Reset states in the use's cache** | `mdp.get_reset_states(env.state)` reads them, so tools like the viewer can too. `get_reset_states`, because `mdp.reset_states` is the module. | --- ## Changes underneath ### `isaaclab.envs.reset` | API | What's new | |---|---| | `ResetStateBuffer.set_state(indices, values, mask=)` | Inverse of `get_state`: replaces stored states while running. Capturable. | | `ResetStateSampler.forget(indices, mask, success_rate=)` | Clears the outcomes of replaced entries and starts them at a prior. Capturable. | | `ResetStateSampler.reset(..., rng=seeds)` | Takes caller-owned int32 per-world seeds, so `env.reset(seed=...)` reseeds the draws. | | `ResetStateSampler.reset(..., sample_unrequested=True)` | A `state_ids` request of `-1` draws for that environment, so one captured reset can pin some worlds and sample the others. Opt-in: by default `-1` stays an invalid request. | ### MDP2 - `TermContext.cache` gives init hooks the use's cache. - Reset events with an `update` hook run it once per step, after the rewards. - `migrate` (`env.update_task`) carries the cache of every use that both tasks keep with the same params, bound fields and worlds, so the reset states survive a task edit, and split branches of one use keep their own. - The builder scopes an event's outputs like its inputs, so a reset event inside a named subtask writes that subtask's commands. ### `reset_to_states` sources and checks - `FromTask`, `FromFile`, `FromTensors` and `RecordVisited` are plain (not frozen) configs, so Hydra overrides such as `env.task.events.reset.params.source.num_states=...` work. - `FromFile` rejects a file saved without group labels when the event uses groups. - A sampler with scores requires the `succeeded` input, checked at startup. ### `isaaclab.utils` - `class_to_dict` dumps a callable instance with fields as `{"_type": ..., **fields}`, so `env.yaml` records which source class was configured. ### Port of the MDP1 example - `Isaac-Lift-KukaAllegro-MDP2` now uses `mdp.reset_to_states` with the core Lift sampler settings and, as MDP1, 1024 reset states per object (`prototype_groups`), without recording. - **Breaking (experimental task):** its task-local `reset_bank.py`, the `reset_from_bank` term, and the `bank_size`, `history_length`, `target_success_rate` and `kappa` parameters are removed. The changelog gives the migration. - `play_mode` changes the source only when it is a `FromTask`, so playing from a `FromFile` keeps the file. - At the same success rate, a state's weight relative to a 50%-success state matches the old term within 2% (largest at 0% and 100%, where the floors differ), across the 11 rates a 10-episode history can take. Draws are not bitwise identical to `main`. - `Isaac-Lift-Franka` (MDP1) is not ported: it has no MDP2 task yet. --- ## Performance **Setup:** Kuka Allegro lift, 4096 worlds, Newton MJWarp, 300 steps × 3 repeats per run, each run started on an idle GPU. - MDP1 runs `Isaac-Lift-KukaAllegro`; MDP2 runs `Isaac-Lift-KukaAllegro-MDP2`. - MDP2 rows use 16 reset states per world and ran twice, interleaved; they are shown as `a / b`. - MDP1 ran once. > These numbers were measured before the change to 1024 reset states per object and before the command `reset` hook, and have not been rerun since. The GPU, software versions, warm-up and the revisions benchmarked were not recorded with them, so read them as indicative only. | Variant | Step (ms) | MDP-only step (ms) | Reset in graph (ms) | Reset eager (ms) | `env.reset()` (ms) | |---|---|---|---|---|---| | MDP1 Lift, `conditional_reset` | 15.38 | 4.08 | 0.127 | 0.53 | 2.73 | | MDP2 `main`, bespoke bank term | 10.50 / 11.40 | 0.231 / 0.234 | 0.080 / 0.077 | 0.077 / 0.078 | 0.42 / 0.39 | | MDP2 **this PR** | 10.47 / 10.56 | 0.289 / 0.292 | 0.067 / 0.068 | 0.39 / 0.40 | 0.76 / 0.84 | | MDP2 this PR, without the `update` hook | 10.41 / 10.58 | 0.290 / 0.289 | 0.067 / 0.069 | 0.35 / 0.38 | 0.71 / 0.73 | **What the numbers say** - **Training step:** unchanged within noise. The 11.40 ms run on `main` had a normal MDP-only time (0.234 ms), so its extra time was outside the MDP. - **Recording costs nothing measurable when it is off.** - The no-hook variant really drops the hook: its plan has no `UPDATE_STATE` step for `events.reset` (24 evaluate steps against 25). - Its MDP-only step is the same within noise, so recording stays in one term. -⚠️ **Regression: the MDP-only step grows by about 0.06 ms** (0.23 → 0.29 ms, about 0.6% of a full step). - The reset events alone are *faster* in the graph, and the hook is not the cause, so this is **not yet attributed**. -⚠️ **Regression: eager calls are slower.** - Eager reset events take 0.39 ms against 0.08 ms on `main` (about 5×). - `env.reset()` takes 0.8 ms against 0.4 ms (about 2×). - The likely cause is Python overhead in the library buffer and sampler. It was not profiled. - Captured steps don't pay it. Uncaptured steps (the torch backend, or capture off) pay it on every step that resets. - **Against MDP1:** a 32% shorter step and a 14× smaller MDP-only step. MDP1 kept 1024 states per object prototype rather than 16 per world, so this compares the two stacks, not the reset alone. --- ## Validation ### Tests **`test_mdp2_reset_states.py`** (kitless, analytic scene) - Generating: `FromTask` validity, and commands taken from the generator task. - Drawing: per-world draws, partial-reset isolation, shared origin frames, and per-group draws and credit. - Credit: goes to the slot the episode started from, only for episodes that ended, not manual resets, including episodes that restore a goal (`succeeded=mdp2.progress.done`). - Commands: a restored goal stands over the resample while the scene restores before it (Torch, Warp, and captured Warp), in a named subtask, and when its task starts mid-episode. - `env.update_task`: the reset states carry over to the updated task, and split branches of one use keep their own. - Recording: `record_if`, the fresh prior, the dropped credit, and only in the worlds of its use. - Pinning and the default reset fraction. - Save and `FromFile`, with a world-count mismatch or missing group labels rejected. - **Bitwise torch == warp == captured**, with recording, pinning and the default reset fraction on. - Invalid configurations are rejected. **Other files** - `test_mdp2.py`: a reset event's `update` hook runs once per step. - `test_reset_state_sampler.py`, `test_reset_states.py`: caller seeds, `-1` draws only when opted in, `forget`, `set_state`. - `test_lift_kuka_allegro.py` (Newton, 16 worlds): - source overrides through `resolve_task_config`, and `play_mode` with `FromFile`; - restore, and torch/warp parity; - one CUDA graph per step; - a state recorded on the simulation and restored when its slot is pinned. ### Mutation checks Each of these broke a test (checked on `0e2c1e03f`; the regression tests added since fail on that head): - [x] dropping the credit on overwrite - [x] flipping the default reset coin - [x] a zero prior for new records - [x] ignoring pins - [x] removing the update scheduling - [x] skipping the origin shift - [x] harvesting commands from the main task ### Also run - On the head: the `test/mdp2` suite of `isaaclab_experimental`, `test_dict.py`, the reset API, MDP1 `test_lift_reset.py`, NIST `test_nist_reset_monitor.py`, and Kuka MDP2 on GPU. **All pass.** - `env.update_task(...)` on the Kuka env on GPU, with `truncate=True` and `False`. - `generate_reset_states.py` (then named `collect_reset_states.py`) ran on Kuka through config resolution and `gym.make`, and saved reset states that `FromFile` reloads identically. - Not run here: the launcher step. `add_launcher_args` boots Kit, which waits for its EULA in this environment. - `pre-commit` and the changelog gate pass against `upstream/main`. --- ## Type of change - New feature (non-breaking change which adds functionality) - Breaking change for the experimental `Isaac-Lift-KukaAllegro-MDP2` reset term and parameters (see Port of the MDP1 example) ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the `pre-commit` checks 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/<package>/changelog.d/` --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Description Newton's `SolverSteel` has a `contact_gap_gate` option: contacts from the collision pipeline whose gap is larger than the gate [m] get no constraint rows. `0` omits rows for every contact with a positive gap. `None`, Newton's default, solves every contact the pipeline reports, including speculative contacts with a positive gap. `SteelSolverCfg` had no field for it, so setting it from Isaac Lab meant patching the solver kwargs. This adds `SteelSolverCfg.contact_gap_gate`. The default is `None`, so behavior is unchanged. `solver_kwargs` forwards it to `SolverSteel` like the other Steel fields, so no solver code changes. I also added a short paragraph to the Newton backend page on what setting it to `0` does. Motivation: I timed the NIST demo from isaac-sim#9177 (4096 envs, full SDF, CUDA graphs, RTX PRO 6000, Newton `d31603ff5`). In this scene Steel spends most of its step solving rows for positive-gap contacts. MJWarp runs it with zero contact margin, so it constrains only touching contacts there. Setting the gate to `0` removes the positive-gap Steel rows and closes most of the gap: | Steel settings | env-steps/s | vs. MJWarp | | --- | ---: | ---: | | isaac-sim#9177 settings | 4,839 | 0.39x | | + `contact_gap_gate=0` | 13,229 | 1.07x | | + gate `0`, joint limits on, 12 iterations, `baumgarte=0.2`, 1280 free-body rows | 15,053 | 1.22x | The first two rows come from separate runs and use a 12,410 env-steps/s MJWarp reference from another run; the last row uses 12,376 env-steps/s measured for MJWarp in the same job. With the demo policy, I observed 52.4% first-episode success with the gate at `0` and 51.2% without it. ## Type of change - New feature (non-breaking change which adds functionality) ## Test plan ```bash uv run pytest source/isaaclab_newton/test/physics/test_newton_solvers.py uv run pytest source/isaaclab_newton/test/physics/test_newton_manager.py -k steel ``` - `test_solver_kwargs_include_configured_options_and_newton_deterministic_mode` now checks that the Steel kwargs carry `contact_gap_gate`: `None` by default and `0.0` when set. `solver_kwargs` matches config fields against the `SolverSteel` constructor, so this also fails if the name stops matching Newton's parameter. With the config file from `main` it fails with `KeyError: 'contact_gap_gate'`. - `test_newton_solvers.py`: 38 passed. `test_newton_manager.py -k steel`: 1 passed. RTX PRO 6000, Newton `d31603ff5` (as pinned), Warp 1.17.0. - Smoke test: `Isaac-Lift-Franka` with `presets=newton_steel env.sim.physics.solver_cfg.contact_gap_gate=0.0`, 4096 envs, 500 random-action steps. The Hydra override reaches `SolverSteel.contact_gap_gate`, all states stay finite, no world is flagged non-finite, and no constraint overflow was observed on the sampled steps. Without the override the solver keeps `None`. - `pre-commit run --all-files`, which `isaaclab --format` runs, passes, including the changelog fragment check against `main`. ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [ ] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`.
) # Description Use the same floating-point dtype for digital filter coefficients and history buffers so integer configuration literals work with floating-point input. Preserve the existing filter response and reset behavior. Fixes isaac-sim#9246. ## Type of change - Bug fix ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - Both new integer-coefficient cases failed on main and passed after the fix. - All 13 tensor-processor tests passed on CPU. - Changelog and diff checks passed. - GPU, simulator integration and full formatting checks were not run. ## Checklist - [x] Read contribution guidelines. - [x] Added regression coverage and a changelog fragment. - [x] Added contributor name. - [ ] Full formatting and integration checks. --------- Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
The uniform and triangular samplers unpack the requested shape into torch.rand. An empty tuple, which represents a scalar tensor, supplies no size argument and raises TypeError. This also affects log-uniform sampling. Pass the shape as a tuple instead. Validation: full pre-commit checks, including changelog validation, and `git diff --check` pass. Manual CPU checks confirm tuple-shaped, scalar, and empty-tensor requests work with the tuple argument; unpacking an empty tuple reproduces the missing-size error. No new tests are included. The full math suite was not rerun for the test-only removal. ## Release backport - [ ] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`. --------- Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com> Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
…-sim#9315) # Description Restructures the Isaac Lab Teleop docs so a new user starts with keyboard teleoperation (no headset, no Isaac Sim) and moves on to bimanual XR teleoperation through OVXR. Kit XR (`--xr`) is labelled deprecated; its content is kept, not deleted. **How-to guides (Teleoperation group, in reading order)** - New `keyboard_teleoperation.rst`: Franka relative-IK cube stacking with keyboard input and the Newton viewer, then SpaceMouse/gamepad, SpaceMouse permissions, and record/replay. - New `ovxr_teleoperation.rst`: replaces the two "Kitless XR" pages (`kitless_xr.md`, `kitless_xr_source.md`). Covers install, the G1 locomanipulation run, other OVXR tasks, recording, MCAP replay, camera panels, split-GPU runs, and migrating from Kit XR. - `cloudxr_teleoperation.rst` is now "Setting up CloudXR and XR Devices": headset connection, Manus/Haptikos with `--ovxr`, a troubleshooting section, and Kit XR moved to a deprecated section at the end. - "Kitless XR" is renamed to OVXR throughout. **Feature page (`isaac_teleop.rst`)** - New "Get Started" section linking the two how-tos; practical sections come before architecture. - Environment tables checked against the registered task configs: added the Franka colour-order stacking variants, marked tasks that need Isaac Sim (RMPFlow uses `lula`; suction grippers run on Isaac Sim PhysX only), added an "XR path" (OVXR / Kit XR) column, and dropped the unneeded `physics=isaacsim_physx` from the Reach diffik row. - Keyboard bindings and SpaceMouse permissions now live only in the keyboard how-to; other pages link to them. - Kit-only commands now pass `physics=isaacsim_physx` explicitly. **Other** - Redirects from the old `kitless_xr` / `kitless_xr_source` URLs and their section anchors to the matching OVXR sections (`docs/conf.py`). - Adapter internals (split-GPU publication, contract tests) moved to `source/isaaclab_teleop/docs/OVXR_ADAPTER.md`. - Teleop wording updated in `installation.rst`, `ecosystem.rst`, `teleop_imitation.rst`, and the `isaaclab_teleop` API page. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - `make current-docs` (`sphinx-build -W --keep-going`) passes with no warnings; old kitless XR URLs redirect to the new sections. - `uv run isaaclab --format` passes. - Ran the keyboard command from the new how-to (Franka IK-Rel, OvPhysX, Newton viewer) end to end. - Started the G1 OVXR command up to the CloudXR WSS listener (no headset connected). - Not run: Kit XR commands, Manus/Haptikos with `--ovxr`, record/replay with the Newton viewer. ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description
Allocate the Mimic generation loop's action batch on `env.device` to
avoid an unnecessary CPU round trip for CUDA actions.
The batch is currently allocated on the default device, normally CPU.
Assigning CUDA actions into it copies them to CPU, and the environment
then transfers the batch back to CUDA. Allocate the batch directly on
the environment device while preserving assignment by environment ID,
including out-of-order queued actions.
No new test module, additional dependencies, or API changes are
introduced.
## Type of change
- Bug fix (non-breaking change which fixes an issue)
## Release backport
- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `main`
## Screenshots
Not applicable.
## Validation
- Full pre-commit checks, including changelog validation, and `git diff
--check` pass on the final change.
- The device fix has the CUDA benchmark evidence below. The separate
action-batch regression module is not included in this PR.
- Simulation tests were not rerun for the test-file removal; full
simulation validation remains outstanding.
## Reproducible local measurement
Baseline: `e6fc4fdeeee706a9f0e7393d87f11a880b0b7353`. Measured
candidate: `38a2a35a6fcefb01c808d846d57312e576f42ec4` (later test-only
cleanup does not change the measured loop).
Hardware/software: NVIDIA GeForce RTX 4070 Ti SUPER, driver 595.99.02;
Python 3.12.16, PyTorch 2.11.0+cu130, CUDA 13.0; one PyTorch CPU thread.
Backend: kitless synthetic environment, with `env.step` consuming
`actions.to("cuda:0")`; **no physics backend, rendering, planning, or
recording**.
64 environments, 7 float32 action values per environment, reverse
environment-ID queue order. Warm up each variant for 100 steps, then
alternate variant order across 7 rounds of 500 steps each. Measure host
wall-clock time with CUDA synchronization before/after each run and
report the median round latency. The harness checks final action values
and queue completion.
| Metric | Baseline | Candidate |
| --- | ---: | ---: |
| Median ms / global step | 0.490508 | 0.310227 |
| CPU-resident action batches / 500 steps | 500 | 0 |
These numbers cover the asynchronous action loop and the modeled
transfer to CUDA. They are not end-to-end dataset-generation throughput
or a GPU-profiler measurement of transfer counts.
<details>
<summary>Reproduction command and complete harness</summary>
Run from the candidate checkout with its CUDA-capable Isaac Lab Python
environment. Fetch the named revisions if needed. The harness loads the
exact `env_loop` function from each revision, using the candidate's
imported dependencies and module globals for both variants.
```bash
cat > /tmp/mimic_action_bench.py <<'PY'
"""Run from the candidate IsaacLab worktree with its Python environment."""
import ast
import asyncio
import json
import platform
import statistics
import subprocess
import sys
import time
from types import SimpleNamespace
import torch
from isaaclab_mimic.datagen import generation
torch.set_num_threads(1)
baseline, candidate = sys.argv[1:3]
path = "source/isaaclab_mimic/isaaclab_mimic/datagen/generation.py"
def load(revision):
source = subprocess.check_output(["git", "show", f"{revision}:{path}"], text=True)
tree = ast.parse(source)
function = next(n for n in tree.body if isinstance(n, ast.FunctionDef) and n.name == "env_loop")
namespace = dict(generation.__dict__)
namespace.update(num_success=0, num_failures=0, num_attempts=0)
exec(compile(ast.Module(body=[function], type_ignores=[]), revision, "exec"), namespace)
return namespace["env_loop"]
def run(function, steps):
queue = asyncio.Queue()
expected = torch.arange(64 * 7, dtype=torch.float32, device="cuda:0").reshape(64, 7)
state = {"steps": 0, "cpu_batches": 0}
def fill():
for env_id in reversed(range(64)):
queue.put_nowait((env_id, expected[env_id]))
def step(actions):
state["steps"] += 1
state["cpu_batches"] += actions.device.type == "cpu"
state["last"] = actions.to("cuda:0")
if state["steps"] < steps:
fill()
env = SimpleNamespace(num_envs=64, device="cuda:0", action_space=SimpleNamespace(shape=(64, 7)),
step=step, sim=SimpleNamespace(is_stopped=lambda: state["steps"] >= steps))
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
fill()
try:
torch.cuda.synchronize()
start = time.perf_counter()
function(env, asyncio.Queue(), queue, None, loop)
torch.cuda.synchronize()
latency = (time.perf_counter() - start) * 1000 / steps
torch.testing.assert_close(state["last"], expected, rtol=0, atol=0)
loop.run_until_complete(asyncio.wait_for(queue.join(), 1))
assert state["steps"] == steps
return {"ms_per_step": latency, "cpu_batches": state["cpu_batches"]}
finally:
loop.close()
asyncio.set_event_loop(None)
functions = {"baseline": load(baseline), "candidate": load(candidate)}
for function in functions.values():
run(function, 100)
samples = {name: [] for name in functions}
for index in range(7):
for name in (list(functions) if index % 2 == 0 else list(reversed(functions))):
samples[name].append(run(functions[name], 500))
report = dict(baseline=baseline, candidate=candidate, python=platform.python_version(),
torch=torch.__version__, cuda=torch.version.cuda, gpu=torch.cuda.get_device_name(),
num_envs=64, action_dim=7, dtype="float32", cpu_threads=1,
warmup_steps_per_variant=100, rounds=7, steps_per_round=500,
backend="synthetic env.step(actions.to(cuda:0)); no simulator/physics backend",
timing="host perf_counter, CUDA synchronized before and after each run; alternating order",
samples=samples,
median_ms_per_step={name: statistics.median(x["ms_per_step"] for x in rows)
for name, rows in samples.items()})
print(json.dumps(report, indent=2))
PY
uv run --no-sync python /tmp/mimic_action_bench.py e6fc4fd 38a2a35
```
</details>
## Checklist
Docker and GPU tests run on demand. Push the commits you want tested,
then comment `run-ci` on the pull request, or `run-ci ovstage` to
include kitless OVStage rendering tests for that run. Subsequent pushes
and plain `run-ci` comments do not run OVStage tests unless you comment
`run-ci ovstage` again.
- [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
`uv run isaaclab --format` (equivalent CLI invocation above)
- N/A: No API or usage changes; a changelog fragment documents the fix.
- [x] My changes generate no new warnings (within the local validation
scope above)
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
---------
Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
An empty regex is a valid match for an empty target string. The shared name matcher uses a truthiness check for the previous match, so a second pattern silently matches the same target. Test explicitly for the unassigned None sentinel instead. Validation: reproduced duplicate indices on main and passed the string utility test suite. ## Review follow-up Added the explicit bool and None annotations, restored top-level spacing and marked the regression kitless. Ruff 0.14.10 format and lint checks and diff checks passed. In an isolated Python 3.12 environment on macOS arm64, all 20 tests in test_string.py passed, including both selected kitless cases. The production fix and regression assertions are unchanged. Hosted CI remains outstanding. ## Release backport - [x] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`. --------- Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Author
|
Playback example for Isaac Lab #9194. An Isaac Lab Franka Panda reaches across the scene in a kit-less OVPhysX recording. The 13-second walkthrough shows play, pause, and scrubbing in standalone OVD Viewer. franka-ovd-playback.mp4 |
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
## Description With twelve cloned environments, writing deformable row 2 changes `env_10`. Reproduced on `main` at `7d4024cf3` with the pinned `ovphysx==0.8.1.45833638316` runtime on an RTX 5090. Wildcard bindings enumerate `env_0, env_1, env_10, ...`, while the asset APIs index by environment. Resolve deformable body and material selections through the existing clone-plan path expansion used by rigid assets. Native bindings preserve the supplied explicit order, including materials that expose no path metadata. Shared materials retain their shared selection. Remove the redundant path lookup and remapping from deformable geometry publication, which already supplies explicit paths. Fixes isaac-sim#8963. Alternative to isaac-sim#8972 that also addresses its material-ordering gap. Generic rigid/contact sorting retains wildcard consumers outside this change. ## Validation - All **22 deformable asset cases passed**: 21 passed initially; the optional volume-meshing case passed after installing the `tetrahedralization` extra and rerunning that case. - Existing scene-data backend tests: **23 passed**. - Extended the existing mixed-scene test from 4 to 12 environments: independently addressed native objects verify indexed position writes and per-environment materials; published geometry matches the same environment. Removed the older overlapping volume position-write assertions. - Regression fails on the original selection. Independently reverting material selection, suppressing the position write, or reversing publication entries also fails the retained integration test. - Native surface-binding probe: twelve independently authored objects preserve a deliberately reordered explicit selection for current and rest positions. - Review follow-up: renamed shared path expansion to `expand_env_pattern` and updated all callers; 55 existing view and mixed-scene regression cases passed. - Full `uv run isaaclab --format` passed. During investigation, a separate surface-mesh-at-asset-root cloning setup realized only the source body on current main. That cloning problem is outside this change; the native surface selection probe uses independently authored objects. ## Type of change - Bug fix ## Release backport - [ ] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`. ## Checklist - [x] Read the contribution guidelines. - [x] Ran the full formatting and lint checks. - [x] Validated the changed behavior and applied the test-audit criteria. - [x] Added a changelog fragment for the changed package. - [x] Contributor name already appears in `CONTRIBUTORS.md`.
# Description Ports Arena's [tracked events](https://isaac-sim.github.io/IsaacLab-Arena/main/pages/concepts/task/concept_progress_tracking_design.html#tracked-events) to MDP2. A tracked event records when something of interest happens, such as an object being dropped, without changing what counts as success. An event is built from the same pieces as success (`Milestone`, `hold`, `sequence`), plus two flags: | Flag | Effect | | --- | --- | | `repeat=True` | Counts every occurrence, and records the step of each one. | | `tracked=True` | Keeps the event out of the task's success and score. | ## Usage ### 1. Define the event beside the task ```python from isaaclab_experimental import mdp2 TASK = mdp2.compose( BASE, place=PICK_AND_PLACE, # The task: decides success and score dropped_object=mdp2.sequence( # An event: lifted, then resting outside the bowl lifted=mdp2.Milestone(q.lifted_and_grasped, hold=10), dropped=mdp2.Milestone(q.resting_outside_bowl, hold=10), repeat=True, tracked=True, ), slipped=mdp2.Milestone(q.slipped, repeat=True, tracked=True), # An event of one condition ) ``` ### 2. Read it during training Tracked events are logged like any other task, and they don't change `Progress/task`: ```python _, _, _, _, extras = env.step(actions) extras["log"]["Progress/dropped_object"] # Share of the last episodes with at least one drop extras["log"]["Progress/task"] # Success rate, unaffected by the drops ``` The live state is in `mdp2.progress.dropped_object.{count, done_at, ...}`, for observations, rewards, or terminations. ### 3. Get per-episode results and the full timeline With an episode budget, `episode_records()` gives one row per episode. Set `record_episode_events` and the new `episode_events()` also gives one row per occurrence: ```python cfg.episode_budget = 100 cfg.record_episode_events = True # Opt-in; needs a time limit env = MDP2RLEnv(cfg) obs, _ = env.reset() while env.episodes_completed < cfg.episode_budget: obs, *_ = env.step(policy(obs)) records = env.episode_records() records["progress/task"] # Step the task was done, -1 if not records["progress/dropped_object/count"] # Drops per episode drops = env.episode_events()["dropped_object"] drops["world"], drops["episode"], drops["step"] # One row per drop, sorted by world, episode, step ``` To get Arena's per-episode list of `{name, step}`, join the event rows to the records on `(world, episode)`. ## How it works - **`tracked`:** a tracked subtask keeps all of its own progress, but `TaskTree.counted` filters it out. `counted` is the single place that drives a parent's completion and score in both backends. Only subtasks that run together (`compose`) can be tracked. Tracking a subtask of a sequence, choice, or split, or the root, is a builder error. - **`episode_events()`:** each repeating task sets an internal `occurred` flag in the step it is done, in both backends. A parent's restart doesn't clear the flag, so an event inside a repeating task is recorded even when the parent restarts in the same step. The env's existing fused per-world log kernel, inside the captured step, writes a row wherever the flag is set. There are no new kernel launches and no host syncs. - **Capacity:** the buffer holds `episode_budget × max_episode_length` rows per repeating task. A task repeats at most once per step, so this always fits, and there is no capacity setting. It is allocated only with `record_episode_events=True` (default `False`). ### Performance Event recording adds no measurable cost: | | ms per step, 5 runs | median | | --- | --- | --- | | Recording off | 0.514 – 0.519 | 0.518 | | Recording on | 0.512 – 0.518 | 0.516 | - **Setup:** Cartpole on Newton (MJWarp), 4096 worlds, captured step, one repeating tracked task, `episode_budget=100_000`. Each run: 50 warm-up steps, then 1000 timed steps. - **Comparison:** commit `ad129e6fa`, with and without the recording block in `_bind_logs`. Runs alternated. - **Hardware and versions:** RTX PRO 6000 Blackwell, driver 595.99, torch 2.11, Warp 1.17. ## Limitations - **Main task gets a name.** Adding an event makes the main task a named subtask (`place=` above). That prefixes its use names, progress paths, and observation names, for example `goal` becomes `place.goal`. Observation slices and widths don't change, so policies and checkpoints still load. - **Opt-in, with a time limit.** `episode_events()` needs `record_episode_events=True`; without it, nothing is allocated and the call raises. The flag needs a time limit, since that sizes the buffer, and raises at construction otherwise. Counts are recorded either way. - **New `sequence` flags.** `sequence` now takes `repeat` and `tracked` as keyword arguments, so a subtask can no longer be named `repeat` or `tracked`. Passing a task under those names raises a `TypeError` rather than dropping it. All other changes are additive: `tracked` is the last field of `TaskCfg`, so positional arguments keep their meaning. - **Memory.** When on, the buffer is worst-case: 12 bytes per row, for example about 72 MB per repeating task for 100k episodes of 60 steps, or about 1.2 GB for 1000-step episodes. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - **`test_mdp2.py`** (both backends, eager and captured): - a tracked milestone; - Arena's dropped-object sequence, counted twice beside the task; - a task whose only completion is tracked; - errors for tracking a subtask of a sequence, choice, or split, or the root. - **`test_mdp2_env.py`:** - A tracked task that is never done leaves `Progress/task` and `progress/score` at 1. - A budget runs a second episode in one world, with the event done on each episode's first and last step. Per episode, the rows match `count`, and the first row's step matches `done_at`. - An event inside a repeating task, done in the step its parent restarts, is recorded once per episode. - **Mutation checks:** - Removing the `counted` filter turns the tracked-task tests red. - Removing any of the event guards turns the event test red. The guards are: the active-world mask, counting worlds that just ended, and the episode-index correction. - Letting a parent's restart clear the `occurred` flag (the bug that greptile found) also turns it red. - All 93 tests in `test/mdp2` and `test/envs/test_mdp2_env.py` pass locally. `uv run isaaclab --format` and the changelog check pass. ## 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 `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Description Kuka-Allegro Lift and Reorient ray-caster presets point at `/Camera` prims that only rendered cameras spawn. Scene creation fails with `No prim found .../Camera`. Correcting the paths alone still leaves OVPhysX base cameras at authored USD positions instead of their cloned environment positions. The configuration now names an existing mount and its offset. OVPhysX and Newton ray casters obtain that mount's pose through the existing `FrameView`; the sensor only applies its offset and casts rays. - Set the Kuka mounts to the environment root and palm link, with explicit 2.5 m depth clipping. - Resolve environment-root frames through clone placements. Frame views own ancestry, destination ordering, and body/world attachment. - Expose borrowed Warp transforms from frame views. OVPhysX frame views reuse shared scene-data publications; body-frame reads borrow their poses directly, and composed frames share storage with the existing pose outputs. - Remove both sensor pose mixins, Newton ray-caster site registration and pose kernels, OVPhysX per-view native pose bindings, and the now-unused per-world site-injection machinery. IMU, PVA, and frame-transformer site registration remains in use. - Preserve infinite missed-ray depth before clipping, avoiding NaN from `inf * 0` during projection. Production code is net **−256 lines** relative to `a691e2c34`. Coverage extends existing tests; no new test files or lifecycle hooks. Documentation and package changelog fragments are included. No unmerged dependencies. Custom ray-caster configurations must name existing mount frames. Newton ray-caster poses are available through `sensor.data.pos_w` / `quat_w`; the sensor-specific pose getter was removed with its mixin. ## Validation Reproduced before fixing: - Actual Lift scene fails at the missing `/Camera` path; config-only correction leaves camera positions wrong by up to 1.5 m. - Existing frame-view tests detect missing clone expansion (OVPhysX: 2 roots instead of 12; Newton: 1 instead of 4). - The missed-ray test returns NaN without the kernel fix. Freezing OVPhysX frame poses makes the native-write regression fail. With the fix: - **130 passed** across frame views (45 Newton, 38 OVPhysX), ray casters (8 Newton, 2 OVPhysX), ray-caster kernels (17), site injection/hard resets (10), and clone labels (10). - OVPhysX frame-view contract tests now move parents through the real asset API instead of bypassing native reads with a fixture buffer. - Actual Lift and Reorient on OVPhysX and Newton MJWarp, plus Lift on Newton Steel: 4 environments, both cameras, 64×64 depth, reset and two steps. Checked mount placement, wrist attachment, and finite depth within 2.5 m. - USD packed-transform reads and the writer guard checked directly. Full `uv run isaaclab --format` passed. Isaac Sim/Kit was unavailable locally. Its separate ray-caster adapter is unchanged by the frame-tracking consolidation and remains unvalidated here. Task checks are short rollouts, not training benchmarks. ## CI follow-up validation Camera pose conversion now uses Warp views to preserve the row strides of the shared transform buffer. The previous raw-pointer conversions read the wrong positions and quaternions after the first camera. The existing lighting regression reproduced this failure before the fix; all seven previously failing Newton image comparisons pass with unchanged reference images and tolerances. Consolidated the packed-transform buffer and writer-guard assertions into the existing frame-write test, which uses the supported writer API. Updated and consolidated depth-clipping assertions to require infinite missed-ray distances before clipping, rather than NaNs. - **111 existing tests passed:** 45 Newton frame-view cases, 38 OVPhysX frame-view cases, 17 ray-caster kernel cases, 3 lighting cases, 7 Newton image comparisons, and the exact H1 demo smoke test that timed out in CI (passed locally in 64 seconds). - The consolidated USD frame-write contract passed on CPU and both GPUs; the exact updated depth-clipping test body also passed with OVPhysX. - Full repository formatting and lint checks passed. - Isaac Sim/Kit remains unavailable locally. Additional standalone RTX validation was blocked locally in native stage attachment; the complete rendering and Fabric jobs still need CI confirmation. ## Type of change - Bug fix and consolidation of frame tracking ## Release backport - [x] <!-- backport-active-release --> Backport to 3.1 after merging into `main` ## Checklist - [x] Read the contribution guidelines - [x] Run repository formatting and lint checks - [x] Update documentation - [x] Validate behavior and consolidate coverage in existing tests - [x] Add changelog fragments for each touched package --------- Co-authored-by: Octi Zhang <zhengyuz@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## Description YAML reads currently use the system text encoding: UTF-16 configuration files fail on UTF-8 systems, and UTF-8 text can be silently misdecoded on legacy Windows locales. Read binary streams so PyYAML detects UTF-8 or BOM-marked UTF-16, and explicitly write UTF-8. The runtime fix changes only the two file-opening calls. Consolidated the output-encoding regression into the existing save/load test, retained the parametrized Unicode-input test, and enabled kitless CI selection. Rebased onto current `main`, retaining tensor serialization support. ## Compatibility Legacy locale-encoded YAML must be converted to UTF-8 before loading. The changelog records this compatibility change and includes the required major-version marker. ## Validation - All eight existing and consolidated YAML I/O cases passed. - Independently reverting binary input or explicit UTF-8 output makes the corresponding retained regression fail. - Full repository formatting and lint checks passed. ## Release backport - [x] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`.
## Summary Since 19:24 UTC on 2026-12-02, every pull request that runs the standalone demo smoke test has failed it (17 of 17): the shared Warp and OVRTX caches were evicted, and with cold caches three demos exceed their startup budget. This stops the license check from filling the cache budget, and lets the demos pass with cold caches so CI recovers by itself. # Description Two changes, one per commit: 1. **Disable the uv cache of the license check** (`.github/workflows/license-check.yaml`). The workflow runs only on pull requests, so its `license-check` job saves its ~2 GB uv cache under `refs/pull/<n>/merge`, where no other pull request can restore it: eight pull requests held eight identical copies. Once the repository is over its cache limit, GitHub evicts entries by last access, so the main-scoped Warp kernel and OVRTX shader caches are lost whenever the GPU jobs do not read them for a while. 2. **Raise the startup timeout of the demos that exceed it with cold caches** (`source/isaaclab/test/app/standalone_script_cases.py`): `startup_timeout=600.0` for `nist`, `h1_locomotion` and `bin_packing`, as `zoo` and `sharpa_rj45` already use. Without it, a cache eviction fails every pull request, so nothing merges to `main` and the caches, which only `main` publishes, never come back. Measured on 2026-12-01..02: | Observation | Value | | --- | --- | | Cache held at 22:22 UTC | ~18 GB, 16.8 GB of it `license-check` uv caches (GitHub evicts asynchronously: the total exceeds the 10 GB limit until the next eviction pass) | | Evictions at 22:26, 22:33 and 22:38 UTC | every entry not accessed in the previous ~15–20 min | | Warp kernel cache from `main` | last restored at 16:19 UTC, gone at 19:32 UTC | | `standalone demos (headless, non-Kit)` from 19:24 to 23:00 UTC | all 17 jobs that ran the demos timed out (cache misses) | | Cold-cache demo time on this pull request ([Docker + Tests run](https://github.com/isaac-sim/IsaacLab/actions/runs/46993763727), CI GPU runners sm120, driver 595.58.03; Warp, OVRTX kit and kitless caches all missed) | `nist` 382 s, `h1_locomotion` 375 s, `bin_packing` 361 s: all passed under the 600 s budget (warm `bin_packing`: 57–80 s) | | `license-check` install step with the cache on (188 jobs) | median 187 s (restored: 187 s, not restored: 187 s) | | `license-check` install step with the cache off (3 runs on this pull request) | 283 s, 95 s, 208 s | ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## 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 `uv run isaaclab --format` - Documentation changes are not required because only CI configuration and test settings changed - [x] My changes generate no new warnings - Test changes: the standalone demo smoke test run on this pull request, with the caches empty, exercises the new timeouts - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (`.skip`: test-only change) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description This automated draft updates CI to the current image from the configured Isaac Sim stream. | Field | Value | |---|---| | Image | `nvcr.io/0947644777160149/internal/isaac-sim` | | Moving tag | `latest-release-6-3` | | Current pin | `latest-release-6-3@sha256:3300cff37fde9d7ed77a5cb8fe555d623d0affa2a505e6f757fa9c5d7013aaf2` | | Candidate pin | `latest-release-6-3@sha256:6745f1725c9b4464b0e2a2ace196c0df88dca065bd3996037c43072e05dd730a` | Source: https://registry.ngc.nvidia.com/orgs/0947644777160149/teams/internal/containers/isaac-sim/tags New PRs are opened as drafts so maintainers can merge after the CI results are acceptable. ## Type of change - Infrastructure update ## Release backport - [x] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`. ## Screenshots Not applicable. ## Checklist Docker and GPU tests run on demand. This workflow comments `run-ci` after opening the pull request or updating its commit. - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] 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 Co-authored-by: isaaclab-bot[bot] <282401363+isaaclab-bot[bot]@users.noreply.github.com>
…-sim#9333) Reduce shared OVStage startup work for `Isaac-Reorient-Cube-Shadow-Camera-Direct` by resolving joint-wrench bindings through explicit articulation paths from the clone plan. Remove the separate binding-readiness event and prepare native physics consumers directly during OVPhysX runtime initialization. Assets, contact sensors, and joint-wrench sensors initialize after native cloning and warmup, before deferred render copies and public `PHYSICS_READY` callbacks. - Remove `PhysicsManager.binding_init_event`, `SensorBase.initialize_event`, and the OVPhysX binding event. - Keep `PHYSICS_READY` as the public readiness event, preserving existing callback priorities and owned-stage initialization order. - Track consumers through weak references, honor callback deregistration, and retain idempotent initialization. - Prepare late-created consumers on subsequent non-soft resets and reinitialize consumers after runtime rebuilds. - Complete and seal deferred render copies before public readiness callbacks can write stage data. - Use the upstream public `expand_env_pattern` helper for joint-wrench path resolution. ## Validation - 73 focused tests passed on current main with OVPhysX 0.8.1, covering lifecycle handling, joint-wrench/contact sensors, rigid-object collections, and deformables. - Verified shared-stage consumers initialize before public callbacks, including callbacks at priority −1000. - Verified late-created consumers, runtime rebuilds, and soft-reset behavior. - Seeded shared-main versus PR captures produced bitwise-identical RGB, policy observations, and wrench values. - Formatting, lint, changelog checks, and `git diff --check` passed. ### Local legacy / main / PR comparison Main revision: `467b3457` PR revision: `47049eac` All three arms used the same machine and library versions: - AMD Ryzen Threadripper PRO 3975WX - RTX PRO 6000 Blackwell Workstation Edition, driver 615.71.09 - OVPhysX `0.8.1.45833638316` - OVRTX `0.7.0.1794596436` - OVStage `0.4.0.1794520352` Workload: 1,225 environments, 64×64 RGB cameras, 50 warmup steps, and 100 measured simulation steps. Each arm received one excluded application warmup, followed by three unprofiled repetitions in balanced order. Application caches were retained. | Measurement | Legacy on main | Shared OVStage on main | Shared OVStage with PR | | --- | ---: | ---: | ---: | | Startup KPI — median | 17.172 s | 17.713 s | 17.485 s | | Startup KPI — mean | 17.155 s | 17.832 s | 17.509 s | | Initial reset-return observation — median | 21.405 s | 28.967 s | 23.077 s | | Wrench initialization — diagnostic | 155.85 ms | 159.09 ms | 7.59 ms | The PR’s startup median was **1.3% lower than shared main** and **1.8% above legacy main**. ## Release backport - [x] <!-- backport-active-release --> Backport to `release/3.1.0` after this pull request merges into `main`.
Signed-off-by: Pablo de Heras Ciechomski <115007036+pdherasciec@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This temporary draft runs the fork pull request checks for the OVPhysX recording change. Its head and comparison base match upstream Isaac Lab PR 9194. Product review stays upstream. This draft will be closed after the fork CI results are collected.