Repository navigation
Conversation
Greptile SummaryThe PR consolidates camera observations onto the shared image MDP path and removes redundant image, manager, and sensor-update work.
Confidence Score: 4/5The PR should not merge until the Kuka Allegro camera migration preserves the established RGB and depth observation semantics or explicitly migrates the policy contract. The shared image path applies per-frame mean subtraction to RGB and leaves finite depth in raw distance units, whereas the removed Kuka term used fixed RGB centering and bounded tanh depth values consumed directly by its CNN. Files Needing Attention: source/isaaclab_tasks/isaaclab_tasks/core/lift/config/kuka_allegro/camera_cfg.py; source/isaaclab_tasks/isaaclab_tasks/core/lift/mdp/observations.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
R[Renderer] --> C[Camera ProxyArray]
C --> I[Shared image MDP term]
I --> N[Normalize and convert layout]
N --> O[Observation manager]
O --> P[Policy CNN]
Reviews (1): Last reviewed commit: "Optimize shared camera image observation..." | Re-trigger Greptile |
| func=mdp.image, | ||
| params={ | ||
| "sensor_cfg": SceneEntityCfg("base_camera"), | ||
| "data_type": None, | ||
| "permute": True, | ||
| "clone": False, |
There was a problem hiding this comment.
Camera normalization contract changes
When a Kuka Allegro task selects an RGB or depth camera preset, the shared mdp.image term replaces the previous fixed RGB centering and bounded depth transformation with per-frame RGB mean subtraction or raw finite depth values. The policy CNN consumes these values directly, so existing policies and checkpoints receive a different observation distribution and produce incorrect behavior.
Knowledge Base Used:
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Isaac Lab Review Bot
The optimization direction is sound, but the Kuka Allegro migration changes established camera normalization semantics, removes the exported vision_camera API without deprecation, and breaks positional callers of normalize_image_uint8 by inserting a parameter before out. These compatibility issues should be resolved before merge.
- Design and architecture: Consolidating task-specific camera observations onto the shared image MDP term reduces duplicated work, but the shared term does not preserve the stationary RGB/depth normalization and NaN handling required by the migrated Kuka Allegro path. The migration therefore changes model inputs rather than serving as a behavior-preserving consolidation.
- API: Deleting the publicly exported
isaaclab_tasks.core.lift.mdp.vision_cameraviolates the repository’s deprecation requirement and lacks migration guidance. Additionally, insertingoutput_channel_dimbefore the existingoutparameter innormalize_image_uint8rebinds valid positional calls; the new parameter should be appended or made keyword-only. - Implementation: The fused Warp layout conversion and single-term observation shortcut are supported by the shown implementation and tests. However, replacing
vision_camerawithmdp.imagechanges RGB normalization fromx/255 - 0.5to per-image mean subtraction, changes depth normalization fromtanh(depth/2) - 0.5to infinity replacement only, and no longer performs the same NaN sanitization. The prior transforms should be preserved or introduced through an explicit compatibility path.
Significant concerns. Posted 3 actionable findings inline.
Automated review; human maintainers own approval decisions.
| Fixed | ||
| ^^^^^ | ||
|
|
||
| * Reused the shared image observation term across camera tasks, including dexterous Lift, and |
There was a problem hiding this comment.
🟡 Warning · Api — Removed public vision_camera lacks deprecation path
vision_camera is exported from isaaclab_tasks.core.lift.mdp (__all__ and __init__.pyi) and is deleted outright, so downstream configs importing it now fail with AttributeError. Repository rules require a prior deprecation and migration path, and changelog fragments must mark breaking changes with migration guidance; this fragment mentions only reuse of the shared term. Keep a deprecated alias or document the removal and replacement.
| noise=Unoise(n_min=-0.0, n_max=0.0), | ||
| clip=(-1.0, 1.0), | ||
| params={"sensor_cfg": SceneEntityCfg("base_camera")}, | ||
| func=mdp.image, |
There was a problem hiding this comment.
🟡 Warning · Api — Kuka camera normalization semantics silently changed
The replaced vision_camera applied nan_to_num_ plus stationary scaling (x/255 - 0.5, and tanh(d/2) - 0.5 for the depth/raycaster presets). mdp.image with normalize=True instead subtracts a per-frame spatial mean for RGB and only maps inf -> 0 for depth, leaving NaNs and unbounded metres. Existing Isaac-Lift-KukaAllegro-Camera configs and checkpoints therefore see a different observation distribution. Preserve the prior transforms or make the break explicit.
| def normalize_image_uint8( | ||
| src: torch.Tensor, | ||
| channel_dim: int = -1, | ||
| output_channel_dim: int | None = None, |
There was a problem hiding this comment.
🔵 Suggestion · Api — New parameter inserted before existing out argument
normalize_image_uint8 previously had the signature (src, channel_dim=-1, out=None). Placing output_channel_dim third rebinds an existing positional call such as normalize_image_uint8(src, 1, out_buf), so the tensor is treated as a channel index and fails during resolution. Appending the new parameter after out, or making it keyword-only, preserves the existing positional contract.
| table_cam_segmentation = ObsTerm( | ||
| func=mdp.image, | ||
| params={"sensor_cfg": SceneEntityCfg("table_cam"), "data_type": "semantic_segmentation", "normalize": True}, | ||
| params={ |
There was a problem hiding this comment.
can we just default the clone to False?
ooctipus
left a comment
There was a problem hiding this comment.
maybe we can default clone to false to avoid too many line breaks
…icy as integers (#7531) ## Description Every `semantic_segmentation` camera row in benchmark dispatch `20260901-153531` (image built from `origin/release/3.0.0` at `f88dbc59c82`, `rsl_rl`, all core tasks) failed at the first training step — **60 failed rows** total, with: ``` RuntimeError: Input type (unsigned char) and bias type (float) should be the same ``` The failure is renderer-independent: `isaacsim_rtx` 18 rows, `ovrtx` 18, `newton_renderer` 24. The segmentation output reaches the feature extractor's first convolution still as an integer tensor. ### Root cause Both Cartpole camera observation paths normalize only RGB-like and `depth` data types, so `semantic_segmentation` falls through unconverted: - `source/isaaclab_tasks/isaaclab_tasks/core/cartpole/mdp/observations.py` (`CameraImageStack.__call__`) - `source/isaaclab_tasks/isaaclab_tasks/core/cartpole/cartpole_direct_camera_env.py` (`CartpoleCameraEnv._get_observations`) Both files are byte-identical between `release/3.0.0` and `develop`, so the bug is present on `develop` as-is. ### Why the fix belongs in the observation term The renderer is producing exactly what its published contract says it should — `NewtonWarpRenderer.supported_output_types` deliberately emits RGBA `uint8` when colorized and a single `int32` id channel when not, *"matching the Isaac RTX / OVRTX contract so backend-independent consumers see the same dtype"*. Segmentation label ids are integers; making a renderer emit floats would break every consumer that reads ids (visualization, semantic id lookup, dataset export). Nor does it belong in the feature extractor: the extractor's contract is "float32 image in", and the observation pipeline already owns dtype/layout normalization for every other camera data type via `normalize_camera_image`. Making the CNN defensively cast would paper over the same gap for every future task and duplicate logic that already exists. So the fix goes where the gap is: the observation term, routed through the shared helper. ### The int32-vs-uint8 subtlety Segmentation has **two** dtypes depending on `colorize_semantic_segmentation`: - `colorize=True` (the `CameraCfg` default, and what the failing sweep used): RGBA `uint8`, 4 channels - `colorize=False`: a single `int32` label-id channel `normalize_camera_image` already handled the colorized `uint8` case correctly — it was simply never called for this data type. The non-colorized `int32` case was **not** handled: it fell through every branch and was returned unchanged, so a fix that only wired up the existing call would still break `colorize=False`. The `int32` half is not demonstrated by the sweep (see the caveat below), but it is not opportunistic scope creep: the caller now dispatches on the data type alone, so the helper is the single place that decides what segmentation means, and leaving it to silently return `int32` unchanged would ship a fix that reads as complete while still crashing under `colorize=False`. Handled by keying on the tensor dtype rather than on the `colorize` flag or a hardcoded uint8 assumption: - In `normalize_camera_image`, non-`uint8` segmentation is cast to `float32`. Label ids carry no meaningful scale, so they are cast and **not** rescaled — applying `(x / 255) - mean` to label ids would be inventing semantics. - In both Cartpole callers, the uint8 deferred-normalize fast path (which keeps the frame-stack ring buffer in `uint8` for cheaper per-step copies) is gated on `camera_data.dtype == torch.uint8`, so colorized segmentation rides it and `int32` label maps are normalized before entering the ring. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Test evidence Construction-only reproduction, no simulator needed. The bug fires when the extractor first sees an observation, so exercising the observation term directly on stub camera output is sufficient and much faster. Extended `source/isaaclab/test/utils/test_images.py` with the `int32` case next to the existing colorized case, and dropped `semantic_segmentation` from the "unknown type passthrough" parametrization — that class asserts `out is src` under the heading "Unknown data_types return the input unchanged", and segmentation is no longer unknown. It would still pass by the accident that `.float()` on a float32 tensor returns self, so leaving it would have left the suite documenting the opposite of the new behaviour. Added `source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py` for the observation term itself; no sim-free test of it existed (the `test_rendering_cartpole*.py` neighbours need a renderer and golden images, and the `*_camera_presets.py` files only resolve configs). Two tests, each parametrized over `frame_stack` `[1, 2]` so both the immediate and the deferred-normalize branch are covered, and each asserting exact values rather than just dtype. Both dtypes are covered: colorized `uint8` RGBA and non-colorized `int32`. **Without the fix** (the three source files reverted to `origin/develop`, tests kept): ``` $ uv run --frozen --extra dev python -m pytest source/isaaclab/test/utils/test_images.py \ source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py -q FAILED test_images.py::TestNormalizeCameraImageSegmentation::test_non_colorized_semantic_segmentation_is_cast_to_float[cpu] FAILED test_images.py::TestNormalizeCameraImageSegmentation::test_non_colorized_semantic_segmentation_is_cast_to_float[cuda:0] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cpu-1] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cpu-2] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cuda:0-1] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cuda:0-2] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cpu-1] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cpu-2] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cuda:0-1] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cuda:0-2] 10 failed, 62 passed in 8.56s ``` Note that the pre-existing colorized-`uint8` helper test passes on `develop`: `normalize_camera_image` always handled that case correctly, and the crash came from the Cartpole callers never invoking it. **With the fix:** ``` $ uv run --frozen --extra dev python -m pytest source/isaaclab/test/utils/test_images.py \ source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py -q 72 passed in 3.53s ``` `uv run --frozen isaaclab -f` passes clean. ### Caveats a reviewer should know - The sweep exercised the **colorized `uint8` path**: `CameraCfg.colorize_semantic_segmentation` defaults to `True` and the Cartpole config declares `observation_space=[4, 96, 96]` (4 channels = RGBA). The `int32` path is reachable only with `colorize=False`; it was genuinely broken (the helper returned it unchanged) but the 60 rows do not prove it. - The **direct-environment edit is not covered by a test**. `CartpoleCameraEnv._get_observations` calls `super()._get_observations()`, which needs a constructed environment, so it cannot be exercised sim-free. The edit is line-for-line identical to the manager-term edit, which is tested. ## Relationship to #7440 #7440 touches `isaaclab/utils/images.py` and the shared `isaaclab/envs/mdp/observations.py::image` term, but **neither Cartpole file**, so it does not fix this. Its `images.py` work is a fused normalize+layout-conversion perf change that adds an `output_channel_dim` parameter; it leaves the segmentation dispatch condition semantically unchanged and does not add `int32` handling. This PR adds an early-return branch above that condition and leaves #7440's line untouched, so the two should merge cleanly in either order. ## Checklist - [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 (docstrings for `normalize_camera_image`) - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file (changelog fragments; `extension.toml` is generated) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop`
…icy as integers (#7531) ## Description Every `semantic_segmentation` camera row in benchmark dispatch `20260901-153531` (image built from `origin/release/3.0.0` at `f88dbc59c82`, `rsl_rl`, all core tasks) failed at the first training step — **60 failed rows** total, with: ``` RuntimeError: Input type (unsigned char) and bias type (float) should be the same ``` The failure is renderer-independent: `isaacsim_rtx` 18 rows, `ovrtx` 18, `newton_renderer` 24. The segmentation output reaches the feature extractor's first convolution still as an integer tensor. ### Root cause Both Cartpole camera observation paths normalize only RGB-like and `depth` data types, so `semantic_segmentation` falls through unconverted: - `source/isaaclab_tasks/isaaclab_tasks/core/cartpole/mdp/observations.py` (`CameraImageStack.__call__`) - `source/isaaclab_tasks/isaaclab_tasks/core/cartpole/cartpole_direct_camera_env.py` (`CartpoleCameraEnv._get_observations`) Both files are byte-identical between `release/3.0.0` and `develop`, so the bug is present on `develop` as-is. ### Why the fix belongs in the observation term The renderer is producing exactly what its published contract says it should — `NewtonWarpRenderer.supported_output_types` deliberately emits RGBA `uint8` when colorized and a single `int32` id channel when not, *"matching the Isaac RTX / OVRTX contract so backend-independent consumers see the same dtype"*. Segmentation label ids are integers; making a renderer emit floats would break every consumer that reads ids (visualization, semantic id lookup, dataset export). Nor does it belong in the feature extractor: the extractor's contract is "float32 image in", and the observation pipeline already owns dtype/layout normalization for every other camera data type via `normalize_camera_image`. Making the CNN defensively cast would paper over the same gap for every future task and duplicate logic that already exists. So the fix goes where the gap is: the observation term, routed through the shared helper. ### The int32-vs-uint8 subtlety Segmentation has **two** dtypes depending on `colorize_semantic_segmentation`: - `colorize=True` (the `CameraCfg` default, and what the failing sweep used): RGBA `uint8`, 4 channels - `colorize=False`: a single `int32` label-id channel `normalize_camera_image` already handled the colorized `uint8` case correctly — it was simply never called for this data type. The non-colorized `int32` case was **not** handled: it fell through every branch and was returned unchanged, so a fix that only wired up the existing call would still break `colorize=False`. The `int32` half is not demonstrated by the sweep (see the caveat below), but it is not opportunistic scope creep: the caller now dispatches on the data type alone, so the helper is the single place that decides what segmentation means, and leaving it to silently return `int32` unchanged would ship a fix that reads as complete while still crashing under `colorize=False`. Handled by keying on the tensor dtype rather than on the `colorize` flag or a hardcoded uint8 assumption: - In `normalize_camera_image`, non-`uint8` segmentation is cast to `float32`. Label ids carry no meaningful scale, so they are cast and **not** rescaled — applying `(x / 255) - mean` to label ids would be inventing semantics. - In both Cartpole callers, the uint8 deferred-normalize fast path (which keeps the frame-stack ring buffer in `uint8` for cheaper per-step copies) is gated on `camera_data.dtype == torch.uint8`, so colorized segmentation rides it and `int32` label maps are normalized before entering the ring. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Test evidence Construction-only reproduction, no simulator needed. The bug fires when the extractor first sees an observation, so exercising the observation term directly on stub camera output is sufficient and much faster. Extended `source/isaaclab/test/utils/test_images.py` with the `int32` case next to the existing colorized case, and dropped `semantic_segmentation` from the "unknown type passthrough" parametrization — that class asserts `out is src` under the heading "Unknown data_types return the input unchanged", and segmentation is no longer unknown. It would still pass by the accident that `.float()` on a float32 tensor returns self, so leaving it would have left the suite documenting the opposite of the new behaviour. Added `source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py` for the observation term itself; no sim-free test of it existed (the `test_rendering_cartpole*.py` neighbours need a renderer and golden images, and the `*_camera_presets.py` files only resolve configs). Two tests, each parametrized over `frame_stack` `[1, 2]` so both the immediate and the deferred-normalize branch are covered, and each asserting exact values rather than just dtype. Both dtypes are covered: colorized `uint8` RGBA and non-colorized `int32`. **Without the fix** (the three source files reverted to `origin/develop`, tests kept): ``` $ uv run --frozen --extra dev python -m pytest source/isaaclab/test/utils/test_images.py \ source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py -q FAILED test_images.py::TestNormalizeCameraImageSegmentation::test_non_colorized_semantic_segmentation_is_cast_to_float[cpu] FAILED test_images.py::TestNormalizeCameraImageSegmentation::test_non_colorized_semantic_segmentation_is_cast_to_float[cuda:0] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cpu-1] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cpu-2] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cuda:0-1] FAILED test_cartpole_camera_observations.py::test_colorized_segmentation_is_normalized_like_rgb[cuda:0-2] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cpu-1] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cpu-2] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cuda:0-1] FAILED test_cartpole_camera_observations.py::test_non_colorized_segmentation_is_cast_to_float[cuda:0-2] 10 failed, 62 passed in 8.56s ``` Note that the pre-existing colorized-`uint8` helper test passes on `develop`: `normalize_camera_image` always handled that case correctly, and the crash came from the Cartpole callers never invoking it. **With the fix:** ``` $ uv run --frozen --extra dev python -m pytest source/isaaclab/test/utils/test_images.py \ source/isaaclab_tasks/test/core/test_cartpole_camera_observations.py -q 72 passed in 3.53s ``` `uv run --frozen isaaclab -f` passes clean. ### Caveats a reviewer should know - The sweep exercised the **colorized `uint8` path**: `CameraCfg.colorize_semantic_segmentation` defaults to `True` and the Cartpole config declares `observation_space=[4, 96, 96]` (4 channels = RGBA). The `int32` path is reachable only with `colorize=False`; it was genuinely broken (the helper returned it unchanged) but the 60 rows do not prove it. - The **direct-environment edit is not covered by a test**. `CartpoleCameraEnv._get_observations` calls `super()._get_observations()`, which needs a constructed environment, so it cannot be exercised sim-free. The edit is line-for-line identical to the manager-term edit, which is tested. ## Relationship to #7440 #7440 touches `isaaclab/utils/images.py` and the shared `isaaclab/envs/mdp/observations.py::image` term, but **neither Cartpole file**, so it does not fix this. Its `images.py` work is a fused normalize+layout-conversion perf change that adds an `output_channel_dim` parameter; it leaves the segmentation dispatch condition semantically unchanged and does not add `int32` handling. This PR adds an early-return branch above that condition and leaves #7440's line untouched, so the two should merge cleanly in either order. ## Checklist - [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 (docstrings for `normalize_camera_image`) - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file (changelog fragments; `extension.toml` is generated) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` (cherry picked from commit d7d0976)
Resolve conflicts by taking develop's side; the follow-up commit reapplies the image observation changes on top of develop.
- Add a stationary option to mdp.image and normalize_camera_image that keeps the Kuka Allegro fixed-range RGB and depth normalization, and deprecate lift's vision_camera in favor of it. - Default mdp.image clone to False, since the observation manager already copies term outputs, and drop the per-task clone overrides. - Move output_channel_dim after out in normalize_image_uint8 and add a constant center so stationary RGB keeps the fused Warp kernel. - Apply layout conversion to every normalize_camera_image branch, including non-colorized semantic segmentation. - Skip the camera mask host copy inside _env_mask_has_any so batched rendering benefits too. - Replace implementation-coupled and duplicate tests with an isolation check in the existing observation history test.
The Kuka Allegro camera tasks now use mdp.image with stationary=True, which produces the same observations.
- Read sensor outputs through ProxyArray.torch in image terms; the Warp dtype never matched torch.uint8, so the fused normalize never ran and colorized segmentation was not scaled. - Let the fused uint8 normalize read strided views such as RGB inside RGBA and launch over the output layout so writes coalesce. - Keep Kuka Allegro camera images raw (uint8 color) and normalize them inside the spatial-softmax model, which also covers exported policies. - Add ObservationTermCfg.clone_output to skip redundant copies of fresh term outputs, and drop double clones in stacked image terms. - Remove per-step host syncs in the termination manager, lift rewards, and marker validation; default point-cloud markers off. - Render Newton cameras of a batch with one sensor-graph launch. - Expose RSL-RL mixed precision and torch.compile settings.
…e-mdp # Conflicts: # source/isaaclab/test/managers/test_observation_manager_unit.py # source/isaaclab/test/utils/warp/test_image_ops.py
Ports the changes of isaac-sim#7495 onto this branch: device-side index fills in reset paths, a change-detected Newton sensor flag upload, and an identity shortcut for zero-width uniform noise. The termination, lift reward, and marker changes overlap with the previous commit and are reconciled here.
- Normalize uint8 images with a single addcmul pass; the separate cast, scale, and shift passes made the PPO update slower than the float32 baseline despite the smaller minibatch gathers. - Enable cuDNN benchmark mode for RSL-RL training, since observation and minibatch shapes are fixed.
# Description Part 1 of the camera performance series (see the series list below). This part fixes a bug that also blocked the fast image path. `sensor.data.output[...]` returns a `ProxyArray`, whose `.dtype` is the Warp dtype. `mdp.image` and the Cartpole camera observations passed it straight into `normalize_camera_image`, so every `images.dtype == torch.uint8` check failed: - colorized semantic segmentation was only cast to float and reached policies as values in `[0, 255]` instead of `[0, 1]`; - the fused uint8 normalization kernel never ran. The image terms now read `.torch`. The other camera tasks that relied on the deprecated implicit `ProxyArray`-as-tensor conversion (Cartpole showcase, stack blueprint, drone ARL) do the same. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - New `test_colorized_segmentation_is_scaled` (`mdp.image`) fails on `develop` and passes here. - The Cartpole camera observation test's fake sensor now returns a real `ProxyArray`, like actual sensors. With it, 4 of 8 cases fail on `develop` (the same segmentation bug) and all pass here. - `test_stacked_image_mdp.py`, `test_cartpole_camera_observations.py` and `test_images.py` pass. ## Series results Measured on `Isaac-Lift-KukaAllegro-Camera`, 4096 envs, Newton physics and Newton renderer, RTX PRO 6000 Blackwell, with all 7 parts applied (reference branch: #7440). | Metric | Before | After | |---|---|---| | Env step, RGB 128, one camera | 44.4 ms | 37.3 ms (+19% throughput) | | Env step, RGB 128, two cameras | 77.3 ms | 64.9 ms (+19%) | | Env step, RGB 64 | 26.8 ms | 23.6 ms (+14%) | | Env step, depth 128 | 37.3 ms | 33.7 ms (+10%) | | RSL-RL iteration, RGB 128, one camera | 3.19 s | 2.88 s (+11%), peak memory −40% | | RSL-RL iteration, RGB 128, two cameras | 6.23 s | 5.63 s (+11%), peak memory −47% | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop`
# Description Part 1 of the camera performance series (see the series list below). This part fixes a bug that also blocked the fast image path. `sensor.data.output[...]` returns a `ProxyArray`, whose `.dtype` is the Warp dtype. `mdp.image` and the Cartpole camera observations passed it straight into `normalize_camera_image`, so every `images.dtype == torch.uint8` check failed: - colorized semantic segmentation was only cast to float and reached policies as values in `[0, 255]` instead of `[0, 1]`; - the fused uint8 normalization kernel never ran. The image terms now read `.torch`. The other camera tasks that relied on the deprecated implicit `ProxyArray`-as-tensor conversion (Cartpole showcase, stack blueprint, drone ARL) do the same. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - New `test_colorized_segmentation_is_scaled` (`mdp.image`) fails on `develop` and passes here. - The Cartpole camera observation test's fake sensor now returns a real `ProxyArray`, like actual sensors. With it, 4 of 8 cases fail on `develop` (the same segmentation bug) and all pass here. - `test_stacked_image_mdp.py`, `test_cartpole_camera_observations.py` and `test_images.py` pass. ## Series results Measured on `Isaac-Lift-KukaAllegro-Camera`, 4096 envs, Newton physics and Newton renderer, RTX PRO 6000 Blackwell, with all 7 parts applied (reference branch: #7440). | Metric | Before | After | |---|---|---| | Env step, RGB 128, one camera | 44.4 ms | 37.3 ms (+19% throughput) | | Env step, RGB 128, two cameras | 77.3 ms | 64.9 ms (+19%) | | Env step, RGB 64 | 26.8 ms | 23.6 ms (+14%) | | Env step, depth 128 | 37.3 ms | 33.7 ms (+10%) | | RSL-RL iteration, RGB 128, one camera | 3.19 s | 2.88 s (+11%), peak memory −40% | | RSL-RL iteration, RGB 128, two cameras | 6.23 s | 5.63 s (+11%), peak memory −47% | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` (cherry picked from commit 1db0ea5)
# Description Part 2 of the camera performance series. #8036 has merged; this PR is rebased onto `develop` and contains one commit. Camera `rgb` outputs are strided views into the RGBA buffer (channel stride 4). `normalize_image_uint8` required contiguous input, so every RGB observation took a PyTorch fallback of about five full passes: cast, divide, subtract, permute-copy, and the manager clone. At 4096 envs and 128x128 that took 5.6 ms per step, where one fused pass should take about 1 ms. - `normalize_image_uint8` accepts strided input. `wp.from_torch` keeps the strides, and the kernel now launches over the output layout so the float32 writes coalesce. - `output_channel_dim` on `normalize_image_uint8` and `normalize_camera_image` writes channel-first output directly. `mdp.image(permute=True)` and the Cartpole camera observations use it instead of a separate permute copy. - The layout conversion applies to every `normalize_camera_image` branch, including non-colorized segmentation. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: develop) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `test_strided_rgb_view_with_layout_conversion` checks the RGB-of-RGBA view normalized straight into contiguous BCHW against a PyTorch reference, on CPU and CUDA. It replaces the test that rejected non-contiguous input. - `test_image_ops.py`, `test_images.py`, `test_stacked_image_mdp.py` and `test_cartpole_camera_observations.py` pass. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]>
# Description Part 2 of the camera performance series. #8036 has merged; this PR is rebased onto `develop` and contains one commit. Camera `rgb` outputs are strided views into the RGBA buffer (channel stride 4). `normalize_image_uint8` required contiguous input, so every RGB observation took a PyTorch fallback of about five full passes: cast, divide, subtract, permute-copy, and the manager clone. At 4096 envs and 128x128 that took 5.6 ms per step, where one fused pass should take about 1 ms. - `normalize_image_uint8` accepts strided input. `wp.from_torch` keeps the strides, and the kernel now launches over the output layout so the float32 writes coalesce. - `output_channel_dim` on `normalize_image_uint8` and `normalize_camera_image` writes channel-first output directly. `mdp.image(permute=True)` and the Cartpole camera observations use it instead of a separate permute copy. - The layout conversion applies to every `normalize_camera_image` branch, including non-colorized segmentation. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: develop) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `test_strided_rgb_view_with_layout_conversion` checks the RGB-of-RGBA view normalized straight into contiguous BCHW against a PyTorch reference, on CPU and CUDA. It replaces the test that rejected non-contiguous input. - `test_image_ops.py`, `test_images.py`, `test_stacked_image_mdp.py` and `test_cartpole_camera_observations.py` pass. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> (cherry picked from commit 7005990)
) # Description Added opt-in `torch.compile` support for the actor and critic in RSL-RL on-policy runners. `RslRlOnPolicyRunnerCfg.torch_compile_mode` defaults to `None` (disabled), preserving eager execution. Set `agent.torch_compile_mode=default` on the CLI to enable compilation. - Exposed `RslRlPpoAlgorithmCfg.use_mixed_precision` for the bfloat16 policy update; it remains **off by default**. The compatibility helper drops this argument for RSL-RL PPO versions that do not accept it. - Enabled `cudnn.benchmark` in the training entrypoint, matching the existing non-deterministic environment seeding behavior. Both benchmark controls already use cuDNN autotuning and TF32, so the results below isolate **compilation**, not a new cuDNN speedup. - Shortened the config docstrings to one line, made the cuDNN explanation a one-line inline comment, and removed a redundant compatibility comment. Compilation covers actor/critic model calls and their differentiated operations. Environment physics, rendering, and the surrounding PPO optimizer/control loop are not compiled by this setting. RSL-RL supports `"default"` and `"max-autotune-no-cudagraphs"`; it rejects `"reduce-overhead"` and `"max-autotune"` because their CUDA-graph replay is incompatible with its multi-model forward pattern. ## Performance — 4,096 environments Measured on the code committed as `4826cf32b` (parent PR head `62335765c`), 2026-09-27, on one **RTX PRO 6000 Blackwell Workstation Edition, 96 GB**, driver 595.91.07. PyTorch **2.12.0+cu130**, RSL-RL **5.5.1**, Newton **1.6.0**, MuJoCo Warp **3.12.0**, Warp **1.17.0**. All GPU runs were sequential. - **Camera:** `Isaac-Lift-KukaAllegro-Camera`, **4,096 environments**, `presets=duo_camera,rgb64` (two RGB **64×64** cameras), Newton MJWarp physics, Newton renderer, no viewer. Spatial-softmax CNN actor and state MLP critic. Default PPO settings: **32-step horizon, 5 epochs, 8 minibatches**, 16,384 transitions/minibatch. - **State locomotion:** `Isaac-Velocity-Rough-AnymalD`, **unchanged environment defaults**, including **4,096 environments**, terrain, observations, randomization, physics settings and Newton MJWarp backend. No camera or interactive viewer. Default MLP actor/critic and PPO settings: **24-step horizon, 5 epochs, 4 minibatches**, 24,576 transitions/minibatch. Only run duration and local logging were selected for the benchmark. - Both used default **seed 42**, **mixed precision off**, cuDNN benchmarking and TF32 on. The measurements used an intermediate revision with compilation enabled by default; eager controls used `agent.torch_compile_mode=null`. The final PR leaves compilation disabled by default. The commands below explicitly select the measured compiled mode. ### Steady-state throughput Three fresh processes per task/mode; each ran **40 training iterations**, with the **first 10 excluded**. Values are medians of the three per-process medians. Throughput counts environment transitions and includes rollout plus learner update. | Task | Eager transitions/s | Compile transitions/s | Throughput change | Eager iteration | Compile iteration | |---|---:|---:|---:|---:|---:| | Kuka Allegro camera | 62,999 | 65,228 | **+3.54%** | 2080.54 ms | 2009.45 ms | | ANYmal-D rough (state) | 180,219 | 177,670 | **-1.41%** | 545.47 ms | 553.29 ms | **Result:** opting into `torch_compile_mode="default"` improved the camera workload by **3.54%**, while the state locomotion workload was **1.41% slower** in these measurements. Compilation remains opt-in because the throughput benefit is workload-dependent and startup takes longer. ### Cold and warm startup **Cold** means a fresh process with empty, task-specific Inductor and Triton caches. **Warm** means a fresh process reusing the compiler cache from the cold run, not a process that has already executed training. Asset and Warp kernel caches were retained in both cases; this is not a clean-machine installation benchmark. There is one cold run and two warm runs per task/mode; warm numbers are medians of those two runs. “First iteration” measures rollout plus learner update after runner/logger setup, including lazy compilation. “Launch → first iteration complete” additionally includes imports, simulation/environment/model setup, and logger initialization. The latter is more exposed to asset-cache checks and setup variation; first-iteration time is the clearer comparison of compiler startup cost. Neither column is a pure compiler timer. | Task | Mode | Cold first iteration | Warm first iteration | Cold launch → first iteration complete | Warm launch → first iteration complete | |---|---|---:|---:|---:|---:| | Kuka Allegro camera | Eager | 3.48 s | 3.13 s | 32.87 s | 30.39 s | | Kuka Allegro camera | Compile default | 16.66 s | 5.14 s | 44.35 s | 32.80 s | | ANYmal-D rough (state) | Eager | 1.43 s | 1.25 s | 14.67 s | 14.50 s | | ANYmal-D rough (state) | Compile default | 7.32 s | 2.51 s | 20.81 s | 16.03 s | ### Where the time changed Learner time includes return computation and the PPO update. Rollout includes policy inference, environment stepping and normal episode bookkeeping. CUDA was synchronized at the rollout/learner boundary and iteration boundary. Checkpoint writes and per-iteration logger output were excluded from timing. There was no synthetic environment warmup before training. Independent phase medians need not sum exactly to the iteration median. | Task | Mode | Rollout | Learner | Peak PyTorch allocation | |---|---|---:|---:|---:| | Kuka Allegro camera | Eager | 1320.43 ms | 759.71 ms | 16.773 GiB | | Kuka Allegro camera | Compile default | 1335.33 ms | 674.99 ms | 16.657 GiB | | ANYmal-D rough (state) | Eager | 492.01 ms | 53.46 ms | 0.677 GiB | | ANYmal-D rough (state) | Compile default | 491.29 ms | 60.98 ms | 0.594 GiB | Memory is peak **PyTorch allocated** memory after warmup, including rollout storage; it excludes Warp/Newton allocations. Compiler startup is paid before the steady-state gains, so short jobs can still take longer overall. <details> <summary>Per-process timings and exact training commands</summary> Process order: Kuka eager cold, Kuka compile cold, ANYmal eager cold, ANYmal compile cold, Kuka compile warm1, Kuka eager warm1, ANYmal compile warm1, ANYmal eager warm1, Kuka eager warm2, Kuka compile warm2, ANYmal eager warm2, ANYmal compile warm2. | Task | Mode | Steady iteration medians: cold / warm1 / warm2 | First iterations: cold / warm1 / warm2 | |---|---|---|---| | Kuka Allegro camera | off | 2.0805 / 2.0927 / 2.0657 s | 3.483 / 3.138 / 3.116 s | | Kuka Allegro camera | default | 2.0095 / 2.0120 / 1.9982 s | 16.664 / 5.147 / 5.142 s | | ANYmal-D rough (state) | off | 0.5455 / 0.5455 / 0.5395 s | 1.434 / 1.248 / 1.245 s | | ANYmal-D rough (state) | default | 0.5550 / 0.5533 / 0.5477 s | 7.323 / 2.513 / 2.511 s | ```bash # Camera workload, compilation explicitly enabled. uv run isaaclab train --rl_library rsl_rl \ --task Isaac-Lift-KukaAllegro-Camera --num_envs 4096 \ --max_iterations 40 --device cuda:0 --viz none \ physics=newton_mjwarp renderer=newton_renderer presets=duo_camera,rgb64 \ agent.logger=tensorboard agent.torch_compile_mode=default # State locomotion, all environment settings left at their defaults. uv run isaaclab train --rl_library rsl_rl \ --task Isaac-Velocity-Rough-AnymalD \ --max_iterations 40 --device cuda:0 --viz none \ agent.logger=tensorboard agent.torch_compile_mode=default # Replace the compile-mode override with this for the eager control (the PR default): # agent.torch_compile_mode=null ``` A temporary harness invoked the same `train_rsl_rl.run()` backend, verified the imported checkout paths and effective compile/AMP/backend settings, and wrapped the existing runner/logger with CUDA-synchronized timers. Each task/mode had separate `TORCHINDUCTOR_CACHE_DIR` and `TRITON_CACHE_DIR` directories; the cold process populated them for its two warm processes. No timing hooks or benchmark artifacts were added to production code. </details> ## Effect on learning The PPO objective, optimizer, hyperparameters, observation/action contract and configured precision are unchanged. **Compilation is not mixed precision**, and this PR does not enable BF16 by default. RSL-RL saves the raw actor/critic weights and optimizer state, so checkpoint parameter formats remain unchanged when opting compilation in or out. However, eager and compiled runs are **not guaranteed to be bitwise identical**, even with the same seed. Kernel fusion/reordering can change floating-point rounding, and compiled random-number generation can produce a different random sequence. RSL-RL samples actions inside the actor's forward pass, so these differences can change rollouts, gradients and learning curves. See the [PyTorch compiler FAQ](https://docs.pytorch.org/docs/main/user_guide/torch_compiler/torch.compiler_faq.html) and [numerical-accuracy notes](https://docs.pytorch.org/docs/2.14/notes/numerical_accuracy.html). After the timed portion of the final compiled run for each task, eager and compiled model calls were compared with **identical trained weights and the same observations**. Gradients below are for `mean(output**2)` with respect to model parameters, not a replay of the PPO optimizer update. | Task/model | Maximum absolute output difference | Gradient relative L2 difference | |---|---:|---:| | Kuka actor | 0.000139 | 1.08e-05 | | Kuka critic | 0.000155 | 5.84e-06 | | ANYmal-D actor | 0 | 1.9e-08 | | ANYmal-D critic | 0 | 5.32e-09 | Resetting the Torch seed to the same value before each eager/compiled stochastic actor call still produced non-bit-identical actions: maximum differences were **1.65e-4 for Kuka** and **2.38e-7 for ANYmal-D**. These small action differences do not by themselves demonstrate a changed RNG sequence; floating-point differences can also explain them. They do show that exact trajectory reproduction across eager and compiled execution should not be assumed. The deterministic output/gradient checks are local numerical checks, not evidence of equal long-run learning outcomes. All benchmark runs completed with finite losses. These **40-iteration performance runs do not establish equal convergence, sample efficiency, success rate or final return**. Establishing that would require full-length, multi-seed learning evaluations. Use `agent.torch_compile_mode=null` to retain eager execution when comparing existing experiments or diagnosing a compiler-specific problem. <details> <summary>Earlier 256-environment, 128×128 camera comparison</summary> On the same GPU/software stack, an earlier three-process-per-mode comparison used 256 environments and two 128×128 cameras, with AMP off. It measured 9,944 transitions/s eager, 10,641 with `default` (**+7.01%**), and 10,606 with `max-autotune-no-cudagraphs` (**+6.66%**). Cold first iterations were 2.35 s, 14.56 s, and 75.67 s respectively; compiled warm-cache first iterations were about 2.97 s and 3.67–4.10 s. For this workload, `default` provided similar throughput with less startup overhead than the autotuning mode. That earlier harness prewarmed the environment for 50 zero-action steps and reset it before training, so its first-iteration numbers are not directly comparable to the new startup measurements above. The previous base-vs-PR smoke check with **compilation off on both sides** showed no material speedup because environment seeding already enabled cuDNN benchmarking. The new measurements above explicitly compare eager execution with opt-in compilation in `default` mode. </details> ## Validation - `test_rsl_rl_cfg_deprecation.py`: **29 passed** (existing tests; added compatibility tests removed). - `test_entrypoints.py -k "rsl or torch_backend"`: **5 passed**, 39 deselected; existing TorchScript deprecation warnings. - `uv run isaaclab -f`: **passed**, including changelog validation against the upstream base. - **12 GPU training runs**, 40 iterations each, with effective compile/AMP/backend settings verified. Every compiled run captured **six graphs**, with no recorded graph breaks; all reported losses remained finite. - Post-timing deterministic output/gradient and same-seed sampled-action comparisons on both tasks, as reported above. - Changelog documented the opt-in options and compilation startup/numerical implications. ## Series Part 6 of the camera performance series, based on `develop`: 1. #8036: Read camera outputs through `ProxyArray.torch` (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series was split from #7440, which remains the combined reference branch. ## Type of change - New feature: configurable RSL-RL compilation and mixed precision. - Compilation and mixed precision remain disabled by default. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop`
) # Description Added opt-in `torch.compile` support for the actor and critic in RSL-RL on-policy runners. `RslRlOnPolicyRunnerCfg.torch_compile_mode` defaults to `None` (disabled), preserving eager execution. Set `agent.torch_compile_mode=default` on the CLI to enable compilation. - Exposed `RslRlPpoAlgorithmCfg.use_mixed_precision` for the bfloat16 policy update; it remains **off by default**. The compatibility helper drops this argument for RSL-RL PPO versions that do not accept it. - Enabled `cudnn.benchmark` in the training entrypoint, matching the existing non-deterministic environment seeding behavior. Both benchmark controls already use cuDNN autotuning and TF32, so the results below isolate **compilation**, not a new cuDNN speedup. - Shortened the config docstrings to one line, made the cuDNN explanation a one-line inline comment, and removed a redundant compatibility comment. Compilation covers actor/critic model calls and their differentiated operations. Environment physics, rendering, and the surrounding PPO optimizer/control loop are not compiled by this setting. RSL-RL supports `"default"` and `"max-autotune-no-cudagraphs"`; it rejects `"reduce-overhead"` and `"max-autotune"` because their CUDA-graph replay is incompatible with its multi-model forward pattern. ## Performance — 4,096 environments Measured on the code committed as `4826cf32b` (parent PR head `62335765c`), 2026-09-27, on one **RTX PRO 6000 Blackwell Workstation Edition, 96 GB**, driver 595.91.07. PyTorch **2.12.0+cu130**, RSL-RL **5.5.1**, Newton **1.6.0**, MuJoCo Warp **3.12.0**, Warp **1.17.0**. All GPU runs were sequential. - **Camera:** `Isaac-Lift-KukaAllegro-Camera`, **4,096 environments**, `presets=duo_camera,rgb64` (two RGB **64×64** cameras), Newton MJWarp physics, Newton renderer, no viewer. Spatial-softmax CNN actor and state MLP critic. Default PPO settings: **32-step horizon, 5 epochs, 8 minibatches**, 16,384 transitions/minibatch. - **State locomotion:** `Isaac-Velocity-Rough-AnymalD`, **unchanged environment defaults**, including **4,096 environments**, terrain, observations, randomization, physics settings and Newton MJWarp backend. No camera or interactive viewer. Default MLP actor/critic and PPO settings: **24-step horizon, 5 epochs, 4 minibatches**, 24,576 transitions/minibatch. Only run duration and local logging were selected for the benchmark. - Both used default **seed 42**, **mixed precision off**, cuDNN benchmarking and TF32 on. The measurements used an intermediate revision with compilation enabled by default; eager controls used `agent.torch_compile_mode=null`. The final PR leaves compilation disabled by default. The commands below explicitly select the measured compiled mode. ### Steady-state throughput Three fresh processes per task/mode; each ran **40 training iterations**, with the **first 10 excluded**. Values are medians of the three per-process medians. Throughput counts environment transitions and includes rollout plus learner update. | Task | Eager transitions/s | Compile transitions/s | Throughput change | Eager iteration | Compile iteration | |---|---:|---:|---:|---:|---:| | Kuka Allegro camera | 62,999 | 65,228 | **+3.54%** | 2080.54 ms | 2009.45 ms | | ANYmal-D rough (state) | 180,219 | 177,670 | **-1.41%** | 545.47 ms | 553.29 ms | **Result:** opting into `torch_compile_mode="default"` improved the camera workload by **3.54%**, while the state locomotion workload was **1.41% slower** in these measurements. Compilation remains opt-in because the throughput benefit is workload-dependent and startup takes longer. ### Cold and warm startup **Cold** means a fresh process with empty, task-specific Inductor and Triton caches. **Warm** means a fresh process reusing the compiler cache from the cold run, not a process that has already executed training. Asset and Warp kernel caches were retained in both cases; this is not a clean-machine installation benchmark. There is one cold run and two warm runs per task/mode; warm numbers are medians of those two runs. “First iteration” measures rollout plus learner update after runner/logger setup, including lazy compilation. “Launch → first iteration complete” additionally includes imports, simulation/environment/model setup, and logger initialization. The latter is more exposed to asset-cache checks and setup variation; first-iteration time is the clearer comparison of compiler startup cost. Neither column is a pure compiler timer. | Task | Mode | Cold first iteration | Warm first iteration | Cold launch → first iteration complete | Warm launch → first iteration complete | |---|---|---:|---:|---:|---:| | Kuka Allegro camera | Eager | 3.48 s | 3.13 s | 32.87 s | 30.39 s | | Kuka Allegro camera | Compile default | 16.66 s | 5.14 s | 44.35 s | 32.80 s | | ANYmal-D rough (state) | Eager | 1.43 s | 1.25 s | 14.67 s | 14.50 s | | ANYmal-D rough (state) | Compile default | 7.32 s | 2.51 s | 20.81 s | 16.03 s | ### Where the time changed Learner time includes return computation and the PPO update. Rollout includes policy inference, environment stepping and normal episode bookkeeping. CUDA was synchronized at the rollout/learner boundary and iteration boundary. Checkpoint writes and per-iteration logger output were excluded from timing. There was no synthetic environment warmup before training. Independent phase medians need not sum exactly to the iteration median. | Task | Mode | Rollout | Learner | Peak PyTorch allocation | |---|---|---:|---:|---:| | Kuka Allegro camera | Eager | 1320.43 ms | 759.71 ms | 16.773 GiB | | Kuka Allegro camera | Compile default | 1335.33 ms | 674.99 ms | 16.657 GiB | | ANYmal-D rough (state) | Eager | 492.01 ms | 53.46 ms | 0.677 GiB | | ANYmal-D rough (state) | Compile default | 491.29 ms | 60.98 ms | 0.594 GiB | Memory is peak **PyTorch allocated** memory after warmup, including rollout storage; it excludes Warp/Newton allocations. Compiler startup is paid before the steady-state gains, so short jobs can still take longer overall. <details> <summary>Per-process timings and exact training commands</summary> Process order: Kuka eager cold, Kuka compile cold, ANYmal eager cold, ANYmal compile cold, Kuka compile warm1, Kuka eager warm1, ANYmal compile warm1, ANYmal eager warm1, Kuka eager warm2, Kuka compile warm2, ANYmal eager warm2, ANYmal compile warm2. | Task | Mode | Steady iteration medians: cold / warm1 / warm2 | First iterations: cold / warm1 / warm2 | |---|---|---|---| | Kuka Allegro camera | off | 2.0805 / 2.0927 / 2.0657 s | 3.483 / 3.138 / 3.116 s | | Kuka Allegro camera | default | 2.0095 / 2.0120 / 1.9982 s | 16.664 / 5.147 / 5.142 s | | ANYmal-D rough (state) | off | 0.5455 / 0.5455 / 0.5395 s | 1.434 / 1.248 / 1.245 s | | ANYmal-D rough (state) | default | 0.5550 / 0.5533 / 0.5477 s | 7.323 / 2.513 / 2.511 s | ```bash # Camera workload, compilation explicitly enabled. uv run isaaclab train --rl_library rsl_rl \ --task Isaac-Lift-KukaAllegro-Camera --num_envs 4096 \ --max_iterations 40 --device cuda:0 --viz none \ physics=newton_mjwarp renderer=newton_renderer presets=duo_camera,rgb64 \ agent.logger=tensorboard agent.torch_compile_mode=default # State locomotion, all environment settings left at their defaults. uv run isaaclab train --rl_library rsl_rl \ --task Isaac-Velocity-Rough-AnymalD \ --max_iterations 40 --device cuda:0 --viz none \ agent.logger=tensorboard agent.torch_compile_mode=default # Replace the compile-mode override with this for the eager control (the PR default): # agent.torch_compile_mode=null ``` A temporary harness invoked the same `train_rsl_rl.run()` backend, verified the imported checkout paths and effective compile/AMP/backend settings, and wrapped the existing runner/logger with CUDA-synchronized timers. Each task/mode had separate `TORCHINDUCTOR_CACHE_DIR` and `TRITON_CACHE_DIR` directories; the cold process populated them for its two warm processes. No timing hooks or benchmark artifacts were added to production code. </details> ## Effect on learning The PPO objective, optimizer, hyperparameters, observation/action contract and configured precision are unchanged. **Compilation is not mixed precision**, and this PR does not enable BF16 by default. RSL-RL saves the raw actor/critic weights and optimizer state, so checkpoint parameter formats remain unchanged when opting compilation in or out. However, eager and compiled runs are **not guaranteed to be bitwise identical**, even with the same seed. Kernel fusion/reordering can change floating-point rounding, and compiled random-number generation can produce a different random sequence. RSL-RL samples actions inside the actor's forward pass, so these differences can change rollouts, gradients and learning curves. See the [PyTorch compiler FAQ](https://docs.pytorch.org/docs/main/user_guide/torch_compiler/torch.compiler_faq.html) and [numerical-accuracy notes](https://docs.pytorch.org/docs/2.14/notes/numerical_accuracy.html). After the timed portion of the final compiled run for each task, eager and compiled model calls were compared with **identical trained weights and the same observations**. Gradients below are for `mean(output**2)` with respect to model parameters, not a replay of the PPO optimizer update. | Task/model | Maximum absolute output difference | Gradient relative L2 difference | |---|---:|---:| | Kuka actor | 0.000139 | 1.08e-05 | | Kuka critic | 0.000155 | 5.84e-06 | | ANYmal-D actor | 0 | 1.9e-08 | | ANYmal-D critic | 0 | 5.32e-09 | Resetting the Torch seed to the same value before each eager/compiled stochastic actor call still produced non-bit-identical actions: maximum differences were **1.65e-4 for Kuka** and **2.38e-7 for ANYmal-D**. These small action differences do not by themselves demonstrate a changed RNG sequence; floating-point differences can also explain them. They do show that exact trajectory reproduction across eager and compiled execution should not be assumed. The deterministic output/gradient checks are local numerical checks, not evidence of equal long-run learning outcomes. All benchmark runs completed with finite losses. These **40-iteration performance runs do not establish equal convergence, sample efficiency, success rate or final return**. Establishing that would require full-length, multi-seed learning evaluations. Use `agent.torch_compile_mode=null` to retain eager execution when comparing existing experiments or diagnosing a compiler-specific problem. <details> <summary>Earlier 256-environment, 128×128 camera comparison</summary> On the same GPU/software stack, an earlier three-process-per-mode comparison used 256 environments and two 128×128 cameras, with AMP off. It measured 9,944 transitions/s eager, 10,641 with `default` (**+7.01%**), and 10,606 with `max-autotune-no-cudagraphs` (**+6.66%**). Cold first iterations were 2.35 s, 14.56 s, and 75.67 s respectively; compiled warm-cache first iterations were about 2.97 s and 3.67–4.10 s. For this workload, `default` provided similar throughput with less startup overhead than the autotuning mode. That earlier harness prewarmed the environment for 50 zero-action steps and reset it before training, so its first-iteration numbers are not directly comparable to the new startup measurements above. The previous base-vs-PR smoke check with **compilation off on both sides** showed no material speedup because environment seeding already enabled cuDNN benchmarking. The new measurements above explicitly compare eager execution with opt-in compilation in `default` mode. </details> ## Validation - `test_rsl_rl_cfg_deprecation.py`: **29 passed** (existing tests; added compatibility tests removed). - `test_entrypoints.py -k "rsl or torch_backend"`: **5 passed**, 39 deselected; existing TorchScript deprecation warnings. - `uv run isaaclab -f`: **passed**, including changelog validation against the upstream base. - **12 GPU training runs**, 40 iterations each, with effective compile/AMP/backend settings verified. Every compiled run captured **six graphs**, with no recorded graph breaks; all reported losses remained finite. - Post-timing deterministic output/gradient and same-seed sampled-action comparisons on both tasks, as reported above. - Changelog documented the opt-in options and compilation startup/numerical implications. ## Series Part 6 of the camera performance series, based on `develop`: 1. #8036: Read camera outputs through `ProxyArray.torch` (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series was split from #7440, which remains the combined reference branch. ## Type of change - New feature: configurable RSL-RL compilation and mixed precision. - Compilation and mixed precision remain disabled by default. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` (cherry picked from commit eb4bb3b)
# Description Part 4 of the camera performance series. Based on the latest `develop`, including #8084 and #8087. Supersedes #7495. Profiling the camera and direct tasks found host-device synchronizations in every step: the CPU blocked on the GPU, then ran Python code while the GPU sat idle. This PR removes them from termination tracking, the Lift rewards and success monitoring, marker validation, camera updates, and the Cartpole and Pendulum direct tasks. It also incorporates the hot-path fixes from #6492 (by @kellyguo11) that still apply to current `develop`. - `torch.where` replaces `nonzero` in the termination manager and replaces boolean-mask writes in the Lift progress rewards. - `SuccessMonitor` updates no longer synchronize. They rank outcomes with fixed-size scatters instead of `unique_consecutive`, `repeat_interleave`, and boolean masks. Masked or overflowing outcomes go to an internal scratch row. A new `valid` argument lets the Lift reset hook pass a mask instead of filtering. - `SuccessMonitor.get_mean_success_rate()` returns a 0-d tensor, so logging it does not synchronize. The Cartpole direct and Pendulum MARL success rates are logged as tensors for the same reason. Call `.item()` where a Python float is needed. - Cartpole direct and Pendulum MARL store their joint indices as device tensors. Observations, rewards, terminations, resets, and effort writes no longer upload host lists each step. - Marker index validation runs only when a backend consumes the IDs, and once per ID tensor. - Cameras with `update_period == 0` skip the outdated-mask readback. - Zero-width uniform `add` noise returns its input. - `object_point_cloud_b` defaults to `visualize=False`. Drawing 262k markers every step cost a sync, and with RTX the markers appeared in camera images. The Kuka rendering test already disabled them for that reason. - `ActionManager` caches its term dimensions, which are fixed after construction but were recomputed on every action step (from #6492). - The Cartpole and Reorient direct tasks drop redundant action copies (from #6492). With #8087, managers finalize scene-entity selections to device tensors. `object_ee_distance` therefore indexes with `asset_cfg.body_ids` directly, and this PR's earlier cached device-ID helper was removed. After #8087 it would have iterated the finalized tensor to build its cache key, reading indices back from the device. ### Changes from #6492 Each #6492 change was checked against current `develop`: | #6492 change | Decision | | --- | --- | | Skip observation-term clones | Not taken: `develop` already provides this through #8038. | | Cabinet direct `actions.clone()` | Not taken: the line no longer exists. | | `ActionManager` caches term dimensions | **Taken.** | | Cartpole direct index cleanup | **Taken and extended.** #6492 fixed 1 of the 9 synchronizations caused by host-list joint indexing. Storing the joint indices as device tensors removes all 9. | | Drop `actions.clone()` in the Cartpole and Reorient direct tasks | **Taken.** Neither task modifies the stored actions in place. | | Drop `actions.clone()` in the Locomotion direct task | **Not taken.** Its reset zeroes `self.actions` in place, which would zero the policy's own action tensor, e.g. the one held in RL rollout storage. | ### Investigated and dropped: Newton sensor-graph flag cache An earlier revision cached the Newton sensor graph's task flags and skipped the upload when they were unchanged, on the premise that each upload synchronized the stream. That premise does not hold for the current Warp (1.17), so the change was reverted and `develop`'s per-call upload is kept: - Warp uploads the flags with a single `cudaMemcpyAsync` from pageable memory, which CUDA stages on the host without waiting for the stream. - Behind about 455 ms of Warp kernels queued on the same stream, ten uploads return in 0.07–0.13 ms. - An Nsight Systems trace of the Kuka camera task shows each flag upload's `cudaMemcpyAsync` returning in 5.9 µs on average, 35.6 µs at most. - End to end (Kuka camera task, 256 environments), `develop`'s upload, the cache, and device-side flag writes measured 12.53, 12.50, and 12.47 ms per step. That spread is within run-to-run noise (12.45–12.58 ms). ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Changes to `SuccessMonitor`: `get_mean_success_rate()` returns a 0-d tensor instead of a float, and `success_update()` gains a `valid` argument. The changelog includes migration guidance. ## Performance RTX PRO 6000 Blackwell Workstation Edition (driver 595.91.07); PyTorch 2.12.0+cu130; Warp 1.17.0; Newton 1.6.0; GPU otherwise idle. `develop` at `10fdf81d9` compared with this PR (`b2727a0f2`; later commits only trim comments and revert the Newton change above), with the same `uv.lock`. Runtime benchmark (`isaaclab benchmark runtime`), Newton/MJWarp, seed 42, no visualizer. Three fresh processes per revision, run in alternating order. Figures are the mean step time across processes. | Workload | `develop` | This PR | Change | | --- | ---: | ---: | ---: | | `Isaac-Lift-KukaAllegro-Camera`, 256 envs, `presets=duo_camera,rgb128`, Newton renderer (500 steps) | 14.44 ms | 12.62 ms | **−12.6%** (+14.4% throughput) | | `Isaac-Cartpole-Direct`, 4096 envs (2,000 steps) | 1.674 ms | 1.441 ms | **−13.9%** (+16.2% throughput) | | `Isaac-Pendulum-MARL-Direct`, 4096 envs (2,000 steps) | 2.144 ms | 1.862 ms | **−13.2%** (+15.2% throughput) | Per-process step times (`develop` → PR): - Camera: `14.44, 14.48, 14.40` → `12.67, 12.63, 12.57` ms. - Cartpole: `1.680, 1.685, 1.657` → `1.446, 1.438, 1.439` ms. - Pendulum: `2.137, 2.158, 2.137` → `1.827, 1.863, 1.895` ms. Host synchronizations per `env.step()`, attributed to call sites with PyTorch sync-debug mode over 170 steps (4096 envs): | Task | `develop` | This PR | Remaining | | --- | ---: | ---: | --- | | `Isaac-Lift-KukaAllegro-Camera` (`presets=cube`, Newton renderer) | 21.3 | 4.2 | step reset and command-resample `nonzero`; curriculum, command-metric, and termination logging reads | | `Isaac-Cartpole-Direct` | 10.3 | 1.0 | step reset `nonzero` | | `Isaac-Pendulum-MARL-Direct` | 10.0 | 1.0 | step reset `nonzero` | PyTorch labels sync-debug mode a prototype that does not detect every synchronization, and it does not see synchronizations issued by Warp, so these counts are lower bounds. Reproduce with: ```bash uv run --frozen isaaclab benchmark runtime \ --task Isaac-Lift-KukaAllegro-Camera --num_envs 256 --num_steps 500 \ --warmup_steps 100 --seed 42 --device cuda:0 --visualizer none \ --output_path /tmp/pr8039 physics=newton_mjwarp renderer=newton_renderer presets=duo_camera,rgb128 ``` ### Not addressed - **Step reset and command resampling:** both still call `nonzero` once per step. Both convert a mask into variable-length environment IDs, and the reset and command pipelines consume those IDs throughout. Removing these synchronizations means moving those pipelines to masks or padded IDs, which is out of scope here. - **Warp-side synchronizations:** the Nsight trace above also records many `cudaStreamSynchronize` calls outside the flag uploads, which PyTorch's sync-debug mode cannot attribute. Their sources are not yet identified. ## Validation - Cartpole direct produces bit-identical observation and reward checksums to `develop` after 150 seeded steps, including resets. - Pendulum MARL is not run-to-run deterministic on MJWarp. Its observations and rewards were instead compared on identical state against `develop`'s host-index formulas for 150 steps, with a maximum difference of 0.0. Reorient direct is also non-deterministic; its change only removes a copy of an action tensor that is never modified in place. - `test_circular_buffer.py`, `test_noise.py`, `test_curriculum.py`, the manager tests (including `test_event_manager.py`, `test_reward_manager.py`, `test_termination_manager.py`, and `test_scene_entity_cfg.py`), `test_lift_env_cfg.py`, `test_sensor_base.py`, `test_visualization_markers.py`, and `test_kit_visualizer_scene_partitioning.py` pass. - `test_rendering_lift_kuka_homo_kitless.py` passes for the Newton renderer and legacy OVRTX cases. The two `ovstage` OVRTX cases fail identically on `develop`. - `uv run --frozen isaaclab -f` passes, including changelog checks. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]>
# Description Part 4 of the camera performance series. Based on the latest `develop`, including #8084 and #8087. Supersedes #7495. Profiling the camera and direct tasks found host-device synchronizations in every step: the CPU blocked on the GPU, then ran Python code while the GPU sat idle. This PR removes them from termination tracking, the Lift rewards and success monitoring, marker validation, camera updates, and the Cartpole and Pendulum direct tasks. It also incorporates the hot-path fixes from #6492 (by @kellyguo11) that still apply to current `develop`. - `torch.where` replaces `nonzero` in the termination manager and replaces boolean-mask writes in the Lift progress rewards. - `SuccessMonitor` updates no longer synchronize. They rank outcomes with fixed-size scatters instead of `unique_consecutive`, `repeat_interleave`, and boolean masks. Masked or overflowing outcomes go to an internal scratch row. A new `valid` argument lets the Lift reset hook pass a mask instead of filtering. - `SuccessMonitor.get_mean_success_rate()` returns a 0-d tensor, so logging it does not synchronize. The Cartpole direct and Pendulum MARL success rates are logged as tensors for the same reason. Call `.item()` where a Python float is needed. - Cartpole direct and Pendulum MARL store their joint indices as device tensors. Observations, rewards, terminations, resets, and effort writes no longer upload host lists each step. - Marker index validation runs only when a backend consumes the IDs, and once per ID tensor. - Cameras with `update_period == 0` skip the outdated-mask readback. - Zero-width uniform `add` noise returns its input. - `object_point_cloud_b` defaults to `visualize=False`. Drawing 262k markers every step cost a sync, and with RTX the markers appeared in camera images. The Kuka rendering test already disabled them for that reason. - `ActionManager` caches its term dimensions, which are fixed after construction but were recomputed on every action step (from #6492). - The Cartpole and Reorient direct tasks drop redundant action copies (from #6492). With #8087, managers finalize scene-entity selections to device tensors. `object_ee_distance` therefore indexes with `asset_cfg.body_ids` directly, and this PR's earlier cached device-ID helper was removed. After #8087 it would have iterated the finalized tensor to build its cache key, reading indices back from the device. ### Changes from #6492 Each #6492 change was checked against current `develop`: | #6492 change | Decision | | --- | --- | | Skip observation-term clones | Not taken: `develop` already provides this through #8038. | | Cabinet direct `actions.clone()` | Not taken: the line no longer exists. | | `ActionManager` caches term dimensions | **Taken.** | | Cartpole direct index cleanup | **Taken and extended.** #6492 fixed 1 of the 9 synchronizations caused by host-list joint indexing. Storing the joint indices as device tensors removes all 9. | | Drop `actions.clone()` in the Cartpole and Reorient direct tasks | **Taken.** Neither task modifies the stored actions in place. | | Drop `actions.clone()` in the Locomotion direct task | **Not taken.** Its reset zeroes `self.actions` in place, which would zero the policy's own action tensor, e.g. the one held in RL rollout storage. | ### Investigated and dropped: Newton sensor-graph flag cache An earlier revision cached the Newton sensor graph's task flags and skipped the upload when they were unchanged, on the premise that each upload synchronized the stream. That premise does not hold for the current Warp (1.17), so the change was reverted and `develop`'s per-call upload is kept: - Warp uploads the flags with a single `cudaMemcpyAsync` from pageable memory, which CUDA stages on the host without waiting for the stream. - Behind about 455 ms of Warp kernels queued on the same stream, ten uploads return in 0.07–0.13 ms. - An Nsight Systems trace of the Kuka camera task shows each flag upload's `cudaMemcpyAsync` returning in 5.9 µs on average, 35.6 µs at most. - End to end (Kuka camera task, 256 environments), `develop`'s upload, the cache, and device-side flag writes measured 12.53, 12.50, and 12.47 ms per step. That spread is within run-to-run noise (12.45–12.58 ms). ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Changes to `SuccessMonitor`: `get_mean_success_rate()` returns a 0-d tensor instead of a float, and `success_update()` gains a `valid` argument. The changelog includes migration guidance. ## Performance RTX PRO 6000 Blackwell Workstation Edition (driver 595.91.07); PyTorch 2.12.0+cu130; Warp 1.17.0; Newton 1.6.0; GPU otherwise idle. `develop` at `10fdf81d9` compared with this PR (`b2727a0f2`; later commits only trim comments and revert the Newton change above), with the same `uv.lock`. Runtime benchmark (`isaaclab benchmark runtime`), Newton/MJWarp, seed 42, no visualizer. Three fresh processes per revision, run in alternating order. Figures are the mean step time across processes. | Workload | `develop` | This PR | Change | | --- | ---: | ---: | ---: | | `Isaac-Lift-KukaAllegro-Camera`, 256 envs, `presets=duo_camera,rgb128`, Newton renderer (500 steps) | 14.44 ms | 12.62 ms | **−12.6%** (+14.4% throughput) | | `Isaac-Cartpole-Direct`, 4096 envs (2,000 steps) | 1.674 ms | 1.441 ms | **−13.9%** (+16.2% throughput) | | `Isaac-Pendulum-MARL-Direct`, 4096 envs (2,000 steps) | 2.144 ms | 1.862 ms | **−13.2%** (+15.2% throughput) | Per-process step times (`develop` → PR): - Camera: `14.44, 14.48, 14.40` → `12.67, 12.63, 12.57` ms. - Cartpole: `1.680, 1.685, 1.657` → `1.446, 1.438, 1.439` ms. - Pendulum: `2.137, 2.158, 2.137` → `1.827, 1.863, 1.895` ms. Host synchronizations per `env.step()`, attributed to call sites with PyTorch sync-debug mode over 170 steps (4096 envs): | Task | `develop` | This PR | Remaining | | --- | ---: | ---: | --- | | `Isaac-Lift-KukaAllegro-Camera` (`presets=cube`, Newton renderer) | 21.3 | 4.2 | step reset and command-resample `nonzero`; curriculum, command-metric, and termination logging reads | | `Isaac-Cartpole-Direct` | 10.3 | 1.0 | step reset `nonzero` | | `Isaac-Pendulum-MARL-Direct` | 10.0 | 1.0 | step reset `nonzero` | PyTorch labels sync-debug mode a prototype that does not detect every synchronization, and it does not see synchronizations issued by Warp, so these counts are lower bounds. Reproduce with: ```bash uv run --frozen isaaclab benchmark runtime \ --task Isaac-Lift-KukaAllegro-Camera --num_envs 256 --num_steps 500 \ --warmup_steps 100 --seed 42 --device cuda:0 --visualizer none \ --output_path /tmp/pr8039 physics=newton_mjwarp renderer=newton_renderer presets=duo_camera,rgb128 ``` ### Not addressed - **Step reset and command resampling:** both still call `nonzero` once per step. Both convert a mask into variable-length environment IDs, and the reset and command pipelines consume those IDs throughout. Removing these synchronizations means moving those pipelines to masks or padded IDs, which is out of scope here. - **Warp-side synchronizations:** the Nsight trace above also records many `cudaStreamSynchronize` calls outside the flag uploads, which PyTorch's sync-debug mode cannot attribute. Their sources are not yet identified. ## Validation - Cartpole direct produces bit-identical observation and reward checksums to `develop` after 150 seeded steps, including resets. - Pendulum MARL is not run-to-run deterministic on MJWarp. Its observations and rewards were instead compared on identical state against `develop`'s host-index formulas for 150 steps, with a maximum difference of 0.0. Reorient direct is also non-deterministic; its change only removes a copy of an action tensor that is never modified in place. - `test_circular_buffer.py`, `test_noise.py`, `test_curriculum.py`, the manager tests (including `test_event_manager.py`, `test_reward_manager.py`, `test_termination_manager.py`, and `test_scene_entity_cfg.py`), `test_lift_env_cfg.py`, `test_sensor_base.py`, `test_visualization_markers.py`, and `test_kit_visualizer_scene_partitioning.py` pass. - `test_rendering_lift_kuka_homo_kitless.py` passes for the Newton renderer and legacy OVRTX cases. The two `ovstage` OVRTX cases fail identically on `develop`. - `uv run --frozen isaaclab -f` passes, including changelog checks. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> (cherry picked from commit 60bc09f)
# Description Part 7 of the camera performance series. Based on the latest `develop`, which now includes the rest of the series (#8036–#8041), #8051, and #8087. The Kuka Allegro Lift camera tasks move from the task-specific `vision_camera` term to the shared `mdp.image_rgb`, `mdp.image_depth`, and `mdp.image_segmentation` terms. Images stay raw in the environment, and the policy normalizes them: - Each camera's image term is a preset named like the camera presets (`rgb128`, `depth64`, `raycaster_depth256`, ...), so one preset such as `presets=duo_camera,rgb128` selects both the camera and its matching term. The terms use `normalize=False, channel_first=True` and emit raw images. RGB terms drop albedo's unused alpha channel. - The observation manager's copy skipping from #8038 applies automatically: `image_rgb` writes into a manager-owned output, so each image is copied once per step and not cloned again. - `SpatialSoftmaxCNNModel` applies the fixed-range normalization the task used before: `x / 255 - 0.5` for color, and `tanh(depth / 2) - 0.5` with NaN treated as far for depth. - A single `addcmul` pass does the conversion; separate cast, scale, and shift passes made the PPO update slower than the float32 baseline. - Image groups that are neither uint8 nor floating point, such as non-colorized segmentation labels, raise an error when the model is built instead of being normalized as depth. - The JIT and ONNX exports take raw images: uint8 for color. The normalizer has no state-dict entries, so existing RGB and depth checkpoints load unchanged. Keep the compatibility `vision_camera` term for existing four-channel albedo policies, or retrain with three-channel albedo observations. - Color images stay uint8 in rollout storage, which cuts rollout image memory 4x and makes minibatch gathers cheaper. - The spatial soft-argmax uses one matmul instead of two broadcast products and sums. It keeps the `pos_x`/`pos_y` buffers for checkpoint compatibility. - The camera runners set `check_for_nan=False`. RSL-RL's per-group NaN scan reads every image and synchronizes with the host each step, and uint8 images cannot be NaN. Updated for the merged series: the earlier `clone_output` term setting was removed, because #8038 landed with automatic copy skipping instead of a configuration flag. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) — merged 2. #8037: Fused normalization for strided camera images — merged 3. #8038: Skip redundant observation copies — merged 4. #8039: Remove per-step host synchronizations — merged 5. #8040: Newton `render_batch` in one sensor-graph launch — merged 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings — merged 7. #8042: Kuka Allegro camera tasks on the shared image observation (this PR, base: develop) The series is split from #7440, which remains the combined reference branch. ## Type of change - Breaking change (existing functionality will not work without user modification). Exported Kuka camera policies now take raw images, and albedo observations have three channels. See the changelog for migration. ## Performance RTX PRO 6000 Blackwell Workstation Edition (driver 595.91.07); PyTorch 2.12.0+cu130; Warp 1.17.0; Newton 1.6.0; GPU otherwise idle. `develop` at `60bc09f17` compared with this PR (`bb10c5e0b`), with the same `uv.lock`. `isaaclab benchmark training --rl_library rsl_rl`, `Isaac-Lift-KukaAllegro-Camera`, 256 environments, `presets=duo_camera,rgb128`, `physics=newton_mjwarp`, `renderer=newton_renderer`, 24 PPO iterations, seed 42, no visualizer. Three fresh processes per revision, run in alternating order; figures are means across processes. | Metric | `develop` | This PR | Change | | --- | ---: | ---: | ---: | | Training throughput (higher is better) | 11,020 steps/s | 11,191 steps/s | +1.6% | | PPO iteration (lower is better) | 0.795 s | 0.775 s | −2.5% | | Environment step (lower is better) | 14.03 ms | 13.84 ms | −1.4% | | Peak GPU memory, whole device (lower is better) | 7.12 GB | 4.73 GB | **−34%** | Per-process iteration times (`develop` → PR): `0.804, 0.790, 0.792` → `0.772, 0.776, 0.777` s. The iteration means include PPO warmup, and GPU memory is the device-level figure, including Warp and Newton allocations. This is a short steady-state check, not a convergence test. ## Validation - `test_lift_env_cfg.py`: 13 passed. These include the configured RGB, depth, albedo, and semantic-segmentation terms for both cameras, with the model's fixed normalization. - RSL-RL training smoke tests, Newton/MJWarp with the Newton renderer, 64 environments: `duo_camera,rgb128` (3 iterations) and `duo_camera,depth128` (2 iterations) train without errors. - Export check on the RGB checkpoint: `isaaclab play` writes `policy.pt` and `policy.onnx`. The ONNX graph declares both images as `uint8 [1, 3, 128, 128]`. The JIT export accepts raw uint8 images and returns finite actions, and ONNX Runtime matches the JIT export within `1.2e-6`. - `uv run --frozen isaaclab -f` passes, including changelog checks. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop`
# Description Part 7 of the camera performance series. Based on the latest `develop`, which now includes the rest of the series (#8036–#8041), #8051, and #8087. The Kuka Allegro Lift camera tasks move from the task-specific `vision_camera` term to the shared `mdp.image_rgb`, `mdp.image_depth`, and `mdp.image_segmentation` terms. Images stay raw in the environment, and the policy normalizes them: - Each camera's image term is a preset named like the camera presets (`rgb128`, `depth64`, `raycaster_depth256`, ...), so one preset such as `presets=duo_camera,rgb128` selects both the camera and its matching term. The terms use `normalize=False, channel_first=True` and emit raw images. RGB terms drop albedo's unused alpha channel. - The observation manager's copy skipping from #8038 applies automatically: `image_rgb` writes into a manager-owned output, so each image is copied once per step and not cloned again. - `SpatialSoftmaxCNNModel` applies the fixed-range normalization the task used before: `x / 255 - 0.5` for color, and `tanh(depth / 2) - 0.5` with NaN treated as far for depth. - A single `addcmul` pass does the conversion; separate cast, scale, and shift passes made the PPO update slower than the float32 baseline. - Image groups that are neither uint8 nor floating point, such as non-colorized segmentation labels, raise an error when the model is built instead of being normalized as depth. - The JIT and ONNX exports take raw images: uint8 for color. The normalizer has no state-dict entries, so existing RGB and depth checkpoints load unchanged. Keep the compatibility `vision_camera` term for existing four-channel albedo policies, or retrain with three-channel albedo observations. - Color images stay uint8 in rollout storage, which cuts rollout image memory 4x and makes minibatch gathers cheaper. - The spatial soft-argmax uses one matmul instead of two broadcast products and sums. It keeps the `pos_x`/`pos_y` buffers for checkpoint compatibility. - The camera runners set `check_for_nan=False`. RSL-RL's per-group NaN scan reads every image and synchronizes with the host each step, and uint8 images cannot be NaN. Updated for the merged series: the earlier `clone_output` term setting was removed, because #8038 landed with automatic copy skipping instead of a configuration flag. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) — merged 2. #8037: Fused normalization for strided camera images — merged 3. #8038: Skip redundant observation copies — merged 4. #8039: Remove per-step host synchronizations — merged 5. #8040: Newton `render_batch` in one sensor-graph launch — merged 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings — merged 7. #8042: Kuka Allegro camera tasks on the shared image observation (this PR, base: develop) The series is split from #7440, which remains the combined reference branch. ## Type of change - Breaking change (existing functionality will not work without user modification). Exported Kuka camera policies now take raw images, and albedo observations have three channels. See the changelog for migration. ## Performance RTX PRO 6000 Blackwell Workstation Edition (driver 595.91.07); PyTorch 2.12.0+cu130; Warp 1.17.0; Newton 1.6.0; GPU otherwise idle. `develop` at `60bc09f17` compared with this PR (`bb10c5e0b`), with the same `uv.lock`. `isaaclab benchmark training --rl_library rsl_rl`, `Isaac-Lift-KukaAllegro-Camera`, 256 environments, `presets=duo_camera,rgb128`, `physics=newton_mjwarp`, `renderer=newton_renderer`, 24 PPO iterations, seed 42, no visualizer. Three fresh processes per revision, run in alternating order; figures are means across processes. | Metric | `develop` | This PR | Change | | --- | ---: | ---: | ---: | | Training throughput (higher is better) | 11,020 steps/s | 11,191 steps/s | +1.6% | | PPO iteration (lower is better) | 0.795 s | 0.775 s | −2.5% | | Environment step (lower is better) | 14.03 ms | 13.84 ms | −1.4% | | Peak GPU memory, whole device (lower is better) | 7.12 GB | 4.73 GB | **−34%** | Per-process iteration times (`develop` → PR): `0.804, 0.790, 0.792` → `0.772, 0.776, 0.777` s. The iteration means include PPO warmup, and GPU memory is the device-level figure, including Warp and Newton allocations. This is a short steady-state check, not a convergence test. ## Validation - `test_lift_env_cfg.py`: 13 passed. These include the configured RGB, depth, albedo, and semantic-segmentation terms for both cameras, with the model's fixed normalization. - RSL-RL training smoke tests, Newton/MJWarp with the Newton renderer, 64 environments: `duo_camera,rgb128` (3 iterations) and `duo_camera,depth128` (2 iterations) train without errors. - Export check on the RGB checkpoint: `isaaclab play` writes `policy.pt` and `policy.onnx`. The ONNX graph declares both images as `uint8 [1, 3, 128, 128]`. The JIT export accepts raw uint8 images and returns finite actions, and ONNX Runtime matches the JIT export within `1.2e-6`. - `uv run --frozen isaaclab -f` passes, including changelog checks. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` (cherry picked from commit f25d3f0)
* [Tests] Update Newton tendon regression for explicit construction (#7985) # Description The fixed-tendon integration regression failed at `sim.reset()` after #8005 made Newton model construction explicit. It now calls `replicate(sim.get_clone_plan())` before reset, matching the other articulation tests. The original environment, event-manager, and tendon fixes from this PR were already merged through the stacked #7990. This update resolves the conflicts against current `develop`, preserves its newer tendon implementation and expanded regression, and leaves only the missing test setup call plus the required changelog marker. ## Validation - 21 checks passed: 6 articulation-event tests, 13 event-manager tests, the indexed-dictionary curriculum regression, and the GPU tendon regression. - The tendon regression passed with the pinned Newton 1.6.0 and MuJoCo Warp 3.12.0 on an RTX 5090. It covers stiffness, damping, position limits, and selected environment/tendon updates. - Before the setup call, the test failed because no Newton builder had been supplied. With the setup corrected, removing only `ModelFlags.TENDON_PROPERTIES` notification makes the test fail numerically: solver stiffness remains 0 instead of 12. - All formatting and pre-commit checks passed. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * [Tests] Prune core isaaclab tests with the test-audit skill (#8022) # Core (`isaaclab`) test job: 32:18 → 22:40 (−30%) The core job (`pytest tools`, excluding `isaaclab_*` packages, as the three core CI shards run it) ran on the same machine with a warm Warp cache, once on `develop` and once on this PR. - **Timing fix.** In the worktree the two benchmark smoke files launched the system Python and failed fast. The pruned time is corrected with their 2:00 baseline duration; they are unchanged by this PR. - **Shared failures.** Six files fail on both sides only because of local tools and environment: video conversion, `nsys`, device constructors and visualizer markers. - **Fixed here.** The four asset interface files that fail on `develop` fail because of an OVPhysX fixture bug, which this PR fixes. | | `develop` | this PR | |---|---:|---:| | Core job wall time | 32:18 | **22:40** | | Test files | 312 | 289 | | Test functions | 3,069 | 2,229 | | Test lines | 97,369 | 81,275 | Changes outside test files: - `tools/test_settings.py` drops `TESTS_TO_SKIP` entries for five deleted files. - `docs/source/refs/contributing.rst` pointed at the deleted `deps/test_torch.py`; it now points at `utils/test_circular_buffer.py`. ## What changed Pruned with the `isaaclab-auditing-tests` skill (#8007), campaign mode. The work ran in seven lanes: - sim - assets - sensors - envs / managers / controllers / actuators - scene / cloner / renderers / markers - utils - CLI / app / benchmarks **Method.** Every test was marked keep, fix, merge or delete. Whenever a deletion's keeper does not carry the assertions verbatim, a deliberate production mutation proves the keeper fails. An independent review per lane restored every gap it found, each mutation-proven: - OSC variable-impedance masking - render interval in all three workflows - per-backend deprecated friction writer - CPU segmentation - ray-caster mesh cache - rendering-kit defaults - non-default `dt` - schema API application - joint drive type - file-log level - global torque reset - terrain origins - **Largest cuts:** - asset interface tests: mocked cases ~6,400 → ~1,050; about 114 getter tests became 4 table tests, with rows diffed mechanically - 10 OSC convergence sims, covered by the repaired unit-law test - manager tests moved off Kit - actuator and rendering cartesian products - SimulationContext 52 → 30 tests - **Tests that could not fail, now fixed:** - partial writes with a non-trivial joint/body ordering - alias equality compared by shape only - writer read-backs - schema validators that inspected only children - `test_reset` lifecycle checks - a camera test that compared a shared cache with itself - **Multi-GPU lane:** tests now use `DeviceScope.DEFAULT_CUDA` or `CPU_AND_DEFAULT_CUDA`, so no file enters the multi-GPU job unless it boots Kit with `resolve_test_sim_device()`. Merged with #7995. Its new renderer source-scan test was not carried over: the behavior it guards, SDP writing geometry into Fabric, is covered by `test_scene_data_geometry.py`. ## Product defects found (not fixed here) - When physics handles decimation, the render check only fires on exact multiples. For example, `render_interval=10` with `decimation=4` renders at half rate. This affects all four env classes. - PhysX-Fabric FrameView: after a USD parent move, whichever of the world/local reads comes second is stale. - The MJCF physics scene is written to payload layers, not under the default prim. - PhysX fixed-tendon position limits are `(N, T, 2)`, which contradicts the docstring and OVPhysX. - EventManager does not register class terms when created while the sim is already playing. - `FrameTransformer.__str__` swaps the frame count and names. - RigidObjectCollection `set_coms_index` raises KeyError on PhysX. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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] My changes generate no new warnings - [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: Octi Zhang <[email protected]> * Fix flat-ground visual coverage for large environment batches (#8025) ## Description Keep 50 m of visible flat ground beyond each edge of the environment grid. Previously, large batches had only one environment spacing of margin, so locomotion robots could walk off the visible mesh while still standing on the infinite collision plane. | Environments | Spacing | Visual width before → after | Margin per side before → after | |---|---|---|---| | 1 | 1 m | 100 → 100 m | 50 → 50 m | | 4,096 | 4 m | 260 → 352 m | 4 → 50 m | | 16,384 | 2.5 m | 322.5 → 417.5 m | 2.5 → 50 m | The existing UV rescaling preserves **1 m checker cells / 2 m texture repeats** at every size. The infinite collision plane and explicit `import_ground_plane(size=...)` overrides are unchanged. **No rough-terrain, heightfield, solver, or task-parameter changes.** ## Validation - `uv run isaaclab -f`: passed. - Default-ground-plane asset/material tests: 3 passed. - CPU USD authoring checks at 1 / 4,096 / 16,384 origins verified the actual transformed mesh bounds and metric UV repeats. The margin assertion failed on the base and passed with this fix. - Headless GL before/after images at 20 m beyond a 16,384-environment grid corner: the old mesh ended behind the marker; the enlarged mesh covered it with unchanged checker size. This used a tiny static scene, not 16,384 simulated robots. - A 16-environment Go2-flat checkpoint replay passed 300 policy steps in the active training checkout with this same ground-size fix applied; robot and floor remained visible. - Fresh `develop` with Newton 1.6.0 produced a blank viewport with **both** the base and patched ground-size formulas (pixel-identical control frames). That playback was not counted as a successful visual check. - Extended the existing terrain-importer integration test across those batch sizes. The full Kit integration suite was not run locally. ## Type of change Bug fix (visualization only). ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] Formatting checks passed. - [x] Updated the API docstring and existing regression test. - [x] Added an `isaaclab` changelog fragment. Co-authored-by: ooctipus <[email protected]> * [Core] Resolve nested local and remote USD dependencies (#8011) ## Summary USD composition could fail for `scene.usda -> local robot.usda -> remote asset.usd`, or when a downloaded layer still referenced a remote URL. The common USD reference loader now prepares both local and remote files through one recursive dependency traversal. Changed layers are written as working copies, preserving authored files and raw downloads. Renderer-provided MDL identifiers such as `OmniPBR.mdl` and self-contained USDZ packages retain their resolution behavior. Completed managed local trees skip discovery while their file stamps match; incomplete downloads remain retryable, and remote URL requests retain freshness checks. Fixes #7999 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - Full asset test suite: 66 passed. - Extended the existing composition test with renderer module identifiers and a remote USDZ case; all four composition cases fail on the previous PR revision and pass with this change. - Verified the common reference loader composes a real remote Cartpole through two local wrapper layers. - All 48 previously failing CI cases passed locally with Isaac Sim 6.1.0.0, OVRTX 0.5.0.377615, and OVPhysX 0.6.3. These include the existing Kit and Kitless image comparisons, visualizers, scene partitioning, USDZ demos, and later core/contributed-environment failures. Golden images and rendering thresholds were unchanged. - `uv run isaaclab -f`: passed, including changelog validation against upstream develop. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] My changes generate no new warnings - [x] I have added a test that proves the fix - [x] I have added a changelog fragment for the touched package - [x] My name is already in `CONTRIBUTORS.md` --------- Co-authored-by: Octi Zhang <[email protected]> * [Tests] Run package CI test files concurrently (#8006) # Package CI test jobs: 4:26 h → 2:09 h of runner time (−52%); longest job 29 → 13 min All package jobs pass. The comparison is a green `develop`-based PR run ([before](https://github.com/isaac-sim/IsaacLab/actions/runs/36102042654)) against this PR ([after](https://github.com/isaac-sim/IsaacLab/actions/runs/36126670863)): | Job | Before | After | |---|---:|---:| | `isaaclab_newton` | 26:35 | **7:45** (−71%) | | `isaaclab_ov` | 20:05 | **5:52** (−71%) | | `isaaclab_contrib` | 9:23 | **2:45** (−71%) | | `isaaclab (core)` 1/2/3 | 22:27 / 29:15 / 22:22 | **10:36 / 8:10 / 8:45** | | `isaaclab_tasks` 1/2/3 | 15:09 / 28:29 / 7:22 | **12:37 / 9:00 / 5:53** | | `isaaclab_rl` | 23:10 | **7:10** (−69%) | | `isaaclab_mimic` | 20:23 | **9:07** (−55%) | | `isaaclab_physx` | 14:49 | **8:46** (−41%) | | `isaaclab_visualizers` | 13:36 | 12:08 (−11%) | | `isaaclab_teleop` | 8:25 | 9:27 | | `isaaclab_assets` / `_experimental` | 3:04 / 1:44 | 5:15 / 5:45 | Assets and experimental lost to image-pull variance: their pulls took 1:25 and 3:58, against 0:02 in the baseline. Teleop and visualizers gain little because most of their files start a renderer, and renderer files run one at a time. ## Why xdist alone did not scale CI logs from a green run show most files spend more time starting than testing: - Kit files take a median 15.5 s before the first test, kitless files 3.2 s. - The first RTX renderer in a container waits 113–130 s. Splitting every file across xdist workers repeats that startup per worker, so the earlier renderer-file slowdowns were almost all startup: PhysX rigid-object rendering 113 s → 412 s, contrib visuotactile 119 s → 411 s. Only long files with cheap startup got faster, such as the leapp export. ## What changed - **`TEST_JOBS` / `test-jobs` input.** `tools/conftest.py` runs up to `TEST_JOBS` test files at once, each still in its own pytest process, so startup overlaps instead of repeating. Every package job sets `test-jobs: "4"`. Unset keeps today's serial, live-streamed behavior, and the multi-GPU lane is unchanged. - **Per-file settings** in `tools/test_settings.py`: - `PYTEST_WORKERS`: the few long-pole files that still split across xdist workers, holding one slot per worker and starting first. Today that is only `test_leapp_export_flow.py`. This replaces the job-wide `pytest-workers` input and `PYTEST_WORKER_LIMITS`. - `EXCLUSIVE_TESTS`: files that run alone. These are the two wall-clock performance tests; `test_robot_load_performance.py` failed with other files beside it. - **Renderers never overlap.** Files that start an RTX renderer (Kit cameras or OVRTX) never run beside each other; other files still run beside them. This avoids repeated cold shader compiles, which slowed startups several-fold, and garbled logs in the renderer log file they share. - **Output.** Output from concurrent files is printed whole per process attempt, so the job log does not interleave. - **Scheduling logic.** It lives in `tools/_file_scheduler.py`, with no pytest dependency. `tools/test_file_scheduler.py` covers it in the tools-tests job: slot limits, wide jobs not overtaken, renderer exclusivity, lazy claiming from the multi-GPU work queue, and error propagation. Each rule was checked by breaking it on purpose. - **Caches.** Every package job now restores the Warp kernel cache; nine did not. Jobs that render also restore the RTX shader cache. - **Pink IK race fix** (@ooctipus). Concurrent Pink IK controllers re-exported the same URDF and meshes into the shared temp dir, and the two GR1T2 mimic generation files read each other's half-written meshes. A file lock now covers export and load. This also affects users running several processes on one machine. ## Follow-ups - **RTX shader cache misses.** The restore finds no warmed entry for these runners' GPU and driver key (`sm89`, 595.58.03), so renderer startup still compiles shaders. `test_visualizer_golden_newton.py` still sometimes overruns the 120 s startup deadline and passes on retry. - **Non-atomic asset downloads.** `retrieve_file_path` downloads into the shared temp dir and reuses a file if it exists. Two processes fetching the same asset could read a partial file. This has not been observed. - **Slow asset-cache population.** `test_environments_isaacsim_physx.py` spends ~1,000 s populating the Git asset cache before its first test. ## Type of change - CI / test infrastructure (no user-facing change) ## 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 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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * Fix LSTM torque-speed clipping with explicit joint velocity (#7988) # Description `ActuatorNetLSTM.compute` used DC-motor clipping without updating its cached joint velocity, so the torque-speed limits were always evaluated at zero velocity. With the ANYmal actuator settings (saturation 120 N·m, effort limit 80 N·m, velocity limit 7.5 rad/s), it allowed 80 N·m of positive torque at 7.5 rad/s when the limit should be zero. Explicit PD and neural-network compute pass the current velocity directly into DC-motor clipping. This removes the cached `_joint_vel` tensor, its allocation and copies, and the redundant `DCMotor.compute` override. Clipping uses a local clamped value, preserving the measured velocity and the existing torque-speed equations. The base `_clip_effort(effort, *args, **kwargs)` only clamps effort and leaves model-specific inputs to subclasses. `DCMotor._clip_effort(effort, joint_vel)` owns velocity-dependent clipping; implicit actuators retain `_clip_effort(effort)`. Custom overrides used by explicit PD and neural-network actuators must accept the velocity argument, as documented in the changelog. ## Type of change - Bug fix and removal of redundant actuator state ## Tests Extended the existing DC-motor and ideal-PD tests; no new test file. - DC-motor, ideal-PD, and implicit-actuator suites: **41 passed**, including CPU and CUDA cases. Formatting and pre-commit checks passed. - The LSTM regression calls real `compute` with a constant 100 N·m network and checks expected efforts `80, 60, 0, 80` at velocities `0, 3.75, 7.5, -7.5`. Restoring the original production implementation fails numerically: two values differ, including 80 instead of zero at the velocity limit. - Existing four-quadrant DC-motor compute cases also verify that measured velocity stays unchanged. The LSTM regression guards against reintroducing cached `_joint_vel` state. - One assertion in the existing ideal-PD compute test verifies that base clipping needs only effort. It fails against the previous required-velocity signature. - A temporary two-step smoke check exercised DC-motor, LSTM, and MLP compute on CPU and CUDA with changing velocities beyond the curve's corner. Efforts matched the expected values and measured velocities stayed unchanged. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Lynn <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * Fix quaternion rotation broadcasting and body gravity observations (#7987) # Description `quat_apply` and `quat_apply_inverse` flattened quaternion and vector batches independently, losing broadcasting and causing `body_projected_gravity_b` to fail for multiple bodies. Both helpers now broadcast leading dimensions following NumPy rules and return the broadcast result shape. They use tensor views for broadcasting, without materializing repeated inputs. The observation only preserves an explicit body dimension, including integer body selection. The frame-transformer tutorial explicitly selects its single quaternion so its configured offset remains a flat 3-vector. Incompatible batch shapes now raise an error even when their element counts match; callers intentionally pairing flattened arrays must reshape them explicitly. The changelog also documents retained singleton batch dimensions and potentially noncontiguous outputs for transposed inputs; use `reshape` when flattening those outputs. Consolidated forward/inverse coverage in the existing math test and moved the gravity regression into `test_gravity_randomization.py`, using different gravity directions per environment. No new test file. Merged current `develop` and retained its multidimensional rotation coverage. ## Validation - Existing math, gravity, and reorientation checks passed. The caller audit additionally passed 66 tests: 36 CPU/CUDA quaternion cases, 21 operational-space controller cases, and 9 existing dexterous-task, FORGE, visualization, and sampler cases. - 42 CPU/CUDA comparisons of consumer tensor paths and gradients agreed with the old helpers. The tutorial offset failed backend-style stacking before its one-line correction and passed afterward with the analytic -90-degree yaw result. - Confirmed the broadcasting and gravity regressions fail with the old helpers and pass with the fix, including rejection of incompatible equal-element-count batches. - All pre-commit checks passed. - Single-thread CPU / RTX 5090 microbenchmarks: matching `(4096, 16)` GPU batches improved from about 27 to 25 microseconds; the gravity broadcast case improved from about 33 to 27 microseconds. Matching large CPU batches were about 17% slower (1.03 to 1.20 ms); matching 4096-element CPU batches were about unchanged (73 to 71 microseconds). ## Type of change - Bug fix, with an explicit compatibility change for callers relying on implicit flattened pairing. ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Lynn <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * [Tests] Prune Newton tests with the test-audit skill (#8008) # Newton test suite: 11:23 → 7:54 (−31%) The `isaaclab_newton` suite runs through `pytest tools` on the same machine with a warm Warp cache. All 38 files pass. | | `develop` | this PR | |---|---:|---:| | Suite wall time | 11:23 | **7:54** | | Test functions | 411 | 297 | | Test lines | 19,085 | 15,880 | ## What changed The whole test surface was pruned with the `isaaclab-auditing-tests` skill (#8007). **Method.** Every test was marked keep, fix, merge or delete. Whenever a deletion's keeper does not carry the assertions verbatim, a deliberate production mutation proves the keeper fails. An independent review then restored every gap it found. The only production change is `transform_to_vec_quat` raising its documented `ValueError`; it has a changelog entry. - **Merged:** tests that rebuilt the same scene now share one build: - frame transformer: 5 scenes → 1 - contact filter + stale-reset - IMU/PVA init + freefall - joint-wrench init/reset - limits: 14 builds → 4 - root/COM writes - dynamics accessors - rigid/collection write tests - **Deleted:** - manager class checks implied by the end-to-end solver test - `test_wrench_kernels.py` - private helper replays in `test_site_injection.py` - the joint-wrench oracle that repeated the production transform - the duplicate effort-limit test (the PhysX copy is kept) - **Fixed tests that could not fail:** - delayed/remotized PD equivalence, which passed with no delay authored - DC-motor clamp - IMU stale-data (#4970) - `set_coms_index` - joint targets, now checked by value instead of with a launch spy - **Restored:** four tests #8003 removed without a remaining proof (`TestDelayedPDAuthoring` and the material-property tests). - **Device axes:** device-independent bookkeeping runs on CUDA only. Every public writer family keeps a real-simulation CPU test. ## Product defects found (not fixed here) - **Newton `ArticulationView` misaddresses per-env shapes** for rigid-object collections. - **`RigidObject.body_link_vel_w` can read stale** after a COM velocity write. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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] My changes generate no new warnings - [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 --------- Signed-off-by: Octi Zhang <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [6/N] (#7986) # Description Sixth PR in a series that splits the core cleanup in #7949 into small, reviewable pieces. This one fixes two bugs in `isaaclab.benchmark`. Each fix has a regression test that fails against `develop` and passes here. ## Fixes - `benchmark.measurements.TestPhase.from_json`: phases written with `TestPhaseEncoder` store `"metadata"` as a list, but `from_json` passed `m["metadata"]` to `metadata_from_dict`, which indexes `["metadata"]` again. Phases with measurements raised `TypeError`, and phases without measurements silently lost their metadata because the assignment sat inside the measurement loop. It now passes the phase dict once, after the loop. This also fixes `TestPhase.aggregate_json_files`. - `benchmark.recorders.record_cpu_info.CPUInfoRecorder.get_data`: it read the mean/std/count from a dict that is only filled by `update()`, so calling it first raised `KeyError`. It now reads the running statistics directly, which start at zero. ## Tests - `test/benchmark/test_formatters.py`: `test_phase_json_round_trip_keeps_metadata` (with and without measurements). - `test/benchmark/test_recorders.py`: `TestCPUInfoRecorder.test_get_data_measurement_names` also calls `get_data()` before the first update. Validation: 25 formatter/recorder tests passed after merging `develop`. All three regression cases fail against the unfixed production code (metadata decoding, metadata without measurements, and CPU data before update). Formatting, lint, and changelog checks passed. ## 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 - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Co-authored-by: Octi Zhang <[email protected]> * [Cleanup] Remove the leftover isaaclab_ovphysx directory (#8033) # Description `isaaclab_ovphysx` was merged into `isaaclab_ov` in #6992, but `source/isaaclab_ovphysx/` still exists. It holds a single empty changelog fragment, `changelog.d/vidurv-regex-fragment-targeting.skip`, added afterwards by #6640 under the old path. The directory has no `config/extension.toml`, so the changelog compiler never treats it as a package and never consumes the fragment. It would stay forever and keep the old package name visible in the source tree. This PR deletes that fragment, which removes the directory: - **No code or config changes.** Nothing in the workspace, CI or tooling refers to the directory. - **References kept on purpose.** The remaining mentions of `isaaclab_ovphysx` are historical changelog entries and a note in the issue-audit skill that the package was merged, and they stay. ## Type of change - Repository cleanup (no user-facing change) ## 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] My changes generate no new warnings - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * [Camera] Refactor and speed up camera-based tasks [1/7] (#8036) # Description Part 1 of the camera performance series (see the series list below). This part fixes a bug that also blocked the fast image path. `sensor.data.output[...]` returns a `ProxyArray`, whose `.dtype` is the Warp dtype. `mdp.image` and the Cartpole camera observations passed it straight into `normalize_camera_image`, so every `images.dtype == torch.uint8` check failed: - colorized semantic segmentation was only cast to float and reached policies as values in `[0, 255]` instead of `[0, 1]`; - the fused uint8 normalization kernel never ran. The image terms now read `.torch`. The other camera tasks that relied on the deprecated implicit `ProxyArray`-as-tensor conversion (Cartpole showcase, stack blueprint, drone ARL) do the same. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - New `test_colorized_segmentation_is_scaled` (`mdp.image`) fails on `develop` and passes here. - The Cartpole camera observation test's fake sensor now returns a real `ProxyArray`, like actual sensors. With it, 4 of 8 cases fail on `develop` (the same segmentation bug) and all pass here. - `test_stacked_image_mdp.py`, `test_cartpole_camera_observations.py` and `test_images.py` pass. ## Series results Measured on `Isaac-Lift-KukaAllegro-Camera`, 4096 envs, Newton physics and Newton renderer, RTX PRO 6000 Blackwell, with all 7 parts applied (reference branch: #7440). | Metric | Before | After | |---|---|---| | Env step, RGB 128, one camera | 44.4 ms | 37.3 ms (+19% throughput) | | Env step, RGB 128, two cameras | 77.3 ms | 64.9 ms (+19%) | | Env step, RGB 64 | 26.8 ms | 23.6 ms (+14%) | | Env step, depth 128 | 37.3 ms | 33.7 ms (+10%) | | RSL-RL iteration, RGB 128, one camera | 3.19 s | 2.88 s (+11%), peak memory −40% | | RSL-RL iteration, RGB 128, two cameras | 6.23 s | 5.63 s (+11%), peak memory −47% | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * Fixes terrain origin computing in the inverted pyramid slope terrain (#4470) # Description Height-field terrain origins are now chosen by their generators and returned with the discretized height field. `height_field_to_mesh` places that origin in the padded mesh. The inverted pyramid slope origin therefore lies on its center platform for any platform width, including widths below 1 m. The duplicate `height_field_to_mesh_v2` decorator and its fixed sampling-width parameter have been removed. The built-in random and wave terrains retain their center-area maximum behavior. Other terrains with a flat center platform return its actual height. Custom height-field generators using the decorator must now return `(height_field, origin)`, where `origin` is a three-element position in meters relative to the generated height field. ## Validation - Regression test failed on `develop` for both tested inverted pyramid configurations and passes with this change. - `uv run --frozen python -m pytest source/isaaclab/test/terrains/test_terrain_generator.py -q` — 10 passed. - `uv run python tools/changelog/cli.py check develop` — passed. - `uv run isaaclab -f` — passed. - `uv run --isolated --extra dev -- make -C docs current-docs` — passed without warnings. ## Type of change - Bug fix with a height-field generator return-contract change (migration described above and in the changelog fragment). ## Screenshots | Before | After | | ------ | ----- | |  |  | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: xuxin <[email protected]> Co-authored-by: Mustafa Haiderbhai <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [7/N] (#8043) # Description Seventh PR in the series that splits the core cleanup in #7949 into small, reviewable pieces. The test-only consolidation originally planned next is dropped, since #8022 already pruned the core tests with the test-audit skill. The series continues with source refactors, starting with `isaaclab.utils.string`. There is no behavior change. - `resolve_matching_names_values` duplicated the matching loop of `resolve_matching_names`, including its one-to-one bookkeeping, ordering, and error messages. Both now use the cached `_resolve_matching_names_impl`, which also returns the key index of each match (to pick the values) and whether every key matched (so `strict=False` still returns the partial matches). As a side effect, `resolve_matching_names_values` is now cached too; its output lists are rebuilt per call, as before. - The `preserve_order` reordering (two nested loops building a permutation) is a stable sort by key index. - `find_unique_string_name` no longer checks the `_1` candidate twice; `find_root_prim_path_from_regex` returns early. Their docstrings drop types that duplicate the annotations. - The "Not all regular expressions are matched!" message now always lists the available strings as a list (it printed a tuple for `resolve_matching_names`). ## Verification - A randomized comparison of the `develop` and PR implementations (4,000 random target/pattern sets through both resolvers with every `preserve_order` / `strict` combination, plus `find_unique_string_name` and `find_root_prim_path_from_regex`; 8,506 cases) gives identical results and exception messages, apart from the list-vs-tuple formatting above. - `test/utils/test_string.py`, `test/utils/test_dict.py`, `test/actuators`, and `test/assets/test_articulation_iface.py` pass. - The dict-subclass value-pairing regression failed before the fix and passed after it; `test/utils/test_string.py` passes (18 tests), and `uv run isaaclab -f` passes. ## Type of change - Code cleanup (non-breaking, no functional change) ## 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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (`.skip`) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * [Tests] Split and trim the contrib environments smoke test (#8034) # Split contrib smoke tests by runtime and sample one task per family The original contrib job ran 83 environments serially in one camera-enabled Isaac Sim process. This change separates runtime requirements and intentionally runs **one representative per task package, robot directory, and runtime**. Adding variants within a family does not add smoke tests. - **Runtime routing:** `sim_launcher.scan()` selects kitless, Kit without cameras, or Kit with cameras. Kit and kitless each use two pytest workers; cameras use one process. The job has five slots and restores the RTX shader cache. - **Family grouping:** preserve the complete robot subdirectory, including OpenArm's separate unimanual and bimanual configurations. - **Representative selection:** prefer runnable rough-terrain variants to include height-scanner coverage, then the shortest task ID. Keep one visible skip for all-skipped families. There is no list of additional same-family cases. The selection contains **47 runnable environments and 4 skips**, versus 83 runnable environments and 12 skips originally. Rough-terrain representatives replace flat-terrain runs without increasing the number of tests per family. ## Validation - Registry-wide collection check confirms exactly one representative for every family/runtime, with no duplicate task IDs: 34 Kit entries (4 skipped), 11 kitless, and 6 camera entries. - The three changed representatives—bimanual OpenArm, AnymalC Direct Rough, and Digit Rough—passed local simulation smoke tests. - Formatting, lint, changelog checks, and `git diff --check` passed. No production code changed. The initial 46-case version completed CI in **6:43**, versus **24:19** on develop on the same runner type (RTX PRO 4500 Blackwell). Those timings precede the nested-robot and representative-selection changes; the final 47-case job needs a fresh CI measurement. ## Type of change - CI / test infrastructure (no user-facing change) ## 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] My changes generate no new warnings - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * Document Haptikos exoskeleton teleoperation with CloudXR (#8046) # Description Supersedes #6029 by @PKonMagos. This carries Haptikostech's Haptikos exoskeleton documentation onto current `develop` and updates the setup instructions for the Isaac Teleop and CloudXR workflow now used by Isaac Lab. The guide now covers the matching Isaac Teleop release branch, the separately obtained Haptikos C++ API required to build the plugin, CloudXR push-device configuration, and the correct launch order. No Isaac Lab runtime code changes are included. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Validation - [x] `uv run isaaclab -f` - [x] `uv run --isolated --extra dev -- make -C docs current-docs` (warning-free) - [x] On-demand Docker CI (`run-ci`): workflow passed; GPU jobs skipped for docs-only changes Hardware-specific Haptikos operation was not exercised locally. --------- Signed-off-by: PKontrazis <[email protected]> Co-authored-by: PKontrazis <[email protected]> * [Core] Unify physics stepping loops across environment classes (#6615) ## Description Each environment currently duplicates its physics stepping sequence for manager-owned and environment-owned decimation. This refactor gives `ManagerBasedEnv`, `ManagerBasedRLEnv`, `DirectRLEnv`, and `DirectMARLEnv` one loop each, with the number of physics substeps covered by a call determining the loop count and scene-update duration. Each environment continues to own its stepping sequence. Action application, writes, simulation calls, recorder callbacks, rendering, counters, and scene updates retain their existing order and cadence. Rendering still checks whether a completed call ends on a render-interval boundary. No backend interfaces or dependencies change. The branch includes current `develop` through `04573e6c8`. Added an `isaaclab` changelog exemption for this behavior-preserving refactor. ## Type of change - Internal refactor (no intended behavior or public API change) ## Validation - Existing direct-RL, direct-MARL, and manager-based-RL unit tests pass. - **5 passed:** existing PhysX environment rendering integration tests. - **1 passed:** existing Newton Cartpole determinism integration test. - Numerical comparison against `develop`: Newton manager-based and direct Cartpole, both decimation owners, 256 environments, decimation 4, 380 environment steps per configuration. Final observations, rewards, and termination/truncation flags match exactly; physics counters match at 1,520. The temporary fixture uses explicit ideal-PD actuators to exercise Newton-owned decimation. - Local timing check on an RTX 5090: median step times differ by -2.6% to +2.0% across those configurations (seven 50-step samples after warmup). This is a regression smoke check, not a performance claim. - `uv run isaaclab -f` and `git diff --check` pass. Audited all changed files; production changes are confined to the four environment step methods. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] Documentation assessed: no public API or behavior change requiring documentation - [x] No new warnings observed (existing simulator/deprecation warnings remain) - [ ] I have added regression coverage for the change (covered by existing environment tests) - [x] I have added a changelog fragment for the touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * [Core] Add mesh file sub-terrain (#8048) # Description Add `MeshFileTerrainCfg`, a trimesh sub-terrain that loads its geometry from a mesh file in any format supported by `trimesh` (OBJ, STL, PLY, ...). Because it is a regular sub-terrain, it composes with `TerrainGeneratorCfg` like any other mesh terrain: it gets the generator's tiling, border, curriculum, caching, flat-patch sampling, and the importer's physics and visual materials. The mesh is centered on the sub-terrain in XY with its height preserved, and the sub-terrain origin is placed on the mesh surface at the tile center. ```python terrain = TerrainImporterCfg( prim_path="/World/ground", terrain_type="generator", terrain_generator=TerrainGeneratorCfg( size=(8.0, 8.0), num_rows=1, num_cols=1, sub_terrains={"file": MeshFileTerrainCfg(mesh_path="/path/to/terrain.obj")}, ), ) ``` Fixes #2846 ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run `uv run isaaclab -f` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added a test that checks the mesh placement and sub-terrain origin - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] My name is already in `CONTRIBUTORS.md` ## Validation - `uv run python -m pytest source/isaaclab/test/terrains/test_terrain_generator.py -q` (11 passed) - `uv run isaaclab -f` (passed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * Fix visualizer app taskbar icons (#7714) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> Fixes the Newton GL, Newton RTX, and Kit visualizer windows showing a generic icon in the taskbar/dock instead of their real one. On Linux, most desktop environments resolve taskbar/dock icons by matching a window's `WM_CLASS` against an installed `.desktop` file's `StartupWMClass`, not from the window's own icon hint. Kit and Newton already set the right icon hint on the window itself, but without a matching `.desktop` file installed, the desktop environment falls back to a generic icon. `isaaclab.sh -i` and `isaaclab --editor` now install `.desktop` entries for the Kit, Newton GL, and Newton RTX windows so they resolve correctly. Separately, `ViewerRTX` (`newton_rtx`) never set a window icon at all (unlike `ViewerGL`, used by `newton_gl`), so it's now reusing Newton's own bundled icon for consistency with `newton_gl`. <!-- 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) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 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 `./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 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 <!-- 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: Mustafa Haiderbhai <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [Fix] Restore SO101 Keyboard initialization for the SysID asset (#8024) ## Summary Fix `IsaacContrib-Keyboard-SO101` initialization for the current SysID asset. - Rotate the robot base +90° about Z: the asset's native −Y working direction now faces the keyboard at +X. - Set the task's six initial joint positions to zero. Reset IK only runs 1–4 iterations, so inheriting the shared asset's nonzero pose materially changes the starting fingertip positions. Both overrides are task-local. Shared `SO101_CFG`, SysID actuator parameters, fingertip offset, IK budgets/randomization, rewards, solver settings and PPO settings are unchanged. No launcher-side pose overrides are needed. ## Validation - `uv run isaaclab -f`: passed all hooks. - Retained 128-environment MJWarp reset captures (8,192-state pool, seed 42, +90° rotation held fixed) showed median fingertip-to-key distance improving from approximately **9 cm to 4.9 cm** with the zero seed. These are reset measurements, not a claim of training convergence; no fresh GPU rollout was run on this rebased PR. ## Scope This contains the Isaac Lab asset/reset fixes only. Newton engine fixes and training-specific memory/capacity tuning are not bundled into this task change. Current `develop` does not expose an FPGS preset for this task, and this PR does not add one. ## Type of change - Bug fix ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] Reviewed contribution guidelines. - [x] Formatting/pre-commit checks passed. - [x] Added an `isaaclab_tasks` changelog fragment. - [x] Contributor already listed. --------- Co-authored-by: ooctipus <[email protected]> * [Camera] Refactor and speed up camera-based tasks [2/7] (#8037) # Description Part 2 of the camera performance series. #8036 has merged; this PR is rebased onto `develop` and contains one commit. Camera `rgb` outputs are strided views into the RGBA buffer (channel stride 4). `normalize_image_uint8` required contiguous input, so every RGB observation took a PyTorch fallback of about five full passes: cast, divide, subtract, permute-copy, and the manager clone. At 4096 envs and 128x128 that took 5.6 ms per step, where one fused pass should take about 1 ms. - `normalize_image_uint8` accepts strided input. `wp.from_torch` keeps the strides, and the kernel now launches over the output layout so the float32 writes coalesce. - `output_channel_dim` on `normalize_image_uint8` and `normalize_camera_image` writes channel-first output directly. `mdp.image(permute=True)` and the Cartpole camera observations use it instead of a separate permute copy. - The layout conversion applies to every `normalize_camera_image` branch, including non-colorized segmentation. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: develop) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `test_strided_rgb_view_with_layout_conversion` checks the RGB-of-RGBA view normalized straight into contiguous BCHW against a PyTorch reference, on CPU and CUDA. It replaces the test that rejected non-contiguous input. - `test_image_ops.py`, `test_images.py`, `test_stacked_image_mdp.py` and `test_cartpole_camera_observations.py` pass. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [8/N] (#8044) # Description Eighth PR in the series that splits the core cleanup in #7949 into small, reviewable pieces. It cleans up three Warp helpers in `isaaclab.utils.warp`. There is no behavior change. - `ops.py` - Output buffers use `torch.full(...)` without the no-op `.contiguous()`, and `torch.full(..., -1)` instead of `ones(...) * -1`. - `raycast_single_mesh` builds its mesh-id array with `wp.full` instead of a Python list comprehension. - `raycast_dynamic_meshes` builds identity orientations with `wp.full(..., wp.quat_identity())` instead of a torch round-trip (which removes the "couldn't find a better way" note), and builds the cached all-environments mask with `wp.full`. - The module-level `wp.config.quiet = True` / `wp.init()` are removed. Importing `isaaclab.utils.warp.ops` always runs the package `__init__` first, which already does both. - `particle_sampler.py`: the two samplers duplicated the winding-number mesh, lattice launch, and inside-point filtering. They now share `_mark_lattice_points`. - `warp_math.py`: in `convert_camera_frame_orientation_convention_wp`, the same-convention case with indices launches the shared indexed kernel with an identity quaternion instead of its own copy of the launch. Comments that explain intent or mark sections are kept, per the earlier comment review. ## Verification - `convert_camera_frame_orientation_convention_wp`: `develop` and PR outputs are bit-identical for all 9 convention pairs, with and without indices, on CPU and CUDA (random quaternions). - `test/utils/warp` (109), `test/sensors/test_ray_caster_kernels.py`, `test_multi_mesh_ray_caster.py`, `test_ray_caster_sensor.py`, and `test_ray_caster_integration.py` pass. ## Type of change - Code cleanup (non-breaking, no functional change) ## 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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (`.skip`) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * Stops cubes_stacked from reporting success for a cube still in flight (#7434) # Description `cubes_stacked` decides the stack tasks' success from an instantaneous geometric configuration — each cube within `xy_threshold` of the one below it and one cube-height above it — with no requirement that the cubes be supported or stationary. A cube released above its target satisfies exactly that description for a frame or two on the way down. That matters more than it sounds, because the Mimic data generator accumulates success across the whole episode: ```python generated_success = generated_success or exec_success ``` so a single frame of a cube passing through the right height marks the entire episode a success, and it is written into the generated dataset as a demonstration of the task being completed. ### Evidence Replaying the criterion offline over two generated datasets (the reproduction was validated first by confirming it passes 100% of the demos the generator accepted): | dataset | accepted demos | stack broken at the final frame | |---|---|---| | A | 380 | **28 (7.4%)** | | B | 358 | **19 (5.3%)** | In those demos the top cube ends a median 6.3 cm away in xy and at the *same height* as the cube it should be sitting on — it is on the table, not on the stack. The discriminator is what the mechanism predicts: cube_3's speed at the qualifying frame is a median 0.028–0.032 m/s in the broken demos versus **0.0000 m/s** in the rest. One timeline, taken from the case most favourable to any other explanation — the one whose jaws came closest to fully open while the criterion held: ``` frame stacked cube3-cube2 dz cube3 z jaw error 191 7.91 cm 14.62 cm 18.465 mm <- held above the target 193 5.60 cm 12.33 cm 3.124 mm <- jaws opening, cube falling 195 * 5.01 cm 11.76 cm 0.424 mm <- criterion fires, mid-fall 196 * 4.30 cm 11.04 cm 0.135 mm 199 0.33 cm 4.59 cm 0.012 mm <- cube reaches the table 205 0.00 cm 2.05 cm 0.007 mm <- 6.8 cm from cube_2 ``` The gripper releases 7.5 cm above `cube_2`; the cube free-falls through the height the criterion is looking for and lands on the table. ### The fix Require the cubes to have settled. `max_lin_vel` defaults to `0.01` m/s — comfortably above the noise floor of a cube at rest and well below anything falling — and can be set to `None` to skip the check. The default is not guessed. Replaying 100 generated demos through the recorded `root_velocity` — the same signal the check reads — shows cubes resting on the stack are **not** at zero: the contact solver leaves a median 0.0132 m/s, peaking at 0.0341 m/s over the 91 sound demos, against a median 0.104 m/s for a cube caught mid-fall. | max_lin_vel | keeps sound demos | keeps defective ones | |---|---|---| | 0.010 | 15/91 | 0/9 | | 0.020 | 77/91 | 0/9 | | **0.050** | **91/91** | **2/9** | | 0.100 | 91/91 | 4/9 | It is deliberately not a perfect separator: the distributions overlap at the bottom because a cube near the apex of a bounce is briefly slow, and tightening past 0.034 m/s starts discarding real demonstrations. An angular-velocity term buys one more defect at the cost of four sound demos, so it was left out. Measured end to end on the stock `Isaac-Stack-Cube-Franka-IK-Rel-Mimic-v0`, generating 100 accepted demos each way: | criterion | accepted | ends broken | attempts | success rate | |---|---|---|---|---| | before | 100 | **9 (9.0%)** | 279 | 35.8% | | after | 100 | **2 (2.0%)** | 300 | 33.3% | ### Scope and caveats - All six call sites of `cubes_stacked` are `DoneTerm` success terminations. The Mimic subtask-boundary signals use `object_stacked` (observations side), so annotation boundaries are unaffected. `object_stacked` has the same one-sided geometry and can presumably fire in flight too; it is consumed edge-triggered by annotation and is left out of scope here. - The 0.05 m/s default was measured on the stack task's default backend (PhysX, `stack_env_cfg.py: default = isaacsim_physx`). The Newton solver config offered alongside it, and the SO-101 stack task which shares this termination, were not measured separately; if either shows a higher resting jitter the threshold should be raised for it rather than the check disabled. ### Tests `source/isaaclab_tasks/test/contrib/stack/test_cubes_stacked_at_rest.py` — ten sim-free cases with hand-built scene objects: a resting stack passes; a cube passing through the stacked configuration mid-fall does not (the defect); `max_lin_vel=None` restores the position-only check; every cube in the checked set is subject to the test; the 0.030 / 0.049 / 0.051 m/s edges; the two-cube variant ignores the third scene object; the Franka variants' remapped cube roles are honoured; batched verdicts stay independent; the gripper check still gates. ### A note on the gripper tolerance, which looks like the opposite bug `atol`/`rtol` of `1e-4` against `gripper_open_val` work out to 0.104 mm on a 40 mm jaw travel, and 11% of failed attempts had reached the stacked geometry but missed that tolerance — which reads like a false-negative worth relaxing. It is not. Every one of those 76 episodes is a drop: none has its stack intact at the final frame, and the top cube has moved a median 10.8 cm by then. Relaxing the tolerance to 3 mm would have admitted 54 of them into the dataset. The tight tolerance is masking this defect by accident; it is not causing one, and it is left alone here. ## Type of change - Bug fix (non-breaking change which fixes an issue) This lowers reported success rates for the stack tasks slightly, in both Mimic generation and policy evaluation, because episodes that end with the cube on the table stop counting. `max_lin_vel=None` in the termination term's `params` restores the previous behaviour. ## Checklist - [x] I have read and understood the contribution guidelines - [ ] 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/<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) https://claude.ai/code/session_01JFz91VMgmrjS4XR6f9Q9Z2 ## Release backport - [x] Backport this pull request to the active release branch after it merges into `develop`. --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Antoine Richard <[email protected]> * [CI][Auto Version Bump] Compile changelog fragments (schedule) Bumped packages: - isaaclab: 29.0.0 → 29.1.0 - isaaclab_contrib: 2.0.1 → 2.0.2 - isaaclab_newton: 8.0.0 → 8.1.0 - isaaclab_ov: 3.4.0 → 3.4.1 - isaaclab_physx: 7.2.3 → 7.2.4 - isaaclab_tasks: 21.1.0 → 21.1.1 - isaaclab_visualizers: 1.13.0 → 1.13.1 * [CI] Bump Isaac Sim image to 993bd3503d37 (#7896) # Description This automated draft updates CI to the current Isaac Sim nightly image. | Field | Value | |---|---| | Image | `nvcr.io/0947644777160149/internal/isaac-sim` | | Moving tag | `latest-develop` | | Current pin | `latest-develop@sha256:600fa643bb362dda1771515f16a80f0fefe11001a13e47ffcb015352dbad9f70` | | Candidate pin | `latest-develop@sha256:993bd3503d37f96f7f8f6f71e5091788183d265d8d8b42ff43ffa04b76936436` | 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 this pull request to the active release branch after it merges into `develop` ## 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 `./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 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> Co-authored-by: Kelly Guo <[email protected]> * Fix batched output shape in project_points (#8050) # Description `project_points()` recorded `is_batched = points_batch.dim() == 2`, which is the unbatched case. As a result an unbatched `(P, 3)` input was returned as `(1, P, 3)`, and a single-item `(1, P, 3)` batch lost its batch dimension and came back as `(P, 3)`. Multi-item batches were unaffected, and the projected values were already correct. This checks for a rank-3 input instead (matching `transform_points` in the same module), fixes the squeeze comment, and adds `test_project_points`, which compares against the pinhole model for unbatched, single-item and multi-item inputs. There was no existing test for `project_points`. The only in-repo caller, `scripts/tutorials/04_sensors/run_ray_caster_camera.py`, passes batched points and flattens the result with `view(-1, ...)`, so it is not affected. Fixes #8032 ## 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 `./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 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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Testing - `pytest source/isaaclab/test/utils/test_math.py -k "project_points or u…
* add rough terrain * rename rsl rl cfg entry point for rough terrain task * Junnosuke/code stable (#27) * [Tests] Update Newton tendon regression for explicit construction (#7985) # Description The fixed-tendon integration regression failed at `sim.reset()` after #8005 made Newton model construction explicit. It now calls `replicate(sim.get_clone_plan())` before reset, matching the other articulation tests. The original environment, event-manager, and tendon fixes from this PR were already merged through the stacked #7990. This update resolves the conflicts against current `develop`, preserves its newer tendon implementation and expanded regression, and leaves only the missing test setup call plus the required changelog marker. ## Validation - 21 checks passed: 6 articulation-event tests, 13 event-manager tests, the indexed-dictionary curriculum regression, and the GPU tendon regression. - The tendon regression passed with the pinned Newton 1.6.0 and MuJoCo Warp 3.12.0 on an RTX 5090. It covers stiffness, damping, position limits, and selected environment/tendon updates. - Before the setup call, the test failed because no Newton builder had been supplied. With the setup corrected, removing only `ModelFlags.TENDON_PROPERTIES` notification makes the test fail numerically: solver stiffness remains 0 instead of 12. - All formatting and pre-commit checks passed. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * [Tests] Prune core isaaclab tests with the test-audit skill (#8022) # Core (`isaaclab`) test job: 32:18 → 22:40 (−30%) The core job (`pytest tools`, excluding `isaaclab_*` packages, as the three core CI shards run it) ran on the same machine with a warm Warp cache, once on `develop` and once on this PR. - **Timing fix.** In the worktree the two benchmark smoke files launched the system Python and failed fast. The pruned time is corrected with their 2:00 baseline duration; they are unchanged by this PR. - **Shared failures.** Six files fail on both sides only because of local tools and environment: video conversion, `nsys`, device constructors and visualizer markers. - **Fixed here.** The four asset interface files that fail on `develop` fail because of an OVPhysX fixture bug, which this PR fixes. | | `develop` | this PR | |---|---:|---:| | Core job wall time | 32:18 | **22:40** | | Test files | 312 | 289 | | Test functions | 3,069 | 2,229 | | Test lines | 97,369 | 81,275 | Changes outside test files: - `tools/test_settings.py` drops `TESTS_TO_SKIP` entries for five deleted files. - `docs/source/refs/contributing.rst` pointed at the deleted `deps/test_torch.py`; it now points at `utils/test_circular_buffer.py`. ## What changed Pruned with the `isaaclab-auditing-tests` skill (#8007), campaign mode. The work ran in seven lanes: - sim - assets - sensors - envs / managers / controllers / actuators - scene / cloner / renderers / markers - utils - CLI / app / benchmarks **Method.** Every test was marked keep, fix, merge or delete. Whenever a deletion's keeper does not carry the assertions verbatim, a deliberate production mutation proves the keeper fails. An independent review per lane restored every gap it found, each mutation-proven: - OSC variable-impedance masking - render interval in all three workflows - per-backend deprecated friction writer - CPU segmentation - ray-caster mesh cache - rendering-kit defaults - non-default `dt` - schema API application - joint drive type - file-log level - global torque reset - terrain origins - **Largest cuts:** - asset interface tests: mocked cases ~6,400 → ~1,050; about 114 getter tests became 4 table tests, with rows diffed mechanically - 10 OSC convergence sims, covered by the repaired unit-law test - manager tests moved off Kit - actuator and rendering cartesian products - SimulationContext 52 → 30 tests - **Tests that could not fail, now fixed:** - partial writes with a non-trivial joint/body ordering - alias equality compared by shape only - writer read-backs - schema validators that inspected only children - `test_reset` lifecycle checks - a camera test that compared a shared cache with itself - **Multi-GPU lane:** tests now use `DeviceScope.DEFAULT_CUDA` or `CPU_AND_DEFAULT_CUDA`, so no file enters the multi-GPU job unless it boots Kit with `resolve_test_sim_device()`. Merged with #7995. Its new renderer source-scan test was not carried over: the behavior it guards, SDP writing geometry into Fabric, is covered by `test_scene_data_geometry.py`. ## Product defects found (not fixed here) - When physics handles decimation, the render check only fires on exact multiples. For example, `render_interval=10` with `decimation=4` renders at half rate. This affects all four env classes. - PhysX-Fabric FrameView: after a USD parent move, whichever of the world/local reads comes second is stale. - The MJCF physics scene is written to payload layers, not under the default prim. - PhysX fixed-tendon position limits are `(N, T, 2)`, which contradicts the docstring and OVPhysX. - EventManager does not register class terms when created while the sim is already playing. - `FrameTransformer.__str__` swaps the frame count and names. - RigidObjectCollection `set_coms_index` raises KeyError on PhysX. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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] My changes generate no new warnings - [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: Octi Zhang <[email protected]> * Fix flat-ground visual coverage for large environment batches (#8025) ## Description Keep 50 m of visible flat ground beyond each edge of the environment grid. Previously, large batches had only one environment spacing of margin, so locomotion robots could walk off the visible mesh while still standing on the infinite collision plane. | Environments | Spacing | Visual width before → after | Margin per side before → after | |---|---|---|---| | 1 | 1 m | 100 → 100 m | 50 → 50 m | | 4,096 | 4 m | 260 → 352 m | 4 → 50 m | | 16,384 | 2.5 m | 322.5 → 417.5 m | 2.5 → 50 m | The existing UV rescaling preserves **1 m checker cells / 2 m texture repeats** at every size. The infinite collision plane and explicit `import_ground_plane(size=...)` overrides are unchanged. **No rough-terrain, heightfield, solver, or task-parameter changes.** ## Validation - `uv run isaaclab -f`: passed. - Default-ground-plane asset/material tests: 3 passed. - CPU USD authoring checks at 1 / 4,096 / 16,384 origins verified the actual transformed mesh bounds and metric UV repeats. The margin assertion failed on the base and passed with this fix. - Headless GL before/after images at 20 m beyond a 16,384-environment grid corner: the old mesh ended behind the marker; the enlarged mesh covered it with unchanged checker size. This used a tiny static scene, not 16,384 simulated robots. - A 16-environment Go2-flat checkpoint replay passed 300 policy steps in the active training checkout with this same ground-size fix applied; robot and floor remained visible. - Fresh `develop` with Newton 1.6.0 produced a blank viewport with **both** the base and patched ground-size formulas (pixel-identical control frames). That playback was not counted as a successful visual check. - Extended the existing terrain-importer integration test across those batch sizes. The full Kit integration suite was not run locally. ## Type of change Bug fix (visualization only). ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] Formatting checks passed. - [x] Updated the API docstring and existing regression test. - [x] Added an `isaaclab` changelog fragment. Co-authored-by: ooctipus <[email protected]> * [Core] Resolve nested local and remote USD dependencies (#8011) ## Summary USD composition could fail for `scene.usda -> local robot.usda -> remote asset.usd`, or when a downloaded layer still referenced a remote URL. The common USD reference loader now prepares both local and remote files through one recursive dependency traversal. Changed layers are written as working copies, preserving authored files and raw downloads. Renderer-provided MDL identifiers such as `OmniPBR.mdl` and self-contained USDZ packages retain their resolution behavior. Completed managed local trees skip discovery while their file stamps match; incomplete downloads remain retryable, and remote URL requests retain freshness checks. Fixes #7999 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - Full asset test suite: 66 passed. - Extended the existing composition test with renderer module identifiers and a remote USDZ case; all four composition cases fail on the previous PR revision and pass with this change. - Verified the common reference loader composes a real remote Cartpole through two local wrapper layers. - All 48 previously failing CI cases passed locally with Isaac Sim 6.1.0.0, OVRTX 0.5.0.377615, and OVPhysX 0.6.3. These include the existing Kit and Kitless image comparisons, visualizers, scene partitioning, USDZ demos, and later core/contributed-environment failures. Golden images and rendering thresholds were unchanged. - `uv run isaaclab -f`: passed, including changelog validation against upstream develop. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] My changes generate no new warnings - [x] I have added a test that proves the fix - [x] I have added a changelog fragment for the touched package - [x] My name is already in `CONTRIBUTORS.md` --------- Co-authored-by: Octi Zhang <[email protected]> * [Tests] Run package CI test files concurrently (#8006) # Package CI test jobs: 4:26 h → 2:09 h of runner time (−52%); longest job 29 → 13 min All package jobs pass. The comparison is a green `develop`-based PR run ([before](https://github.com/isaac-sim/IsaacLab/actions/runs/36102042654)) against this PR ([after](https://github.com/isaac-sim/IsaacLab/actions/runs/36126670863)): | Job | Before | After | |---|---:|---:| | `isaaclab_newton` | 26:35 | **7:45** (−71%) | | `isaaclab_ov` | 20:05 | **5:52** (−71%) | | `isaaclab_contrib` | 9:23 | **2:45** (−71%) | | `isaaclab (core)` 1/2/3 | 22:27 / 29:15 / 22:22 | **10:36 / 8:10 / 8:45** | | `isaaclab_tasks` 1/2/3 | 15:09 / 28:29 / 7:22 | **12:37 / 9:00 / 5:53** | | `isaaclab_rl` | 23:10 | **7:10** (−69%) | | `isaaclab_mimic` | 20:23 | **9:07** (−55%) | | `isaaclab_physx` | 14:49 | **8:46** (−41%) | | `isaaclab_visualizers` | 13:36 | 12:08 (−11%) | | `isaaclab_teleop` | 8:25 | 9:27 | | `isaaclab_assets` / `_experimental` | 3:04 / 1:44 | 5:15 / 5:45 | Assets and experimental lost to image-pull variance: their pulls took 1:25 and 3:58, against 0:02 in the baseline. Teleop and visualizers gain little because most of their files start a renderer, and renderer files run one at a time. ## Why xdist alone did not scale CI logs from a green run show most files spend more time starting than testing: - Kit files take a median 15.5 s before the first test, kitless files 3.2 s. - The first RTX renderer in a container waits 113–130 s. Splitting every file across xdist workers repeats that startup per worker, so the earlier renderer-file slowdowns were almost all startup: PhysX rigid-object rendering 113 s → 412 s, contrib visuotactile 119 s → 411 s. Only long files with cheap startup got faster, such as the leapp export. ## What changed - **`TEST_JOBS` / `test-jobs` input.** `tools/conftest.py` runs up to `TEST_JOBS` test files at once, each still in its own pytest process, so startup overlaps instead of repeating. Every package job sets `test-jobs: "4"`. Unset keeps today's serial, live-streamed behavior, and the multi-GPU lane is unchanged. - **Per-file settings** in `tools/test_settings.py`: - `PYTEST_WORKERS`: the few long-pole files that still split across xdist workers, holding one slot per worker and starting first. Today that is only `test_leapp_export_flow.py`. This replaces the job-wide `pytest-workers` input and `PYTEST_WORKER_LIMITS`. - `EXCLUSIVE_TESTS`: files that run alone. These are the two wall-clock performance tests; `test_robot_load_performance.py` failed with other files beside it. - **Renderers never overlap.** Files that start an RTX renderer (Kit cameras or OVRTX) never run beside each other; other files still run beside them. This avoids repeated cold shader compiles, which slowed startups several-fold, and garbled logs in the renderer log file they share. - **Output.** Output from concurrent files is printed whole per process attempt, so the job log does not interleave. - **Scheduling logic.** It lives in `tools/_file_scheduler.py`, with no pytest dependency. `tools/test_file_scheduler.py` covers it in the tools-tests job: slot limits, wide jobs not overtaken, renderer exclusivity, lazy claiming from the multi-GPU work queue, and error propagation. Each rule was checked by breaking it on purpose. - **Caches.** Every package job now restores the Warp kernel cache; nine did not. Jobs that render also restore the RTX shader cache. - **Pink IK race fix** (@ooctipus). Concurrent Pink IK controllers re-exported the same URDF and meshes into the shared temp dir, and the two GR1T2 mimic generation files read each other's half-written meshes. A file lock now covers export and load. This also affects users running several processes on one machine. ## Follow-ups - **RTX shader cache misses.** The restore finds no warmed entry for these runners' GPU and driver key (`sm89`, 595.58.03), so renderer startup still compiles shaders. `test_visualizer_golden_newton.py` still sometimes overruns the 120 s startup deadline and passes on retry. - **Non-atomic asset downloads.** `retrieve_file_path` downloads into the shared temp dir and reuses a file if it exists. Two processes fetching the same asset could read a partial file. This has not been observed. - **Slow asset-cache population.** `test_environments_isaacsim_physx.py` spends ~1,000 s populating the Git asset cache before its first test. ## Type of change - CI / test infrastructure (no user-facing change) ## 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 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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * Fix LSTM torque-speed clipping with explicit joint velocity (#7988) # Description `ActuatorNetLSTM.compute` used DC-motor clipping without updating its cached joint velocity, so the torque-speed limits were always evaluated at zero velocity. With the ANYmal actuator settings (saturation 120 N·m, effort limit 80 N·m, velocity limit 7.5 rad/s), it allowed 80 N·m of positive torque at 7.5 rad/s when the limit should be zero. Explicit PD and neural-network compute pass the current velocity directly into DC-motor clipping. This removes the cached `_joint_vel` tensor, its allocation and copies, and the redundant `DCMotor.compute` override. Clipping uses a local clamped value, preserving the measured velocity and the existing torque-speed equations. The base `_clip_effort(effort, *args, **kwargs)` only clamps effort and leaves model-specific inputs to subclasses. `DCMotor._clip_effort(effort, joint_vel)` owns velocity-dependent clipping; implicit actuators retain `_clip_effort(effort)`. Custom overrides used by explicit PD and neural-network actuators must accept the velocity argument, as documented in the changelog. ## Type of change - Bug fix and removal of redundant actuator state ## Tests Extended the existing DC-motor and ideal-PD tests; no new test file. - DC-motor, ideal-PD, and implicit-actuator suites: **41 passed**, including CPU and CUDA cases. Formatting and pre-commit checks passed. - The LSTM regression calls real `compute` with a constant 100 N·m network and checks expected efforts `80, 60, 0, 80` at velocities `0, 3.75, 7.5, -7.5`. Restoring the original production implementation fails numerically: two values differ, including 80 instead of zero at the velocity limit. - Existing four-quadrant DC-motor compute cases also verify that measured velocity stays unchanged. The LSTM regression guards against reintroducing cached `_joint_vel` state. - One assertion in the existing ideal-PD compute test verifies that base clipping needs only effort. It fails against the previous required-velocity signature. - A temporary two-step smoke check exercised DC-motor, LSTM, and MLP compute on CPU and CUDA with changing velocities beyond the curve's corner. Efforts matched the expected values and measured velocities stayed unchanged. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Lynn <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * Fix quaternion rotation broadcasting and body gravity observations (#7987) # Description `quat_apply` and `quat_apply_inverse` flattened quaternion and vector batches independently, losing broadcasting and causing `body_projected_gravity_b` to fail for multiple bodies. Both helpers now broadcast leading dimensions following NumPy rules and return the broadcast result shape. They use tensor views for broadcasting, without materializing repeated inputs. The observation only preserves an explicit body dimension, including integer body selection. The frame-transformer tutorial explicitly selects its single quaternion so its configured offset remains a flat 3-vector. Incompatible batch shapes now raise an error even when their element counts match; callers intentionally pairing flattened arrays must reshape them explicitly. The changelog also documents retained singleton batch dimensions and potentially noncontiguous outputs for transposed inputs; use `reshape` when flattening those outputs. Consolidated forward/inverse coverage in the existing math test and moved the gravity regression into `test_gravity_randomization.py`, using different gravity directions per environment. No new test file. Merged current `develop` and retained its multidimensional rotation coverage. ## Validation - Existing math, gravity, and reorientation checks passed. The caller audit additionally passed 66 tests: 36 CPU/CUDA quaternion cases, 21 operational-space controller cases, and 9 existing dexterous-task, FORGE, visualization, and sampler cases. - 42 CPU/CUDA comparisons of consumer tensor paths and gradients agreed with the old helpers. The tutorial offset failed backend-style stacking before its one-line correction and passed afterward with the analytic -90-degree yaw result. - Confirmed the broadcasting and gravity regressions fail with the old helpers and pass with the fix, including rejection of incompatible equal-element-count batches. - All pre-commit checks passed. - Single-thread CPU / RTX 5090 microbenchmarks: matching `(4096, 16)` GPU batches improved from about 27 to 25 microseconds; the gravity broadcast case improved from about 33 to 27 microseconds. Matching large CPU batches were about 17% slower (1.03 to 1.20 ms); matching 4096-element CPU batches were about unchanged (73 to 71 microseconds). ## Type of change - Bug fix, with an explicit compatibility change for callers relying on implicit flattened pairing. ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Lynn <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * [Tests] Prune Newton tests with the test-audit skill (#8008) # Newton test suite: 11:23 → 7:54 (−31%) The `isaaclab_newton` suite runs through `pytest tools` on the same machine with a warm Warp cache. All 38 files pass. | | `develop` | this PR | |---|---:|---:| | Suite wall time | 11:23 | **7:54** | | Test functions | 411 | 297 | | Test lines | 19,085 | 15,880 | ## What changed The whole test surface was pruned with the `isaaclab-auditing-tests` skill (#8007). **Method.** Every test was marked keep, fix, merge or delete. Whenever a deletion's keeper does not carry the assertions verbatim, a deliberate production mutation proves the keeper fails. An independent review then restored every gap it found. The only production change is `transform_to_vec_quat` raising its documented `ValueError`; it has a changelog entry. - **Merged:** tests that rebuilt the same scene now share one build: - frame transformer: 5 scenes → 1 - contact filter + stale-reset - IMU/PVA init + freefall - joint-wrench init/reset - limits: 14 builds → 4 - root/COM writes - dynamics accessors - rigid/collection write tests - **Deleted:** - manager class checks implied by the end-to-end solver test - `test_wrench_kernels.py` - private helper replays in `test_site_injection.py` - the joint-wrench oracle that repeated the production transform - the duplicate effort-limit test (the PhysX copy is kept) - **Fixed tests that could not fail:** - delayed/remotized PD equivalence, which passed with no delay authored - DC-motor clamp - IMU stale-data (#4970) - `set_coms_index` - joint targets, now checked by value instead of with a launch spy - **Restored:** four tests #8003 removed without a remaining proof (`TestDelayedPDAuthoring` and the material-property tests). - **Device axes:** device-independent bookkeeping runs on CUDA only. Every public writer family keeps a real-simulation CPU test. ## Product defects found (not fixed here) - **Newton `ArticulationView` misaddresses per-env shapes** for rigid-object collections. - **`RigidObject.body_link_vel_w` can read stale** after a COM velocity write. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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] My changes generate no new warnings - [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 --------- Signed-off-by: Octi Zhang <[email protected]> Co-authored-by: Octi Zhang <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [6/N] (#7986) # Description Sixth PR in a series that splits the core cleanup in #7949 into small, reviewable pieces. This one fixes two bugs in `isaaclab.benchmark`. Each fix has a regression test that fails against `develop` and passes here. ## Fixes - `benchmark.measurements.TestPhase.from_json`: phases written with `TestPhaseEncoder` store `"metadata"` as a list, but `from_json` passed `m["metadata"]` to `metadata_from_dict`, which indexes `["metadata"]` again. Phases with measurements raised `TypeError`, and phases without measurements silently lost their metadata because the assignment sat inside the measurement loop. It now passes the phase dict once, after the loop. This also fixes `TestPhase.aggregate_json_files`. - `benchmark.recorders.record_cpu_info.CPUInfoRecorder.get_data`: it read the mean/std/count from a dict that is only filled by `update()`, so calling it first raised `KeyError`. It now reads the running statistics directly, which start at zero. ## Tests - `test/benchmark/test_formatters.py`: `test_phase_json_round_trip_keeps_metadata` (with and without measurements). - `test/benchmark/test_recorders.py`: `TestCPUInfoRecorder.test_get_data_measurement_names` also calls `get_data()` before the first update. Validation: 25 formatter/recorder tests passed after merging `develop`. All three regression cases fail against the unfixed production code (metadata decoding, metadata without measurements, and CPU data before update). Formatting, lint, and changelog checks passed. ## 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 - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Co-authored-by: Octi Zhang <[email protected]> * [Cleanup] Remove the leftover isaaclab_ovphysx directory (#8033) # Description `isaaclab_ovphysx` was merged into `isaaclab_ov` in #6992, but `source/isaaclab_ovphysx/` still exists. It holds a single empty changelog fragment, `changelog.d/vidurv-regex-fragment-targeting.skip`, added afterwards by #6640 under the old path. The directory has no `config/extension.toml`, so the changelog compiler never treats it as a package and never consumes the fragment. It would stay forever and keep the old package name visible in the source tree. This PR deletes that fragment, which removes the directory: - **No code or config changes.** Nothing in the workspace, CI or tooling refers to the directory. - **References kept on purpose.** The remaining mentions of `isaaclab_ovphysx` are historical changelog entries and a note in the issue-audit skill that the package was merged, and they stay. ## Type of change - Repository cleanup (no user-facing change) ## 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] My changes generate no new warnings - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * [Camera] Refactor and speed up camera-based tasks [1/7] (#8036) # Description Part 1 of the camera performance series (see the series list below). This part fixes a bug that also blocked the fast image path. `sensor.data.output[...]` returns a `ProxyArray`, whose `.dtype` is the Warp dtype. `mdp.image` and the Cartpole camera observations passed it straight into `normalize_camera_image`, so every `images.dtype == torch.uint8` check failed: - colorized semantic segmentation was only cast to float and reached policies as values in `[0, 255]` instead of `[0, 1]`; - the fused uint8 normalization kernel never ran. The image terms now read `.torch`. The other camera tasks that relied on the deprecated implicit `ProxyArray`-as-tensor conversion (Cartpole showcase, stack blueprint, drone ARL) do the same. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: #8036) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - New `test_colorized_segmentation_is_scaled` (`mdp.image`) fails on `develop` and passes here. - The Cartpole camera observation test's fake sensor now returns a real `ProxyArray`, like actual sensors. With it, 4 of 8 cases fail on `develop` (the same segmentation bug) and all pass here. - `test_stacked_image_mdp.py`, `test_cartpole_camera_observations.py` and `test_images.py` pass. ## Series results Measured on `Isaac-Lift-KukaAllegro-Camera`, 4096 envs, Newton physics and Newton renderer, RTX PRO 6000 Blackwell, with all 7 parts applied (reference branch: #7440). | Metric | Before | After | |---|---|---| | Env step, RGB 128, one camera | 44.4 ms | 37.3 ms (+19% throughput) | | Env step, RGB 128, two cameras | 77.3 ms | 64.9 ms (+19%) | | Env step, RGB 64 | 26.8 ms | 23.6 ms (+14%) | | Env step, depth 128 | 37.3 ms | 33.7 ms (+10%) | | RSL-RL iteration, RGB 128, one camera | 3.19 s | 2.88 s (+11%), peak memory −40% | | RSL-RL iteration, RGB 128, two cameras | 6.23 s | 5.63 s (+11%), peak memory −47% | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * Fixes terrain origin computing in the inverted pyramid slope terrain (#4470) # Description Height-field terrain origins are now chosen by their generators and returned with the discretized height field. `height_field_to_mesh` places that origin in the padded mesh. The inverted pyramid slope origin therefore lies on its center platform for any platform width, including widths below 1 m. The duplicate `height_field_to_mesh_v2` decorator and its fixed sampling-width parameter have been removed. The built-in random and wave terrains retain their center-area maximum behavior. Other terrains with a flat center platform return its actual height. Custom height-field generators using the decorator must now return `(height_field, origin)`, where `origin` is a three-element position in meters relative to the generated height field. ## Validation - Regression test failed on `develop` for both tested inverted pyramid configurations and passes with this change. - `uv run --frozen python -m pytest source/isaaclab/test/terrains/test_terrain_generator.py -q` — 10 passed. - `uv run python tools/changelog/cli.py check develop` — passed. - `uv run isaaclab -f` — passed. - `uv run --isolated --extra dev -- make -C docs current-docs` — passed without warnings. ## Type of change - Bug fix with a height-field generator return-contract change (migration described above and in the changelog fragment). ## Screenshots | Before | After | | ------ | ----- | |  |  | ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: xuxin <[email protected]> Co-authored-by: Mustafa Haiderbhai <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [7/N] (#8043) # Description Seventh PR in the series that splits the core cleanup in #7949 into small, reviewable pieces. The test-only consolidation originally planned next is dropped, since #8022 already pruned the core tests with the test-audit skill. The series continues with source refactors, starting with `isaaclab.utils.string`. There is no behavior change. - `resolve_matching_names_values` duplicated the matching loop of `resolve_matching_names`, including its one-to-one bookkeeping, ordering, and error messages. Both now use the cached `_resolve_matching_names_impl`, which also returns the key index of each match (to pick the values) and whether every key matched (so `strict=False` still returns the partial matches). As a side effect, `resolve_matching_names_values` is now cached too; its output lists are rebuilt per call, as before. - The `preserve_order` reordering (two nested loops building a permutation) is a stable sort by key index. - `find_unique_string_name` no longer checks the `_1` candidate twice; `find_root_prim_path_from_regex` returns early. Their docstrings drop types that duplicate the annotations. - The "Not all regular expressions are matched!" message now always lists the available strings as a list (it printed a tuple for `resolve_matching_names`). ## Verification - A randomized comparison of the `develop` and PR implementations (4,000 random target/pattern sets through both resolvers with every `preserve_order` / `strict` combination, plus `find_unique_string_name` and `find_root_prim_path_from_regex`; 8,506 cases) gives identical results and exception messages, apart from the list-vs-tuple formatting above. - `test/utils/test_string.py`, `test/utils/test_dict.py`, `test/actuators`, and `test/assets/test_articulation_iface.py` pass. - The dict-subclass value-pairing regression failed before the fix and passed after it; `test/utils/test_string.py` passes (18 tests), and `uv run isaaclab -f` passes. ## Type of change - Code cleanup (non-breaking, no functional change) ## 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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (`.skip`) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * [Tests] Split and trim the contrib environments smoke test (#8034) # Split contrib smoke tests by runtime and sample one task per family The original contrib job ran 83 environments serially in one camera-enabled Isaac Sim process. This change separates runtime requirements and intentionally runs **one representative per task package, robot directory, and runtime**. Adding variants within a family does not add smoke tests. - **Runtime routing:** `sim_launcher.scan()` selects kitless, Kit without cameras, or Kit with cameras. Kit and kitless each use two pytest workers; cameras use one process. The job has five slots and restores the RTX shader cache. - **Family grouping:** preserve the complete robot subdirectory, including OpenArm's separate unimanual and bimanual configurations. - **Representative selection:** prefer runnable rough-terrain variants to include height-scanner coverage, then the shortest task ID. Keep one visible skip for all-skipped families. There is no list of additional same-family cases. The selection contains **47 runnable environments and 4 skips**, versus 83 runnable environments and 12 skips originally. Rough-terrain representatives replace flat-terrain runs without increasing the number of tests per family. ## Validation - Registry-wide collection check confirms exactly one representative for every family/runtime, with no duplicate task IDs: 34 Kit entries (4 skipped), 11 kitless, and 6 camera entries. - The three changed representatives—bimanual OpenArm, AnymalC Direct Rough, and Digit Rough—passed local simulation smoke tests. - Formatting, lint, changelog checks, and `git diff --check` passed. No production code changed. The initial 46-case version completed CI in **6:43**, versus **24:19** on develop on the same runner type (RTX PRO 4500 Blackwell). Those timings precede the nested-robot and representative-selection changes; the final 47-case job needs a fresh CI measurement. ## Type of change - CI / test infrastructure (no user-facing change) ## 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] My changes generate no new warnings - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * Document Haptikos exoskeleton teleoperation with CloudXR (#8046) # Description Supersedes #6029 by @PKonMagos. This carries Haptikostech's Haptikos exoskeleton documentation onto current `develop` and updates the setup instructions for the Isaac Teleop and CloudXR workflow now used by Isaac Lab. The guide now covers the matching Isaac Teleop release branch, the separately obtained Haptikos C++ API required to build the plugin, CloudXR push-device configuration, and the correct launch order. No Isaac Lab runtime code changes are included. ## Type of change - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Validation - [x] `uv run isaaclab -f` - [x] `uv run --isolated --extra dev -- make -C docs current-docs` (warning-free) - [x] On-demand Docker CI (`run-ci`): workflow passed; GPU jobs skipped for docs-only changes Hardware-specific Haptikos operation was not exercised locally. --------- Signed-off-by: PKontrazis <[email protected]> Co-authored-by: PKontrazis <[email protected]> * [Core] Unify physics stepping loops across environment classes (#6615) ## Description Each environment currently duplicates its physics stepping sequence for manager-owned and environment-owned decimation. This refactor gives `ManagerBasedEnv`, `ManagerBasedRLEnv`, `DirectRLEnv`, and `DirectMARLEnv` one loop each, with the number of physics substeps covered by a call determining the loop count and scene-update duration. Each environment continues to own its stepping sequence. Action application, writes, simulation calls, recorder callbacks, rendering, counters, and scene updates retain their existing order and cadence. Rendering still checks whether a completed call ends on a render-interval boundary. No backend interfaces or dependencies change. The branch includes current `develop` through `04573e6c8`. Added an `isaaclab` changelog exemption for this behavior-preserving refactor. ## Type of change - Internal refactor (no intended behavior or public API change) ## Validation - Existing direct-RL, direct-MARL, and manager-based-RL unit tests pass. - **5 passed:** existing PhysX environment rendering integration tests. - **1 passed:** existing Newton Cartpole determinism integration test. - Numerical comparison against `develop`: Newton manager-based and direct Cartpole, both decimation owners, 256 environments, decimation 4, 380 environment steps per configuration. Final observations, rewards, and termination/truncation flags match exactly; physics counters match at 1,520. The temporary fixture uses explicit ideal-PD actuators to exercise Newton-owned decimation. - Local timing check on an RTX 5090: median step times differ by -2.6% to +2.0% across those configurations (seven 50-step samples after warmup). This is a regression smoke check, not a performance claim. - `uv run isaaclab -f` and `git diff --check` pass. Audited all changed files; production changes are confined to the four environment step methods. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] Documentation assessed: no public API or behavior change requiring documentation - [x] No new warnings observed (existing simulator/deprecation warnings remain) - [ ] I have added regression coverage for the change (covered by existing environment tests) - [x] I have added a changelog fragment for the touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * [Core] Add mesh file sub-terrain (#8048) # Description Add `MeshFileTerrainCfg`, a trimesh sub-terrain that loads its geometry from a mesh file in any format supported by `trimesh` (OBJ, STL, PLY, ...). Because it is a regular sub-terrain, it composes with `TerrainGeneratorCfg` like any other mesh terrain: it gets the generator's tiling, border, curriculum, caching, flat-patch sampling, and the importer's physics and visual materials. The mesh is centered on the sub-terrain in XY with its height preserved, and the sub-terrain origin is placed on the mesh surface at the tile center. ```python terrain = TerrainImporterCfg( prim_path="/World/ground", terrain_type="generator", terrain_generator=TerrainGeneratorCfg( size=(8.0, 8.0), num_rows=1, num_cols=1, sub_terrains={"file": MeshFileTerrainCfg(mesh_path="/path/to/terrain.obj")}, ), ) ``` Fixes #2846 ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run `uv run isaaclab -f` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added a test that checks the mesh placement and sub-terrain origin - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] My name is already in `CONTRIBUTORS.md` ## Validation - `uv run python -m pytest source/isaaclab/test/terrains/test_terrain_generator.py -q` (11 passed) - `uv run isaaclab -f` (passed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * Fix visualizer app taskbar icons (#7714) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> Fixes the Newton GL, Newton RTX, and Kit visualizer windows showing a generic icon in the taskbar/dock instead of their real one. On Linux, most desktop environments resolve taskbar/dock icons by matching a window's `WM_CLASS` against an installed `.desktop` file's `StartupWMClass`, not from the window's own icon hint. Kit and Newton already set the right icon hint on the window itself, but without a matching `.desktop` file installed, the desktop environment falls back to a generic icon. `isaaclab.sh -i` and `isaaclab --editor` now install `.desktop` entries for the Kit, Newton GL, and Newton RTX windows so they resolve correctly. Separately, `ViewerRTX` (`newton_rtx`) never set a window icon at all (unlike `ViewerGL`, used by `newton_gl`), so it's now reusing Newton's own bundled icon for consistency with `newton_gl`. <!-- 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) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 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 `./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 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 <!-- 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: Mustafa Haiderbhai <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [Fix] Restore SO101 Keyboard initialization for the SysID asset (#8024) ## Summary Fix `IsaacContrib-Keyboard-SO101` initialization for the current SysID asset. - Rotate the robot base +90° about Z: the asset's native −Y working direction now faces the keyboard at +X. - Set the task's six initial joint positions to zero. Reset IK only runs 1–4 iterations, so inheriting the shared asset's nonzero pose materially changes the starting fingertip positions. Both overrides are task-local. Shared `SO101_CFG`, SysID actuator parameters, fingertip offset, IK budgets/randomization, rewards, solver settings and PPO settings are unchanged. No launcher-side pose overrides are needed. ## Validation - `uv run isaaclab -f`: passed all hooks. - Retained 128-environment MJWarp reset captures (8,192-state pool, seed 42, +90° rotation held fixed) showed median fingertip-to-key distance improving from approximately **9 cm to 4.9 cm** with the zero seed. These are reset measurements, not a claim of training convergence; no fresh GPU rollout was run on this rebased PR. ## Scope This contains the Isaac Lab asset/reset fixes only. Newton engine fixes and training-specific memory/capacity tuning are not bundled into this task change. Current `develop` does not expose an FPGS preset for this task, and this PR does not add one. ## Type of change - Bug fix ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] Reviewed contribution guidelines. - [x] Formatting/pre-commit checks passed. - [x] Added an `isaaclab_tasks` changelog fragment. - [x] Contributor already listed. --------- Co-authored-by: ooctipus <[email protected]> * [Camera] Refactor and speed up camera-based tasks [2/7] (#8037) # Description Part 2 of the camera performance series. #8036 has merged; this PR is rebased onto `develop` and contains one commit. Camera `rgb` outputs are strided views into the RGBA buffer (channel stride 4). `normalize_image_uint8` required contiguous input, so every RGB observation took a PyTorch fallback of about five full passes: cast, divide, subtract, permute-copy, and the manager clone. At 4096 envs and 128x128 that took 5.6 ms per step, where one fused pass should take about 1 ms. - `normalize_image_uint8` accepts strided input. `wp.from_torch` keeps the strides, and the kernel now launches over the output layout so the float32 writes coalesce. - `output_channel_dim` on `normalize_image_uint8` and `normalize_camera_image` writes channel-first output directly. `mdp.image(permute=True)` and the Cartpole camera observations use it instead of a separate permute copy. - The layout conversion applies to every `normalize_camera_image` branch, including non-colorized segmentation. ## Series 1. #8036: Read camera outputs through `ProxyArray.torch` (bug fix) (base: develop) 2. #8037: Fused normalization for strided camera images (base: develop) 3. #8038: Skip redundant observation copies (base: #8037) 4. #8039: Remove per-step host synchronizations (base: develop) 5. #8040: Newton `render_batch` in one sensor-graph launch (base: develop) 6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings (base: develop) 7. #8042: Kuka Allegro camera tasks on the shared image observation (base: #8038) The series is split from #7440, which remains the combined reference branch. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `test_strided_rgb_view_with_layout_conversion` checks the RGB-of-RGBA view normalized straight into contiguous BCHW against a PyTorch reference, on CPU and CUDA. It replaces the test that rejected non-contiguous input. - `test_image_ops.py`, `test_images.py`, `test_stacked_image_mdp.py` and `test_cartpole_camera_observations.py` pass. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> * [Core] Refactor and cleanup core subpackage for 3.0 [8/N] (#8044) # Description Eighth PR in the series that splits the core cleanup in #7949 into small, reviewable pieces. It cleans up three Warp helpers in `isaaclab.utils.warp`. There is no behavior change. - `ops.py` - Output buffers use `torch.full(...)` without the no-op `.contiguous()`, and `torch.full(..., -1)` instead of `ones(...) * -1`. - `raycast_single_mesh` builds its mesh-id array with `wp.full` instead of a Python list comprehension. - `raycast_dynamic_meshes` builds identity orientations with `wp.full(..., wp.quat_identity())` instead of a torch round-trip (which removes the "couldn't find a better way" note), and builds the cached all-environments mask with `wp.full`. - The module-level `wp.config.quiet = True` / `wp.init()` are removed. Importing `isaaclab.utils.warp.ops` always runs the package `__init__` first, which already does both. - `particle_sampler.py`: the two samplers duplicated the winding-number mesh, lattice launch, and inside-point filtering. They now share `_mark_lattice_points`. - `warp_math.py`: in `convert_camera_frame_orientation_convention_wp`, the same-convention case with indices launches the shared indexed kernel with an identity quaternion instead of its own copy of the launch. Comments that explain intent or mark sections are kept, per the earlier comment review. ## Verification - `convert_camera_frame_orientation_convention_wp`: `develop` and PR outputs are bit-identical for all 9 convention pairs, with and without indices, on CPU and CUDA (random quaternions). - `test/utils/warp` (109), `test/sensors/test_ray_caster_kernels.py`, `test_multi_mesh_ray_caster.py`, `test_ray_caster_sensor.py`, and `test_ray_caster_integration.py` pass. ## Type of change - Code cleanup (non-breaking, no functional change) ## 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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (`.skip`) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` * Stops cubes_stacked from reporting success for a cube still in flight (#7434) # Description `cubes_stacked` decides the stack tasks' success from an instantaneous geometric configuration — each cube within `xy_threshold` of the one below it and one cube-height above it — with no requirement that the cubes be supported or stationary. A cube released above its target satisfies exactly that description for a frame or two on the way down. That matters more than it sounds, because the Mimic data generator accumulates success across the whole episode: ```python generated_success = generated_success or exec_success ``` so a single frame of a cube passing through the right height marks the entire episode a success, and it is written into the generated dataset as a demonstration of the task being completed. ### Evidence Replaying the criterion offline over two generated datasets (the reproduction was validated first by confirming it passes 100% of the demos the generator accepted): | dataset | accepted demos | stack broken at the final frame | |---|---|---| | A | 380 | **28 (7.4%)** | | B | 358 | **19 (5.3%)** | In those demos the top cube ends a median 6.3 cm away in xy and at the *same height* as the cube it should be sitting on — it is on the table, not on the stack. The discriminator is what the mechanism predicts: cube_3's speed at the qualifying frame is a median 0.028–0.032 m/s in the broken demos versus **0.0000 m/s** in the rest. One timeline, taken from the case most favourable to any other explanation — the one whose jaws came closest to fully open while the criterion held: ``` frame stacked cube3-cube2 dz cube3 z jaw error 191 7.91 cm 14.62 cm 18.465 mm <- held above the target 193 5.60 cm 12.33 cm 3.124 mm <- jaws opening, cube falling 195 * 5.01 cm 11.76 cm 0.424 mm <- criterion fires, mid-fall 196 * 4.30 cm 11.04 cm 0.135 mm 199 0.33 cm 4.59 cm 0.012 mm <- cube reaches the table 205 0.00 cm 2.05 cm 0.007 mm <- 6.8 cm from cube_2 ``` The gripper releases 7.5 cm above `cube_2`; the cube free-falls through the height the criterion is looking for and lands on the table. ### The fix Require the cubes to have settled. `max_lin_vel` defaults to `0.01` m/s — comfortably above the noise floor of a cube at rest and well below anything falling — and can be set to `None` to skip the check. The default is not guessed. Replaying 100 generated demos through the recorded `root_velocity` — the same signal the check reads — shows cubes resting on the stack are **not** at zero: the contact solver leaves a median 0.0132 m/s, peaking at 0.0341 m/s over the 91 sound demos, against a median 0.104 m/s for a cube caught mid-fall. | max_lin_vel | keeps sound demos | keeps defective ones | |---|---|---| | 0.010 | 15/91 | 0/9 | | 0.020 | 77/91 | 0/9 | | **0.050** | **91/91** | **2/9** | | 0.100 | 91/91 | 4/9 | It is deliberately not a perfect separator: the distributions overlap at the bottom because a cube near the apex of a bounce is briefly slow, and tightening past 0.034 m/s starts discarding real demonstrations. An angular-velocity term buys one more defect at the cost of four sound demos, so it was left out. Measured end to end on the stock `Isaac-Stack-Cube-Franka-IK-Rel-Mimic-v0`, generating 100 accepted demos each way: | criterion | accepted | ends broken | attempts | success rate | |---|---|---|---|---| | before | 100 | **9 (9.0%)** | 279 | 35.8% | | after | 100 | **2 (2.0%)** | 300 | 33.3% | ### Scope and caveats - All six call sites of `cubes_stacked` are `DoneTerm` success terminations. The Mimic subtask-boundary signals use `object_stacked` (observations side), so annotation boundaries are unaffected. `object_stacked` has the same one-sided geometry and can presumably fire in flight too; it is consumed edge-triggered by annotation and is left out of scope here. - The 0.05 m/s default was measured on the stack task's default backend (PhysX, `stack_env_cfg.py: default = isaacsim_physx`). The Newton solver config offered alongside it, and the SO-101 stack task which shares this termination, were not measured separately; if either shows a higher resting jitter the threshold should be raised for it rather than the check disabled. ### Tests `source/isaaclab_tasks/test/contrib/stack/test_cubes_stacked_at_rest.py` — ten sim-free cases with hand-built scene objects: a resting stack passes; a cube passing through the stacked configuration mid-fall does not (the defect); `max_lin_vel=None` restores the position-only check; every cube in the checked set is subject to the test; the 0.030 / 0.049 / 0.051 m/s edges; the two-cube variant ignores the third scene object; the Franka variants' remapped cube roles are honoured; batched verdicts stay independent; the gripper check still gates. ### A note on the gripper tolerance, which looks like the opposite bug `atol`/`rtol` of `1e-4` against `gripper_open_val` work out to 0.104 mm on a 40 mm jaw travel, and 11% of failed attempts had reached the stacked geometry but missed that tolerance — which reads like a false-negative worth relaxing. It is not. Every one of those 76 episodes is a drop: none has its stack intact at the final frame, and the top cube has moved a median 10.8 cm by then. Relaxing the tolerance to 3 mm would have admitted 54 of them into the dataset. The tight tolerance is masking this defect by accident; it is not causing one, and it is left alone here. ## Type of change - Bug fix (non-breaking change which fixes an issue) This lowers reported success rates for the stack tasks slightly, in both Mimic generation and policy evaluation, because episodes that end with the cube on the table stop counting. `max_lin_vel=None` in the termination term's `params` restores the previous behaviour. ## Checklist - [x] I have read and understood the contribution guidelines - [ ] 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/<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) https://claude.ai/code/session_01JFz91VMgmrjS4XR6f9Q9Z2 ## Release backport - [x] Backport this pull request to the active release branch after it merges into `develop`. --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Antoine Richard <[email protected]> * [CI][Auto Version Bump] Compile changelog fragments (schedule) Bumped packages: - isaaclab: 29.0.0 → 29.1.0 - isaaclab_contrib: 2.0.1 → 2.0.2 - isaaclab_newton: 8.0.0 → 8.1.0 - isaaclab_ov: 3.4.0 → 3.4.1 - isaaclab_physx: 7.2.3 → 7.2.4 - isaaclab_tasks: 21.1.0 → 21.1.1 - isaaclab_visualizers: 1.13.0 → 1.13.1 * [CI] Bump Isaac Sim image to 993bd3503d37 (#7896) # Description This automated draft updates CI to the current Isaac Sim nightly image. | Field | Value | |---|---| | Image | `nvcr.io/0947644777160149/internal/isaac-sim` | | Moving tag | `latest-develop` | | Current pin | `latest-develop@sha256:600fa643bb362dda1771515f16a80f0fefe11001a13e47ffcb015352dbad9f70` | | Candidate pin | `latest-develop@sha256:993bd3503d37f96f7f8f6f71e5091788183d265d8d8b42ff43ffa04b76936436` | 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 this pull request to the active release branch after it merges into `develop` ## 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 `./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 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> Co-authored-by: Kelly Guo <[email protected]> * Fix batched output shape in project_points (#8050) # Description `project_points()` recorded `is_batched = points_batch.dim() == 2`, which is the unbatched case. As a result an unbatched `(P, 3)` input was returned as `(1, P, 3)`, and a single-item `(1, P, 3)` batch lost its batch dimension and came back as `(P, 3)`. Multi-item batches were unaffected, and the projected values were already correct. This checks for a rank-3 input instead (matching `transform_points` in the same module), fixes the squeeze comment, and adds `test_project_points`, which compares against the pinhole model for unbatched, single-item and multi-item inputs. There was no existing test for `project_points`. The only in-repo caller, `scripts/tutorials/04_sensors/run_ray_caster_camera.py`, passes batched points and flattens the result with `view(-1, ...)`, so it is not affected. Fixes #8032 ## 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 `./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 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) - [x] I have added my name to the `CONTRIBUTORS.m…
Summary
This PR removes bottlenecks across the camera-environment pipeline: rendering, image observations, host synchronization in the step, and RSL-RL training. It moves the Kuka Allegro camera tasks onto the shared
mdp.imageterm. It also includes the host-synchronization changes from #7495.Bugs fixed
mdp.imagepassed the sensor'sProxyArrayinto image normalization.ProxyArray.dtypeis a Warp type, so the fused uint8 kernel never ran, and colorized semantic segmentation was only cast to float, reaching policies as[0, 255]. The Cartpole camera observations had the same bug.Environment step
normalize_image_uint8now reads strided inputs, such as the RGB view of an RGBA camera buffer, and launches over the output layout, so writes are coalesced and the channel-first permute is fused into normalization.ObservationTermCfg.clone_outputlets terms that return fresh tensors skip the manager's copy. Double clones in stacked-image terms are removed, andmdp.imagedefaults toclone=False.nonzeroand the command-resamplenonzeroremain.torch.where;object_ee_distanceindexes with a cached device tensor.index_fill_(Remove per-step host synchronizations from the environment hot path #7495).update_periodis 0.object_point_cloud_bno longer draws 262k markers per step by default. With RTX, those markers also appeared in camera images.NewtonWarpRenderer.render_batchrenders several cameras with one sensor-graph launch.Kuka Allegro camera tasks and RSL-RL
mdp.image.SpatialSoftmaxCNNModelnormalizes them in oneaddcmulpass (x/255 − 0.5,tanh(d/2) − 0.5for depth), including in JIT and ONNX exports.vision_camerais removed (breaking; see the changelog for migration).cudnn.benchmark(conv forward+backward is 30% faster at these fixed shapes).use_mixed_precisionandtorch_compile_modeare exposed in the RSL-RL configs.Performance
Setup:
Isaac-Lift-KukaAllegro-Camera, 4096 envs, Newton physics and Newton renderer (the RTX row uses PhysX + Isaac RTX), on an RTX PRO 6000 Blackwell.39893f2fc) merged with the samedevelop.Environment step (
isaaclab benchmark runtime, 300 steps):RSL-RL training (
isaaclab benchmark training, 15 iterations; iterations 3–14 averaged; peak GPU memory fromnvidia-smi):The Newton render megakernel is now the largest remaining cost: about 22 ms per step at RGB 128.
Validation
mdp.image/stacked images, observation/termination/event/reward managers, circular buffer, noise, sensor base, markers, the RSL-RL cfg and entrypoints, lift and Cartpole camera observations, the Newton renderer, and the Newton Kuka rendering golden-image tests.mdp.image;ProxyArray);ovrtxis not installed in this environment).