Repository navigation
Develop - #2
Merged
Merged
Develop#2
Conversation
# Description These tests are soon to be stable and can be run as part of the regular CI jobs. ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Mikhail Yurasov <myurasov@nvidia.com>
# Description
Adds commit-ID-based image tags to the post-merge CI Docker build.
Atm post-merge images are tagged with:
- `{repo}-{branch}-{version}`
- `{repo}-{branch}-{version}-b{run_number}`
This adds two additional tags:
- `{repo}-{branch}-{version}-{full_sha}` - full 40-character commit SHA
- `{repo}-{branch}-{version}-{short_sha}` - short 7-character commit SHA
This makes it easy to pull the exact image for a given commit:
```sh
# Branch tag
docker pull isaac-lab-base:IsaacLab-develop-latest-release-6-0
# Build number tag
docker pull isaac-lab-base:IsaacLab-develop-latest-release-6-0-b42
# Full commit SHA tag
docker pull isaac-lab-base:IsaacLab-develop-latest-release-6-0-a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2
# Short commit SHA tag
docker pull isaac-lab-base:IsaacLab-develop-latest-release-6-0-a1b2c3d
```
## Type of change
- New feature (non-breaking change which adds functionality)
## Checklist
- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [NA] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [NA] I have added tests that prove my fix is effective or that my
feature works
- [NA] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Co-authored-by: Antoine RICHARD <antoiner@nvidia.com>
# Description Fix failing CI for the articulation incoming body wrench ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…runners) (#5047) # Description Removes "Clean up stale Docker images" steps from `build.yaml`. These `docker image prune` steps are unnecessary because our self-hosted runners already handle Docker image cleanup. (ECR images are pruned with a lifecycle policy.) THis will help to increase local Docker cache hits on the runners, hopefully making our CI a little bit faster. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Increases the number of steps in Dex test so that it reaches the desired reward ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…fig (#5044) # Description Summary: - WristTiledCameraCfg in camera_cfg.py had a copy-paste bug where simple_shading_* variants (lines 104-124) used BASE_CAMERA_CFG instead of WRIST_CAMERA_CFG - This caused both base_camera and wrist_camera to resolve to the same prim path (/World/envs/env_.*/Camera), resulting in ValueError: A prim already exists at path when using duo_camera with any simple_shading_* preset - Fix: Replace BASE_CAMERA_CFG → WRIST_CAMERA_CFG for all 9 simple_shading_* entries in WristTiledCameraCfg Affected presets: simple_shading_constant_diffuse{64,128,256}, simple_shading_diffuse_mdl{64,128,256}, simple_shading_full_mdl{64,128,256} Not affected: rgb*, depth*, albedo* presets were already correctly using WRIST_CAMERA_CFG Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] 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 -->
) # Description Add a target_T_world parameter to IsaacTeleopDevice.advance() and TeleopSessionLifecycle.step() that left-multiplies the anchor matrix to rebase all output poses into an arbitrary target coordinate frame (e.g. robot base link for IK). Add a config-driven alternative via IsaacTeleopCfg.target_frame_prim_path: when set to a USD prim path, the device automatically reads the prim's world transform each frame via USDRT/Fabric and uses its inverse as the rebase matrix, removing the need for callers to compute it manually. Add _to_numpy_4x4 helper that accepts np.ndarray, torch.Tensor, wp.array, or any duck-typed .numpy() object and normalizes to float32 NumPy. Add comprehensive unit tests for the conversion helper, matrix rebase math, and config-vs-explicit auto-selection logic. Fixes # (issue) ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Added consistency validation to the camera outputs in ``test_rendering_correctness.py``. ## Type of change - New test ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Wait for all textures to load in IsaacRTX Renderer for Camera and Tiled Camera Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] 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 --> --------- Co-authored-by: esekkin <esekkin@nvidia.com> Co-authored-by: nvsekkin <72572910+nvsekkin@users.noreply.github.com> Co-authored-by: Kelly Guo <kellyg@nvidia.com>
# Description Update isaacsim install to workaround old mujoco-usd-converter converter on https://pypi.nvidia.com/mujoco-usd-converter/ Update installation test to use newton ## Type of change - Documentation update ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] 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 -->
) # Description Until now every PR ran **all** GPU test jobs regardless of what changed. That is no-good and needs to change. :) This PR: - Splits tests more evenly and according to functionality - Only runs relevant ones; manually all can still be executed - Adds reporting of the passed/failed tests on the Workflow page - Improves job cancellation so resources are freed faster ## Detailed changes - Added a `detect-changes` job that runs `git diff --name-only` to produce per-package `true`/`false` outputs; each test job skips itself when its package is untouched. Core/infra changes still trigger everything. Manual "run all" option available via GH UI. - Split `test-general` into per-package jobs: `test-isaaclab` (2 shards), `test-isaaclab-rl`, `-mimic`, `-contrib`, `-teleop`, `-visualizers`, `-assets`. Each job is independently gated and sharded. - Replaced hardcoded `include-files` whitelists with deterministic `shard-index % shard-count` sharding, fixing 7 silently skipped `isaaclab_tasks` tests. - Broke out cuRobo Planner and SkillGen into separate test jobs with their own conditional execution gates. - Fixed `conftest.py` exclude pattern that was matching a comma-separated string as one substring (never matched). - Container is now killed on cancellation signals so jobs stop quickly via GH UI. - JUnit results are converted to Markdown and displayed on the GH Actions job page, including skip reasons. - Faster code checkout and updated `actions/checkout@v4`, `actions/upload-artifact@v4`, `actions/download-artifact@v4` to latest SHA-pinned versions. - Extracted reusable composite action for repeating Docker test-run boilerplate. - Added Docker image pull timing for diagnostics. - Suppressed Node.js deprecation warnings in CI output. ## How test_train_environments.py is split The test function `test_train_environments` is parametrized by *task_spec* (all registered Isaac environments) and *workflow* (`rl_games`, `rsl_rl`, `sb3`, `skrl`), so pytest expands it into `N_tasks x 4_workflows` individual test items. The `pytest_collection_modifyitems` hook in conftest.py runs after pytest builds this full list and keeps only every Nth item based on `TEST_SHARD_INDEX` / `TEST_SHARD_COUNT` env vars (e.g. shard 0/3 gets items 0, 3, 6, ...). Each CI runner sees ~1/3 of the parametrized combinations, cutting wall time from ~1.2h to ~24min per shard. ## Type of change - New feature (non-breaking change which adds functionality) - 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) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: myurasov-nv <168484206+myurasov-nv@users.noreply.github.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Antoine Richard <antoiner@nvidia.com>
# Description Updated golden images in ``test_rendering_correctness.py`` to reflect changes in rendering output after synchronizing tests to wait for streaming completion. This ensures that rendering correctness is now validated against images generated under fully streamed, stable conditions. ## Type of change - Testing data update ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Fixes failing CI test for mock interfaces. This was caused by some pointers being deleted by the garbage collector. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [ ] 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 `./isaaclab.sh --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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…ges (#4831) # Description Semantic segmentation in :class:`~isaaclab_ov.renderers.OVRTXRenderer` maps semantic instance IDs to RGBA using the same pseudo-random per-ID HSV scheme as the Isaac Sim RTX render backend, so OVRTX and Isaac RTX produce matching colors for the same IDs. Numeric IDs ``0`` (BACKGROUND) and ``1`` (UNLABELLED) use fixed RGBA. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. | Before | After | | ------ | ----- | |  |  | ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 -->
# Description Extend `_parse_stub` and `lazy_export` to handle absolute named imports (e.g. `from isaaclab.envs.mdp import foo, bar`) in `.pyi` stubs. Previously only relative imports and absolute wildcard fallbacks were supported. Explicit names from absolute packages are now eagerly resolved and re-exported at `lazy_export()` time. ## Type of change - Bug Fix ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Summary Fixes CI test failures, improves CI infrastructure, and updates test reporting. ## Test fixes ### isaaclab (core) - [Reverted w/TODO] **test_first_frame_textured_rendering**: Replace fixed warmup step count (bumped 3x, still flaky) with a polling loop that checks each frame until textures are loaded, up to 200 steps. - **test_mock_data_properties / mock interfaces**: Fix mock articulation, rigid object, and rigid object collection data classes — cache warp arrays in `default_body_pose` to prevent GC from freeing memory while torch tensors still reference it. - **test_manager_based_rl_env_obs_spaces**: Fix timeout by reducing test complexity and removing redundant environment instantiations. - **test_env_rendering_logic**: Reduce number of iterations to prevent timeouts on 4-core CI runners. ### isaaclab_newton - [Reverted w/TODO] **test_contact_sensor**: Fix Newton contact sensor test assertions to match updated API shapes. ### isaaclab_tasks - [Reverted w/TODO] **test_environments_newton**: Skip environments that fail config validation (Newton + multi-asset spawning raises `ValueError` by design) instead of treating validation errors as test failures. - **test_rendering_correctness**: Switch from pixel-counting to SSIM for comparison, then revert to pixel L2 norm diff as pass/fail criterion while keeping SSIM as a reference metric (both displayed in step summary). Update golden image for `newton-isaacsim_rtx-simple_shading_full_mdl`. ## CI stuff ### Docker and image caching - **Deps cache detection**: Use `docker manifest inspect` instead of `docker pull` to check if commit-tagged images exist in ECR, avoiding unnecessary image downloads. - **Simplified image flow**: Build jobs tag the deps image with the commit tag without pulling; test jobs volume-mount checked-out source code instead of building an overlay image. Remove `Dockerfile.overlay`. ### Test reporting and rendering comparison - **Empty report handling**: Write an empty JUnit report when a submodule has no tests to prevent CI summary failures. - **Rendering comparison images**: Save comparison images (expected, actual, diff) as PNG file artifacts uploaded to the workflow run instead of inline base64 (which GitHub strips). Fix nested test name handling in image file paths. - **Display rendering metrics**: Show both pixel diff and SSIM scores in the GitHub step summary, with comparison images shown when diff > 0. ### Action versions and misc - **Bump GitHub Actions**: Update `actions/checkout` v4 → v6, `upload-artifact` v4 → v7, `download-artifact` v4 → v8, `peaceiris/actions-gh-pages` v3 → v4 across all workflows. - **Add isaaclab_ov tests**: Include `isaaclab_ov` package in the CI test matrix. ## 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) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
## Description When installing Isaac Sim packages via pip or uv, some dependencies have mismatched versions across pypi.nvidia.com and PyPI (`mujoco-usd-converter`), or only publish pre-release wheels (`tinyobjloader`). This causes install failures without the right flags. This PR adds the necessary flags to all install commands in the docs and configures the same defaults in pyproject.toml for uv users: - `--prerelease=allow` / `--pre` to allow pre-release wheels - `--index-strategy unsafe-best-match` to let uv resolve across indexes ## Type of change - Documentation update ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Declare replicator Base writer causes the test to hang indefinitly. Since the test is not really meaningful anyway this PR removes them Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 -->
# Description This PR robustify hydra to discover presets in deeply nested dictionary and provide test cases to verify the behavior. Before deeply nested preset are undiscovered ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 --> --------- Co-authored-by: AntoineRichard <antoiner@nvidia.com>
# Description It is a known limitation the is_subclass don't work very well with resolvable_string, We could just resolve it first and check the type is correct afterwards as workaround. Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 -->
Adds an HTML report to the `comparison-images` CI artifact for `test_rendering_correctness`. ## Type of change - Feature ## Screenshots <img width="3644" height="1840" alt="image" src="https://github.com/user-attachments/assets/603a1e9a-f218-42d0-88bd-971c603c618c" /> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: myurasov-nv <168484206+myurasov-nv@users.noreply.github.com> Co-authored-by: isaaclab-review-bot[bot] <270793704+isaaclab-review-bot[bot]@users.noreply.github.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…s in OperationalSpaceControllerAction (#5107) ## Description `OperationalSpaceControllerAction._compute_dynamic_quantities()` uses `self._joint_ids` to index into `get_generalized_mass_matrices()` and `get_gravity_compensation_forces()`. For floating-base robots, PhysX prepends 6 virtual DOFs (base position/orientation) to these tensors, so `self._joint_ids` indexes into the wrong rows and columns. This causes severely misaligned dynamic quantities — for example, an arm wrist joint may receive the inertia of a wheel motor — leading to exploding torques (>500 N·m reported on light joints). ## Fix Replace `self._joint_ids` with `self._jacobi_joint_idx` in `_compute_dynamic_quantities()`. This variable already correctly applies the +6 offset for floating-base robots and is used by the Jacobian computation in the same class. For fixed-base robots, `self._jacobi_joint_idx == self._joint_ids`, so behavior is unchanged. ## Verification - The Jacobian indexing in the same class already uses `self._jacobi_joint_idx` and works correctly - The Pink IK code (`pink_task_space_actions.py`) independently handles the same offset correctly via `_physx_floating_joint_indices_offset` - The existing OSC test suite uses Franka Panda (fixed-base), for which `self._jacobi_joint_idx == self._joint_ids` — so all existing tests pass unchanged ## Changes - **File:** `source/isaaclab/isaaclab/envs/mdp/actions/task_space_actions.py` - **Lines changed:** 2 (indexing variable swap in `_compute_dynamic_quantities`) - Added docstring explaining the floating-base offset Fixes #4999 --------- Signed-off-by: Fatima Anes <fatimaanes@users.noreply.github.com> Co-authored-by: Fatima Anes <fatimaanes@users.noreply.github.com> Co-authored-by: ooctipus <zhengyuz@nvidia.com>
# Description Fixed :func:`~isaaclab_tasks.utils.hydra.apply_overrides` raising a false conflict error when two global presets resolve to the same value for a path (e.g. ``newton`` aliased to ``cube``). ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 --> Co-authored-by: HuiDong Chen <huidongc@nvidia.com>
## Summary - **Pin the `newton` dependency to commit [`2684d75`](https://github.com/newton-physics/newton.git/commit/2684d75bfa4bb8b058a93b81c458a74b7701c997)** across all dependency manifests (`setup.py`), replacing the previous `newton==1.0.0` PyPI pin. - **Adapt `NewtonWarpRenderer` to upstream API changes.** The newton library replaced `SensorTiledCamera.RenderContext` with direct access via the `SensorTiledCamera` object. `RenderData` now holds a reference to the `newton_sensor` instead of the removed `render_context`, and attribute accesses (`world_count`, `device`, `utils`) are updated accordingly. ## Test Plan - [x] CLI install unit tests pass (14/14) - [x] Newton mock interface tests pass (46/46) - [ ] Run `./isaaclab.sh --install` in a clean environment and verify `newton` resolves to commit `2684d75` - [ ] Verify `NewtonWarpRenderer` initializes correctly with a tiled camera sensor in a Newton simulation
# Description This change introduces a hook for users to call an externally defined callback prior to an Isaac Lab script starting up. In Isaac Lab Arena, as an example, we're using this to dynamically register environments for training in. ## Fixes # (issue) N/A - new feature. ## Type of change New feature (non-breaking change which adds functionality) ## Screenshots The screenshot shows training, using `isaaclab/scripts/rsl_rl/train.py` in an environment defined externally in arena. <img width="1887" height="1096" alt="image" src="https://github.com/user-attachments/assets/f11344d3-6adc-4526-b564-919cdf4f442e" /> ## Limitations Right now this has only been added to `rsl-rl` scripts. The idea is to test this idea in a limited setting, with the option to expand the coverage of the feature later. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Develop branch was failing the lint check. This MR relints it. ## Fixes # (issue) Fixes lint test failures on `develop`. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots Please attach before and after screenshots of the change if applicable. NA ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Newton + Isaac RTX Rendering Performance Optimizations This document describes four performance optimizations applied to the Newton physics simulator when used with the Isaac Sim RTX renderer inside Isaac Lab. Together they reduce per-frame time from **~323 ms to ~60 ms** (a **5.4x speedup**), making Newton's rendering path slightly faster than PhysX's equivalent (~65 ms). All live primarily in two files: - `source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py` - `source/isaaclab_newton/isaaclab_newton/physics/_cubric.py` (new) with small additions to `PhysicsManager` and `SimulationContext` in the core `isaaclab` package. --- ## Baseline: ~323 ms per frame The starting point is the unoptimized Newton + RTX rendering loop. A Nsight Systems trace reveals the structure: - **Two physics steps** execute per frame (typical for 2× physics substeps per render frame). - **After each physics step**, Newton writes updated body transforms to Fabric (Omniverse's GPU scene-graph cache) and then triggers a full CPU hierarchy update via `update_world_xforms()`. This hierarchy walk recomputes every world-space transform in the scene from parent-child relationships — even though Newton already computed the correct world transforms and wrote them directly. - The Kit renderer also runs its own, lighter, internal hierarchy update. The per-step Fabric sync and hierarchy update dominates the frame. Because it runs after *every* physics step (not just before rendering), the cost is multiplied by the number of substeps. <img width="2169" height="750" alt="newton-rtx-baseline" src="https://github.com/user-attachments/assets/f7fc0079-9cca-43d2-9ade-9069e29718d4" /> --- ## Optimization 1 — Dirty-Flag Deferred Sync: ~244 ms per frame ### Problem Every physics substep was calling `sync_transforms_to_usd()`, which writes Newton body poses to Fabric and then invokes `update_world_xforms()`. The hierarchy update is expensive and only needs to happen once before the renderer reads the scene — not after every substep. ### Solution A **dirty-flag pattern** decouples physics stepping from Fabric synchronization: 1. **`_mark_transforms_dirty()`** — called at the end of each `_simulate()` call, sets `_transforms_dirty = True`. This is cheap (a boolean assignment). 2. **`sync_transforms_to_usd()`** — now checks `_transforms_dirty` at the top and returns immediately if transforms haven't changed. When dirty, it writes transforms and calls the hierarchy update, then clears the flag. 3. **`pre_render()`** — a new method added to `PhysicsManager` (base class) and overridden by `NewtonManager`. It calls `sync_transforms_to_usd()`. The `SimulationContext.render()` method calls `physics_manager.pre_render()` before updating visualizers and cameras, ensuring transforms are flushed exactly once per render frame. The key insight is that the renderer only reads scene transforms during `render()`, not during `step()`. By deferring the Fabric write and hierarchy update to render time, we eliminate redundant work when multiple physics substeps run per render frame. For 2 substeps per frame, this cuts the hierarchy update count in half. ### Key code paths - `_simulate()` → `_mark_transforms_dirty()` (just sets a flag) - `SimulationContext.render()` → `PhysicsManager.pre_render()` → `NewtonManager.sync_transforms_to_usd()` (runs once, clears the flag) <img width="2174" height="765" alt="newton-rtx-dirty" src="https://github.com/user-attachments/assets/eae6dbd9-7936-492e-a922-4fff5c0d7861" /> --- ## Optimization 2 — CUDA Graph Capture (Relaxed Mode): ~144 ms per frame ### Problem Looking at the physics steps in the trace, the GPU is underutilized. Each Warp kernel launch (collision detection, constraint solve, integration, FK evaluation) incurs a round-trip to the CPU via Python — launch overhead, GIL acquisition, and driver calls. For a simulation with many small kernels per substep, this CPU-side overhead becomes the bottleneck while the GPU sits idle between dispatches. Newton already supported CUDA graphs (pre-recording a sequence of kernel launches and replaying them with a single driver call), but CUDA graph capture was **disabled when RTX rendering was active**. The original code had: ```python use_cuda_graph = cfg.use_cuda_graph and (cls._usdrt_stage is None) ``` This was necessary because RTX's background threads use CUDA's legacy stream (stream 0) for async operations like `cudaImportExternalMemory`. Warp's standard `ScopedCapture()` uses `cudaStreamCaptureModeThreadLocal` on a blocking stream, which implicitly synchronizes with legacy stream 0. If RTX ops happen during capture, the CUDA runtime raises error 906 (`cudaErrorStreamCaptureImplicit`). ### Solution A **deferred, relaxed-mode CUDA graph capture** strategy that is compatible with RTX: **Deferral:** Graph capture is postponed from `initialize_solver()` to the first `step()` call. By that time, RTX has finished its initialization (all `cudaImportExternalMemory` calls are done) and is idle between render frames, providing a clean capture window. ```python # In initialize_solver(): cls._graph = None cls._graph_capture_pending = True # In step(): if cls._graph_capture_pending: cls._graph = cls._capture_relaxed_graph(device) ``` **Relaxed-mode capture** (`_capture_relaxed_graph`): This method works around two conflicting requirements: 1. **RTX compatibility**: RTX threads use legacy stream 0. A blocking stream (Warp's default) implicitly syncs with it, causing capture failures. Solution: create a **non-blocking stream** (`cudaStreamNonBlocking = 0x01`) that has no implicit synchronization with stream 0. 2. **Warp compatibility**: `mujoco_warp` internally calls `wp.capture_while`, which checks Warp's `device.captures` registry to decide whether to insert a conditional graph node or synchronize eagerly. Without a registered capture, it calls `wp.synchronize_stream` on the capturing stream — which is illegal inside graph capture. Solution: call `wp.capture_begin(external=True, stream=fresh_stream)` to register the capture in Warp's tracking without calling `cudaStreamBeginCapture` again (already done externally). The capture sequence: 1. **Warmup run** — execute `_simulate_physics_only()` eagerly to pre-allocate all MuJoCo-Warp scratch buffers (allocations are forbidden inside graph capture). 2. **Create a non-blocking CUDA stream** via `cudaStreamCreateWithFlags(..., NonBlocking)`. 3. **Begin capture** with `cudaStreamBeginCapture(..., cudaStreamCaptureModeRelaxed)` — relaxed mode allows other streams to operate freely during capture. 4. **Register with Warp** via `wp.capture_begin(external=True, stream=...)`. 5. **Record physics kernels** — `_simulate_physics_only()` inside `wp.ScopedStream(fresh_stream)`. 6. **Finalize** — `wp.capture_end()` then `cudaStreamEndCapture()` to obtain the graph. **Physics-only capture:** `_simulate_physics_only()` was factored out of `_simulate()` to exclude Fabric sync operations (`wp.synchronize_device`, `wp.fabricarray`) that are incompatible with graph capture. After graph replay, `step()` marks transforms dirty, and `pre_render()` handles the Fabric sync eagerly. The ctypes binding to `libcudart.so` is used directly because Warp's `ScopedCapture` doesn't expose control over capture mode or stream type. <img width="2168" height="745" alt="newton-rtx-cuda-graph" src="https://github.com/user-attachments/assets/eecfde04-41f4-488e-97e4-4d87cf617830" /> --- ## Optimization 3 — GPU Transform Hierarchy via cubric: ~60 ms per frame ### Problem Even with the dirty-flag pattern reducing hierarchy updates to once per render frame, the `update_world_xforms()` call is still a **CPU-side tree walk** over the entire Fabric scene graph. For scenes with thousands of prims (typical in multi-environment RL), this CPU hierarchy propagation is a significant bottleneck. The PhysX backend avoids this problem by using **cubric** — a GPU-accelerated transform hierarchy library. cubric runs the parent-child transform propagation entirely on the GPU via `IAdapter::compute()`, which is dramatically faster than the CPU walk. However, cubric has no Python bindings. ### Solution **Pure-Python ctypes bindings to cubric's Carbonite interface** (`_cubric.py`), allowing Newton to use the same GPU hierarchy propagation that PhysX uses. cubric is implemented as a Carbonite plugin and exposes its API through the `omni::cubric::IAdapter` interface. The bindings work by: 1. **Acquiring the Carbonite Framework** — `libcarb.so`'s `acquireFramework()` returns the singleton `Framework*`. 2. **Acquiring the IAdapter interface** — calling `tryAcquireInterfaceWithClient()` with the interface descriptor `omni::cubric::IAdapter` version `0.1`. 3. **Wrapping function pointers** — the `IAdapter` struct is a C++ vtable-like struct with function pointers at known offsets. Each function pointer is read from the struct at its byte offset and wrapped with `ctypes.CFUNCTYPE` to make it callable from Python. **Integration in `sync_transforms_to_usd()`:** The sync method now mirrors PhysX's `ScopedUSDRT` pattern: 1. **Pause Fabric change tracking** — `track_world_xform_changes(False)` and `track_local_xform_changes(False)`. This is critical: `SelectPrims` with `ReadWrite` access internally calls `getAttributeArrayGpu`, which marks Fabric buffers dirty. If tracking is still active, the hierarchy records the change and Kit's `updateWorldXforms` will do an expensive connectivity rebuild every frame. 2. **Write transforms** — the existing Warp kernel writes Newton body poses to Fabric's `omni:fabric:worldMatrix`. 3. **Resume tracking** — re-enable change tracking (in a `finally` block for safety). 4. **Run cubric compute** — `IAdapter::compute()` with `eRigidBody | eForceUpdate` options and `eAll` dirty mode. The `eRigidBody` flag tells cubric to use **inverse propagation** on prims tagged with `PhysicsRigidBodyAPI` (preserve the world matrix that Newton wrote, derive the local transform) and **forward propagation** on everything else (propagate parent transforms to children). `eForceUpdate` bypasses cubric's change-listener dirty check since we know transforms have changed. The adapter is lazily created on the first `sync_transforms_to_usd()` call rather than during `initialize_solver()`, to avoid startup-ordering issues with the cubric plugin. When cubric is unavailable (e.g., plugin not loaded, CPU-only), the code falls back gracefully to the CPU `update_world_xforms()` path. ``` sync_transforms_to_usd(): ┌─────────────────────────────────┐ │ Pause Fabric change tracking │ ├─────────────────────────────────┤ │ SelectPrims (ReadWrite) │ │ wp.launch(_set_fabric_transforms) │ ← GPU: write Newton poses to Fabric │ wp.synchronize_device() │ ├─────────────────────────────────┤ │ cubric IAdapter::compute() │ ← GPU: propagate hierarchy ├─────────────────────────────────┤ │ Resume Fabric change tracking │ └─────────────────────────────────┘ ``` A future Kit release is expected to ship official Python bindings for cubric, at which point the ctypes approach can be replaced. The result is a frame time of **~60 ms** — slightly faster than PhysX's **~65 ms** on the same scene. <img width="2169" height="896" alt="newton-rtx-cubric" src="https://github.com/user-attachments/assets/1474b806-fe82-44be-add3-324971ec37a0" /> --- ## Summary | Optimization | Frame Time | Speedup vs. Baseline | Key Technique | |---|---|---|---| | Baseline | ~323 ms | — | Sync + hierarchy after every substep | | Dirty-flag deferred sync | ~244 ms | 1.3× | Sync once per render frame, not per substep | | CUDA graph (relaxed mode) | ~144 ms | 2.2× | Eliminate per-kernel CPU launch overhead | | cubric GPU hierarchy | ~60 ms | 5.4× | GPU hierarchy propagation via ctypes bindings | All four optimizations are complementary and stack on top of each other. The final result matches or slightly beats the PhysX rendering path (~65 ms) while using Newton as the physics backend. *Co-developed with Toby Jones (NVIDIA).*
nblauch
merged commit Apr 1, 2026
b028482
into
nblauch:nick/v3.0.0-beta-fix-video
7 of 8 checks passed
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.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there