Skip to content

[Core] Refactor and cleanup core subpackage for 3.0 [10/N] - #8053

Merged
StafaH merged 8 commits into
isaac-sim:developfrom
StafaH:core-cleanup/10-misc-utils
Sep 27, 2026
Merged

StafaH merged 8 commits into
isaac-sim:developfrom
StafaH:core-cleanup/10-misc-utils

Conversation

@StafaH

@StafaH StafaH commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Tenth PR in the series that splits the core cleanup in #7949 into small, reviewable pieces. It simplifies small helpers in isaaclab.utils. There is no behavior change.

  • dict.py: class_to_dict drops a hasattr(obj, "__class__") check that cannot fail (every object has __class__). dict_to_md5_hash is condensed with the same output. convert_dict_to_backend uses the loop variable instead of re-indexing.
  • timer.py: the unused _stop_time attribute is removed and the display branch is flattened. get_timer_info returns a copy of the stored entry, which holds exactly mean / std / n / last. get_timer_info_last indexes directly, so an unknown name raises KeyError instead of TypeError: 'NoneType' object is not subscriptable.
  • version.py: the stdlib imports move to module level (has_kit still never imports omni.kit.app), and compare_versions returns (a > b) - (a < b).
  • mesh.py: the cylinder and capsule converters shared the axis rotation, now _align_length_axis.
  • backend_utils.py, images.py, io/yaml.py, buffers/circular_buffer.py: small simplifications (e.g. makedirs(exist_ok=True) without a pre-check, == instead of one-element set membership).

Docstrings and comments that explain constraints (e.g. why has_kit is not cached, what the axis rotations do) are kept.

Verification

  • create_trimesh_from_geom_shape produces identical vertices on develop and this PR for cylinders, capsules, and cones along X, Y, and Z.
  • test/utils/test_dict.py, test_timer.py, test_version.py, test_backend_utils.py, test_circular_buffer.py, test_images.py, test_yaml_io.py, test_device.py, and test_device_selection.py pass (146 tests).

Type of change

  • Code cleanup (non-breaking, no functional change)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks 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 (.skip)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Release backport

  • Backport this pull request to the active release branch after it merges into develop

@StafaH
StafaH requested a review from a team September 26, 2026 02:07
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Sep 26, 2026
@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Refactors utility helpers with minor logic simplifications.

The PR appears safe to merge; no actionable regression was identified.

Summary

This PR simplifies core utility helpers without changing their supported behavior.

  • Consolidates cylinder and capsule axis alignment.
  • Simplifies dictionary hashing, timer bookkeeping, version checks, and smaller backend, image, YAML, and buffer paths.

Reviews (1) · Last reviewed commit: "Simplify small utility helpers"

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Reviewed the utility cleanup across dictionary conversion, timers, version checks, backend registration, mesh conversion, image normalization, YAML output, and circular-buffer reset behavior. The changed paths preserve their current observable results, with only a minor edge-case exception difference in YAML directory handling.

  • Design and architecture: The private _align_length_axis extraction centralizes identical cylinder and capsule rotations without changing converter registration or mesh orientation. Backend ownership, dynamic factory resolution, and other package boundaries remain unchanged.
  • API: Public signatures and normal-path behavior remain stable: version comparison still returns -1/0/1, registry keys remain a list, timer lookups retain their TimerError checks, and timer statistics return a copy containing the current mean/std/n/last fields. The removed class_to_dict check was unreachable for Python objects, and the removed timer field was private and unused.
  • Implementation: The MD5 serialization pipeline, recursive backend conversion, timer display conditions, Kit import avoidance, image normalization branches, and circular-buffer indexing are equivalent after simplification. The mesh helper applies the same transforms as the duplicated code. One non-blocking edge case is that dump_yaml may now raise from os.makedirs rather than the subsequent file open when the parent path is an existing file.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 27, 2026
@StafaH
StafaH requested a review from hujc7 as a code owner September 27, 2026 01:58
@StafaH StafaH added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 27, 2026
@StafaH StafaH removed the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Sep 27, 2026
@StafaH

StafaH commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 27, 2026
@StafaH

StafaH commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 27, 2026
@StafaH
StafaH merged commit 93b6e74 into isaac-sim:develop Sep 27, 2026
53 checks passed
StafaH added a commit that referenced this pull request Sep 27, 2026
…8078)

## Description

Backport the three recent merged `develop` PRs still missing from
`release/3.0.0`:

- #8053 — core utility cleanup (part 10)
- #8067 — route shared MDP events to the active backend
- #8054 — dataset and LEAPP cleanup (part 11)

Each source PR checked its release-backport box without the `<!--
backport-active-release -->` marker required by the workflow, so the
automatic job skipped it. These commits are cherry-picked in `develop`
order with their source SHAs recorded. Each backport patch matches its
source patch exactly and applied without conflicts.

## Type of change

- Release backport
- Documentation update

## Validation

- `uv run isaaclab -f` passed.
- Core utility and event tests: 57 passed.
- Backend event tests: PhysX 4, Newton 7, OVPhysX 3 passed.
- `git diff --check` passed.
- Full documentation build passed with `uv run --isolated --frozen
--extra dev -- make -C docs current-docs`.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting, lint, and changelog checks.
- [x] Included source documentation, tests, and changelog fragments.
- [x] Original contributor is already listed in `CONTRIBUTORS.md`.

This PR targets the release branch; no additional backport is needed.
@StafaH
StafaH deleted the core-cleanup/10-misc-utils branch October 10, 2026 19:44
aj-persona added a commit to PAI-IHMC/IsaacLab that referenced this pull request Nov 19, 2026
* Capture Newton CUDA graphs without advancing simulation (#8058)

# Description

Alternative to #8049. This fixes the capture lifecycle that consumes
simulation state, rather than snapshotting selected arrays around a
hidden warmup step.

Fixes #5961.

## Changes

- Defer physics graph capture until the first step, after reset,
decimation setup, forward kinematics, and solver initialization. Record
without eager warmup or graph replay; execute the requested step exactly
once.
- Replace the manual libcudart/external-capture implementation with
Warp's public `ScopedCapture`. Kit/RTX retains relaxed capture on a
nonblocking stream; kitless Newton uses standard capture. The same
helper records sensor graphs without eager sensor updates.
- Initialize Kamino's persistent output-state buffers explicitly through
its public reset API, replacing its hidden initialization step.
- Keep native actuator state addresses stable across graph replays by
copying the final output back for odd decimation counts. This preserves
PID and delay history through capture and recapture.
- Keep fixed MPM grids with unbounded active-cell partitions eager:
Newton reads their partition size back to the CPU every step. A positive
`max_active_cell_count` enables capture for fixed grids. Bounded
sparse-grid eligibility remains unchanged.
- Surface unexpected physics capture failures. Known unsupported
configurations retain the explicit eager path.

No dependencies added. Net change: 182 lines removed. Public
configuration is unchanged; the existing capture option now documents
the deferred lifecycle.

## Correctness validation

Three focused behavioral regression cases are retained: first-step and
recapture preservation for MJWarp and Kamino, plus stateful actuator
trajectories across decimation 1, 2, and 3. All three fail on develop
and #8049, and pass here. The force test also checks that a graph-safe
GPU callback executes once per requested step.

| Validation | Result |
| --- | --- |
| Newton manager suite | 114 passed |
| Coupler suite | 52 passed |
| Newton actuator adapter suite | 11 passed |
| Newton raycast sensor suite | 7 passed |
| New regressions with a real Kit application | 3 passed |
| Temporary expanded solver/capture-mode matrix | 7 passed |
| Temporary MPM reset/recapture comparison against eager execution | 3
passed |
| Newton RTX static cloth and cable golden-image checks | Passed,
tracked references unchanged |
| Formatting/pre-commit and changelog validation | Passed |

The temporary matrix additionally covers MJWarp internal/external
contacts, Kamino PADMM/DVI, XPBD, VBD, and Featherstone. MPM coverage
compares bounded fixed and sparse graphs with eager trajectories after
authored particle resets, and checks the unbounded fixed-grid fallback.
Broad comparison tests and benchmark tooling were kept outside the
repository. Existing obsolete capture-loader tests were removed.

Existing dependency/runtime warnings remain. Motion-vector rendering
cases remain skipped. Multi-GPU runtime behavior was not benchmarked;
the existing simulation-device capture test passes.

## Performance

Matched-base comparison: develop `3bffacb675`, #8049's two commits
cherry-picked onto that same base (`6788dc8f7`), and this PR
(`d1ab2a422`). This avoids attributing unrelated environment/camera
changes since #8049's original base to capture. Each configuration ran
three times, sequentially on one GPU, with seed 42, 50 warmup steps, and
1,000 measured steps. Throughput is environment transitions divided by
measured wall time; values below are mean ± sample standard deviation
across runs.

Hardware/software: RTX PRO 6000 Blackwell, Threadripper PRO 7965WX, Warp
1.17.0, Newton 1.6.0, MJWarp 3.12.0, Torch 2.12.0+cu130, Isaac Sim
6.1.0-rc.26.

| Scenario | Develop FPS | #8049 FPS | This PR FPS | Change vs #8049 |
| --- | ---: | ---: | ---: | ---: |
| Cartpole camera, Newton renderer (256 envs) | 131,724 ± 543 | 131,123
± 1,189 | 130,905 ± 1,004 | -0.2% |
| Cartpole camera, RTX renderer (256 envs) | 19,288 ± 26 | 19,368 ± 175
| 19,197 ± 71 | -0.9% |
| ANYmal, kitless (4,096 envs) | 226,507 ± 179 | 223,382 ± 5,796 |
224,341 ± 3,846 | +0.4% |
| ANYmal, Kit (4,096 envs) | 204,394 ± 733 | 196,771 ± 10,366 | 193,478
± 13,084 | -1.7% |

These measurements support comparable steady-state performance on the
tested workloads; small differences should not be interpreted as a
general speedup. Kit locomotion has substantial variation, and three
repeats do not rule out a small performance regression.

Capture moves from environment creation to the first physics step for
kitless runs. Mean startup timings below report **environment creation +
first step = combined seconds**, excluding app launch/imports, to make
that shift visible:

| Scenario | Develop | #8049 | This PR |
| --- | ---: | ---: | ---: |
| Cartpole camera, Newton renderer (256 envs) | 5.487 + 0.090 = 5.577 |
5.312 + 0.092 = 5.404 | 4.847 + 0.792 = 5.639 |
| Cartpole camera, RTX renderer (256 envs) | 5.309 + 0.886 = 6.195 |
5.295 + 0.892 = 6.187 | 5.254 + 0.895 = 6.148 |
| ANYmal, kitless (4,096 envs) | 9.273 + 0.200 = 9.473 | 9.323 + 0.199 =
9.522 | 8.586 + 0.945 = 9.531 |
| ANYmal, Kit (4,096 envs) | 22.663 + 1.210 = 23.873 | 22.672 + 1.228 =
23.900 | 23.413 + 1.239 = 24.651 |

Reproduction uses the existing `isaaclab benchmark runtime` entrypoint
with `--seed 42 --num_steps 1000 --warmup_steps 50` and these scenario
arguments (set `HEADLESS=1`):

```text
--task Isaac-Cartpole-Camera --num_envs 256 --viz none presets=newton_mjwarp,newton_renderer
--task Isaac-Cartpole-Camera --num_envs 256 --viz none presets=newton_mjwarp,isaacsim_rtx
--task Isaac-Velocity-Flat-AnymalD --num_envs 4096 --viz none presets=newton_mjwarp
--task Isaac-Velocity-Flat-AnymalD --num_envs 4096 --viz kit presets=newton_mjwarp
```

The temporary runner only adds a wall-clock timer around the capture
helper. It delegates launch, stepping, warmup, and measurement to the
existing runtime benchmark.


## Type of change

- Bug fix
- Documentation update

## 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] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings (unsupported unbounded fixed
MPM now emits the existing eager-fallback warning)
- [x] I have added tests that prove my fix is effective
- [x] I have added a changelog fragment for every touched package
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit 382cbc6c9bc7cb2fb63aa50a6429465e5ea04685)

* Fix interpolate_poses return value when num_steps is 0 (#8065)

# Description

`interpolate_poses()` documents its return value as `(poses of shape (N
+ 2, 4, 4), N)` and is annotated `tuple[torch.Tensor, int]`, and
`num_steps=0` is documented as "no interpolation". But the `num_steps ==
0` early return still produced three values: the stacked positions `(2,
3)`, the stacked rotations `(2, 3, 3)`, and `0`. So the documented usage
fails:

```python
poses, n = math_utils.interpolate_poses(pose_1, pose_2, num_steps=0)
# ValueError: too many values to unpack (expected 2)
```

This returns `make_pose(...)` of the start and end poses instead, so
`num_steps=0` gives `((2, 4, 4), 0)`, the same shape convention as `N >
0`.

The only in-repo caller, `isaaclab_mimic/datagen/waypoint.py`, already
unpacks two values (and only calls it with a positive step count today),
so it is not affected.

## 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

- Added `test_interpolate_poses_without_interpolation`: `num_steps=0`
returns the two input poses stacked as `(2, 4, 4)` and `0`. It fails on
`develop` with the `ValueError` above and passes with the fix;
`test_math.py` passes in full (CPU).
- Ruff v0.14.10 (the pre-commit pin) `check` and `format --check` pass
on the changed files.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

Signed-off-by: Patrick-SCH03 <wwoo5241@gmail.com>
Co-authored-by: Mustafa H <34825877+StafaH@users.noreply.github.com>

(cherry picked from commit 2c045f6292647b65e4762f858aa209c37f53ac44)

* [Core] Refactor and cleanup core subpackage for 3.0 [9/N] (#8052)

# Description

Ninth PR in the series that splits the core cleanup in #7949 into small,
reviewable pieces. It refactors `isaaclab.utils.noise`, `configclass`,
and `math`, and fixes Gaussian sample shapes and zero-rotation pose
gradients identified by comparison with mjlab.

- `noise/noise_model.py`: `constant_noise`, `uniform_noise`, and
`gaussian_noise` each repeated the "move tensor parameters to the data
device" block and the `add` / `scale` / `abs` dispatch. These are now
`_move_params_to_device` and `_apply_noise`. `"abs"` always returns a
new tensor, so `constant_noise` never hands out the config's `bias`
tensor (the same as `develop`).
- `configclass.py`: `_wrap_resolvable_strings` handles lists and tuples
in one branch. It still rebuilds plain `list` / `tuple` objects, so
namedtuples behave as before. The `cls.__annotations__ =
cls.__dict__.get(...)` line that was immediately overwritten is removed.
- `math.py`: `convert_quat` shares one shift for numpy and torch;
`apply_delta_pose` lets `torch.where` broadcast instead of repeating the
mask; `create_rotation_matrix_from_view` builds the up vector once.

- `sample_gaussian` now expands scalar/tensor parameters to the
requested sample shape, producing independent draws per element. It
supports mixed scalar/tensor parameters and retains rejection of
negative standard deviations. Sampling runs on the requested device, so
seeded CUDA sequences previously drawn on CPU may differ.
- `apply_delta_pose` now clamps the angle denominator before division,
keeping gradients finite at zero rotation.

## Verification
- Seeded comparison of `develop` and the PR for all three noise
functions × `add` / `scale` / `abs` × float and tensor parameters.
Results match within 1e-6: for additive uniform/Gaussian noise, the sum
is now `data + (noise)` instead of `(data + a) + b`, which changes
rounding only (same random draw). Neither version returns a config
tensor.
- `_wrap_resolvable_strings` on a list holding a namedtuple and a tuple
with resolvable strings gives the same types and values as `develop`.
- `test/utils/test_noise.py`, `test_configclass.py`, and `test_math.py`
pass.

- Added focused regressions in `test_math.py`: four cases failed on the
original code and all five consolidated cases passed with the fixes. The
full math suite passed again after incorporating the latest develop
merge. A shared-draw mutation also failed all three statistical cases,
confirming that the retained checks detect loss of independent sampling.
- Formatting/lint (`uv run --no-sync isaaclab -f`) and changelog
validation passed using the existing uv environment.

## Type of change

- Code cleanup and bug fixes

## 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 (patch `.rst`
fragment)
- [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`

(cherry picked from commit d728f03352babd45bb2ce49a2ab30435a1c3dbfe)

* Unify lazy state and cache ownership across assets, sensors, and rendering (#8066)

## Summary

Use one passive buffer container for cached values and keep pending work
with the component that performs it. Cached values carry a timestamp;
pending work uses a dirty flag.

- Remove `TimestampedBufferWarp`. Callers use `TimestampedBuffer(data)`
with explicit Torch or Warp allocation. Fully overwritten read caches
use `empty`; buffers whose initial values matter retain zeros. Lazy
allocation stays lazy.
- Let full poses and velocities own storage and refresh. Newton
component properties borrow strided views, removing 38 backing-array
attributes and eight extraction kernels. Non-contiguous parents no
longer cause component copies. Initial binding and reset rebinding share
one path.
- Remove seven unused Newton cache allocations. Rigid body-velocity
aliases refresh their root-velocity cache on every read, fixing stale
values after same-step writes.
- Move FK guards into Newton's `forward()` and PhysX/OVPhysX's
`update_kinematics()`. Preserve selective reset masks and CUDA graph
replay.
- Keep SDP caches data-only, with direct timestamp guards and one
geometry conversion loop. Matching native arrays pass through;
conversions write to the final destination. Releasing a caller-owned
destination releases its cached binding too.
- Replace sensor host counters with a dirty flag while preserving
sampling periods, partial resets and contact-loss detection. Consolidate
Newton BVH refresh and OVRTX upload handling.

Allocation remains explicit:

```python
buffer = TimestampedBuffer(wp.empty(num_instances, dtype=wp.vec3f, device=device))
```

**Breaking:** Replace `TimestampedBufferWarp(...)` with
`TimestampedBuffer(data)` using caller-allocated storage. Rename custom
producers'/consumers' `transforms_version` references to
`transforms_timestamp`. Migration notes are included; no compatibility
aliases remain.

Relative to develop `24a2ebfd7`: **1156 fewer production Python lines;
1045 fewer lines overall** (+1364 / -2409). Tests grow by 22 lines
through extensions to existing cases. No new implementation or test
files. The merged #8029 lazy task-space allocations are preserved.

## Validation

- 604 kitless and 956 Kit-backed asset-interface/ordering checks passed,
plus 25 native Newton articulation and rigid-object checks. These cover
same-step writes, reordered bodies, pointer rebinding, heterogeneous
scenes and graph capture.
- The extended strided-layout test fails before the component-copy
removal on CPU and GPU, then passes with matching values, pointers and
strides. Existing tests also cover the stale-alias and
released-destination regressions.
- NaN-filled allocation checks verified complete writes, including MPM
and cloth/volume-deformable initialization and partial writes.
- Focused SDP, Newton visualization-state, OVRTX geometry and Kit/Fabric
checks passed, covering passthrough, conversion counts, cross-device
interpolation and geometry updates after step/reset.
- `uv run isaaclab -f` and changelog validation passed. Documentation
builds in CI.

## Newton benchmarks

PR `001515cbc` versus develop `24a2ebfd7`. One warm sample per
revision/task, 4096 environments, Newton MJWarp, RTX 5090 (GPU 1), seed
42. Kuka Camera uses the Newton renderer; no interactive visualizer or
video recording. Both revisions use the same dependencies and separately
primed caches.

| Task | Warm startup PR / develop (s) | Step PR / develop (ms) |
Environment FPS PR / develop |
| --- | ---: | ---: | ---: |
| Cartpole | 6.64 / 6.62 | 1.872 / 1.840 | 2,188,252 / 2,226,393 |
| Kuka Allegro | 21.51 / 21.45 | 19.283 / 19.610 | 212,416 / 208,877 |
| Kuka Allegro Camera | 27.56 / 25.95 | 29.979 / 29.800 | 136,631 /
137,450 |
| Rough Anymal-D | 12.82 / 12.83 | 25.733 / 25.955 | 159,174 / 157,809 |

Startup includes imports, configuration, app launch and environment
construction, excluding explicit reset. Runtime measures 300
random-action steps after 50 excluded warmup steps, with CUDA
synchronization at measurement-window boundaries. FPS counts aggregate
environment steps, not rendered frames. Final observations and rewards
were finite in every run.

Throughput differences are within ±1.8% in these single samples; no
broad speedup is claimed. Camera startup was 1.61 s slower, including
1.12 s in imports and 0.41 s in environment construction; this needs a
repeat before attributing it to the PR.

A separate Kuka profile confirms **12 pose-component extraction launches
removed per environment step**, replaced by strided views: 600
extraction launches over 50 steps on develop, zero in this PR. This is
avoided work, not a claim of equivalent end-to-end speedup. PhysX
comparisons will be reported separately.

## Release backport

- [x] <!-- backport-active-release --> Backport to the active release
branch after merging into `develop`.

## Checklist

- [x] Read contribution guidelines; contributor already listed.
- [x] Ran formatting and focused CPU/CUDA/Kit tests.
- [x] Updated documentation and package changelog fragments.
- [x] Extended existing tests without adding duplicate suites.

(cherry picked from commit 5544380ca531b3ae9ef8001f8835eb366dc07929)

* Allocate optional asset data only on first read (#8071)

## Summary

Defer unused data buffers without changing state refresh or
finite-difference history.

- Newton articulation and rigid-object data allocate derived poses,
velocities, projected gravity, and heading on first read.
- PhysX and OVPhysX allocate task-space Jacobian, mass-matrix, and
gravity-force buffers only when requested. PhysX continues borrowing
native views when ordering matches; OVPhysX allocates reorder scratch
only when needed.
- Wrench-composer construction no longer invokes pose getters through
`hasattr()` or stores getter lambdas. It reads poses when composing a
wrench.
- Each task-space getter owns its read and conversion directly, without
refresh dispatch helpers or duplicate joint-map state. Jacobian row maps
allocate only for requested reordered Jacobians.
- Changed caches store their `ProxyArray` directly, removing 18 parallel
`_ta` attributes. Warp kernel arguments use the proxies without explicit
`.warp` access.

This follows #8066 and uses the existing `TimestampedBuffer` contract.
There are no new classes, helpers, public APIs, or cache frameworks.

The wider audit also checked sensor/SDP caches and Newton task-space
computation. This PR leaves acceleration histories eager and preserves
Newton's uncached task-space computation: direct native-state writes and
CUDA graph replay do not provide a Python timestamp that would safely
invalidate those results.

## Benchmark

Matched against develop `5544380ca`, on GPU 1 (RTX 5090), 4096
environments, seed 42, headless without interactive visualizers. Shared
environment: Newton 1.6.0, Warp 1.17.0, Torch 2.12.0+cu130, MuJoCo Warp
3.12.0.

Startup includes Python imports, config resolution, application launch,
and environment creation with warm caches. Runtime measures 300 complete
environment steps after 50 warmup steps, synchronized at the measurement
boundaries. FPS means aggregate environment transitions/second. Memory
is live Warp CUDA-pool allocation after stepping, not total process or
reserved GPU memory. Final observations and rewards were checked for
finite values.

| Workload | Physics → renderer | Startup PR / develop (s) | FPS PR /
develop | Live Warp saved (MiB) |
|---|---|---:|---:|---:|
| Cartpole | Newton → none | 5.71 / 5.82 | 2,196,123 / 2,218,031 | 1.20
|
| Kuka Allegro | Newton → none | 20.47 / 20.39 | 212,896 / 214,927 |
10.39 |
| Kuka Allegro Camera | Newton → Newton | 25.00 / 25.17 | 142,424 /
143,641 | 10.39 |
| Rough Anymal-D | Newton → none | 12.42 / 12.32 | 159,943 / 161,056 |
3.66 |
| Kuka Allegro | PhysX → none | 70.91 / 70.74 | 53,051 / 53,205 | 133.69
|
| Kuka Allegro | OVPhysX → none | 81.56 / 82.06 | 37,136 / 37,199 |
204.84 |

One matched warm pair per row, measured at `2d4015f26` except Anymal,
remeasured at `2de1f7a1d`. These measurements demonstrate reduced live
allocation, not a startup or FPS speedup.

## Validation

- 922 interface, ordering, wrench, and ProxyArray tests passed across
CPU and GPU (34 existing skips).
- 11 Newton native-state, same-step write, rebind, and task-space
capture checks passed.
- 5 PhysX and 4 OVPhysX native dynamics checks passed, including
ordering and manual writes.
- Extended existing interface/ordering tests; no new test files. The new
lazy-allocation assertions fail on unmodified develop.
- Preserved same-step writes, full reset/rebinding, fixed/floating
bases, and ordered dynamics. The OVPhysX mock now matches its native
flattened Jacobian layout.
- Formatting and package changelog checks passed.

## Type of change

- Performance improvement, no public API changes.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran `uv run isaaclab -f`.
- [x] Extended existing regression coverage.
- [x] Added changelog fragments for all four affected packages.
- [x] <!-- backport-active-release --> Backport to the active release
branch.

(cherry picked from commit e3521042a2dfeccb15e6056ba3371c0dd612eeef)

* [Backport release/3.0.0] Fix SO-101 teleop success test fixture (#8069)

# Description

Backports #8059 to `release/3.0.0`.

The SO-101 test fixture change from #8059 is already present on the
release branch through #8057; the test file is byte-for-byte identical
to the source PR result. By the time #8059 merged, its squash commit
contained only the remaining `so101-teleop-success-fixture.skip`
changelog fragment. This PR cherry-picks that merged commit exactly.

The automated backport run failed during source validation because the
PR API reported both the fixture and fragment, while the final squash
commit changed only the fragment after the fixture had landed
independently.

## Type of change

- Bug fix backport metadata

## Validation

- Exact backport candidate validation passed.
- Changelog fragment validation passed against `release/3.0.0`.
- `git diff --check` passed.
- Confirmed the release fixture and PR #8059 fixture have the same Git
blob.
- The normal focused test and `uv run isaaclab -f` could not start
locally because the release lockfile does not support macOS ARM64; the
branch changes no executable code.

Co-authored-by: Mustafa H <34825877+StafaH@users.noreply.github.com>

* [Backport release/3.0.0] Bring over the remaining cloner change (#8045) (#8073)

## Description

Backport #8045 to `release/3.0.0`, including its cloner implementation,
tests, documentation, and package changelog fragments. The release
branch otherwise contains the merged `develop` PRs from the recent
catch-up window. #8059 is already covered by merged backport #8069 and
is not included here.

The source cherry-pick applies cleanly except for
`docs/source/how-to/cloning.rst`. The resolution keeps the release
branch's valid `replicate_physics=False` guidance alongside the new
cloner API guide. This PR provides a release-based alternative to the
bot's draft #8072, with the later #8071 and #8069 release commits
included in its base.

Direct `ClonePlan` callers and custom clone contexts must follow the
migration guidance included with #8045. Normal `InteractiveScene` and
`clone_plan_from_env_0` signatures remain unchanged.

## Validation

- 44 core cloner tests passed.
- 11 Newton cloner tests and 4 subtests passed.
- `uv run isaaclab -f` passed with the changelog base set to
`release/3.0.0`.
- `git diff --check` passed.
- Full documentation build passed with the `dev` extra (Sphinx 8.2.3,
warnings treated as errors).

## Type of change

- Breaking change to direct cloner APIs, with migration documentation.
- Release backport.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Included documentation, tests, and changelog fragments from the
source PR.
- [x] Original contributor already listed.

This PR targets the release branch; no additional backport is needed.

Co-authored-by: ooctipus <zhengyuz@nvidia.com>

* [Tasks] Sample keyboard reset-buffer batches across all environments (#8047)

## Description

Keyboard reset-buffer construction used the first `n` environments for
partial batches. With contiguous clone groups, this can exclude later
keyboard variants from the saved reset states.

Sample `n` distinct environments from the full scene instead, and use
the same indices for commands, snapshots, and reach measurements. Buffer
capacity and full-batch selection are unchanged.

The cloning optimizations are already on `develop` through #8045 and are
no longer part of this PR. Only the keyboard sampling fix and its
changelog remain: **2 files, +13 / -7 lines**.

## Validation

- Local CPU checks of the command's buffer-building method, with IK and
snapshot capture mocked: full, partial, and full-plus-tail batches
passed. Without the fix, both partial-batch cases failed; the full-batch
case passed.
- `uv run isaaclab -f` passed, including changelog validation.
- No simulator or training benchmark was run for this sampling-only
change.

## Type of change

- Bug fix (non-breaking)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

(cherry picked from commit f58afd0c74232fe457815d272c44d52d8894fa09)

* [Camera] Refactor and speed up camera-based tasks [3/7] (#8038)

# Description

Part 3 of the camera performance series. Observation copying is handled
inside the manager's processing pipeline, without task-level copy
settings or producer annotations.

Ordinary term and custom callback outputs are treated conservatively.
Clipping and scaling reuse manager-owned storage when available, and
borrowed results are copied before another term can overwrite them.
Single-term groups return their snapshot directly instead of copying it
again through `torch.cat`. Dictionary and history outputs remain
independent across subsequent calls and resets.

Observation callables can declare a keyword-only `out=None` parameter.
The manager detects this once during initialization, probes the ordinary
call for shape/dtype/device, and supplies a fresh destination on each
computation. The callable must fill and return that exact tensor without
retaining or replacing its storage. Arbitrary `**kwargs` does not opt
in, and `out` is reserved for the manager.

RGB uses a single `__call__` implementation with this optional argument
and the fused normalizer's existing `out` path, including stacked uint8
frames. Other RGB inputs use a safe copy fallback. Removed the extra
observation-term base and destination method, and renamed the shared
camera base to `CameraImageBase`. Built-in task configurations do not
change.

Also:

- Used the contiguous history-buffer layout to avoid reshape
allocations.
- Created `image_features` normalization statistics once per model.
- Removed the RL-Games action clone before out-of-place clipping.
- Kept joint-action offset and clipping in place while preserving the
multiplication result required for LEAPP export tracing.

## Validation

- Observation manager: 31 tests passed, including source protection,
shared scratch buffers, stateful modifiers, and retained
history/dictionary snapshots.
- Camera image terms: 24 tests passed, including destination writes,
frame ordering, layouts, raw/float fallbacks, and retained snapshots.
- ProxyArray migration scanner: 2 tests passed.
- The full LEAPP export suite previously passed 17 tests with 1
unavailable-checkpoint skip after the tracing fix.
- Profiling confirmed no clone or concatenation copy for a default RGB
observation; retained outputs survived camera updates and reset.
- Three new destination-contract validation cases failed against the
previous manager and passed with this implementation. Stateful modifier
snapshot coverage also remains passing.
- Formatting, changelog checks, and documentation build passed.

## RGB performance

Actual `image_rgb` plus `ObservationManager`, RGB128 uint8 input,
channel-first output, RTX PRO 6000 Blackwell. Median of three
interleaved fresh processes per version; each uses 50 warmups and five
synchronized blocks of 100 computations. No simulation, rendering, or
PPO in these timings.

| Images | Previous class-based destination | Functional destination |
|---|---:|---:|
| 256 | 0.2138 ms | 0.2146 ms |
| 4,096 | 1.4483 ms | 1.4589 ms |

The functional version matches the previous destination implementation
within run-to-run variation. It retains the fast path recovered from the
conservative-copy version (previously 2.577 ms at 4,096 images). These
are observation-processing timings, not training-throughput changes.

## Series

1. #8036: Read camera outputs through `ProxyArray.torch`
2. #8037: Fused normalization for strided camera images
3. #8038: Automatic observation-copy handling (this PR)
4. #8039: Remove per-step host synchronizations
5. #8040: Newton `render_batch` in one sensor-graph launch
6. #8041: RSL-RL cuDNN benchmark, mixed precision and compile settings
7. #8042: Kuka Allegro camera tasks on the shared image observation

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

(cherry picked from commit d688eabd7434897f7757f507eba73adca6a6b2cb)

* [CI][Auto Version Bump] Compile changelog fragments (schedule)

Bumped packages:
- isaaclab: 22.1.0 → 23.0.0
- isaaclab_contrib: 2.0.2 → 2.0.3
- isaaclab_mimic: 2.0.8 → 2.0.9
- isaaclab_newton: 8.1.0 → 8.1.1
- isaaclab_ov: 3.2.1 → 4.0.0
- isaaclab_physx: 7.1.3 → 7.1.4
- isaaclab_rl: 1.2.0 → 1.2.1
- isaaclab_tasks: 19.1.2 → 19.2.0

* [Backport release/3.0.0] Include missing PRs #8053, #8067, and #8054 (#8078)

## Description

Backport the three recent merged `develop` PRs still missing from
`release/3.0.0`:

- #8053 — core utility cleanup (part 10)
- #8067 — route shared MDP events to the active backend
- #8054 — dataset and LEAPP cleanup (part 11)

Each source PR checked its release-backport box without the `<!--
backport-active-release -->` marker required by the workflow, so the
automatic job skipped it. These commits are cherry-picked in `develop`
order with their source SHAs recorded. Each backport patch matches its
source patch exactly and applied without conflicts.

## Type of change

- Release backport
- Documentation update

## Validation

- `uv run isaaclab -f` passed.
- Core utility and event tests: 57 passed.
- Backend event tests: PhysX 4, Newton 7, OVPhysX 3 passed.
- `git diff --check` passed.
- Full documentation build passed with `uv run --isolated --frozen
--extra dev -- make -C docs current-docs`.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting, lint, and changelog checks.
- [x] Included source documentation, tests, and changelog fragments.
- [x] Original contributor is already listed in `CONTRIBUTORS.md`.

This PR targets the release branch; no additional backport is needed.

* [Core] Add time-ordered flattened observation histories (#8079)

## Summary

Fixes #1957. Add `ObservationGroupCfg.history_order="time"` for
flattened, concatenated group histories. It joins terms within each time
step before flattening, so the output reshapes to `(num_envs,
history_length, combined_term_dim)`.

The existing `"term"` order remains the default to preserve inputs for
trained policies. The unflattened shape issue was already resolved by
#2393.

## Validation

- Regression test: default term order and opt-in time order with two
history frames and unequal term widths. It failed before the change and
now passes.
- `uv run --frozen --extra test python -m pytest
source/isaaclab/test/managers/test_observation_manager.py -q` — 33
passed.
- `ISAACLAB_CHANGELOG_BASE_REF=issue1957-base uv run --frozen isaaclab
-f` — passed (local base ref points to current upstream `develop`).
- `uv run --frozen --isolated --extra dev -- make -C docs current-docs`
— passed with warnings treated as errors.

## Type of change

- [x] Bug fix
- [x] New feature (non-breaking)
- [x] Documentation update

## 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] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added a test for the new observable behavior
- [x] I have added a changelog fragment under
`source/isaaclab/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit 886e3a5f1c9e316914342f99628e3606aa0c7a0d)

* [Tests] Bound Mimic dataset tests and skip DR Legs smoke case (#8077)

## Description

Bound Mimic dataset generation to 10 failed attempts and 25 minutes per
subprocess. Expose `--max_num_failures` on `generate_dataset.py` and
document it.

Keep the simulator-driven Mimic dataset tests available for manual runs,
while excluding them from routine CI as Mimic approaches deprecation.
The regular `isaaclab_mimic` job now runs the two lightweight contract
test files. Remove SkillGen's long dataset run from the separate cuRobo
job. Remove duplicate parent Kit launches from the retained integration
tests, and check that Franka state generation writes a demonstration
when run manually.

Skip the DR Legs contrib smoke-test family while the known Kamino
instability is investigated (#7625).

## Validation

- Local CI-style Mimic run: 2 files, 9 tests passed, 8.95 seconds wall
time
- Focused Franka state integration test: passed with HDF5 demonstration
assertion
- DR Legs contrib smoke case: skipped
- `uv run isaaclab -f`: passed
- Docs build: passed without warnings

## Type of change

- Bug fix
- Documentation update

## 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
- [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 each touched source
package
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit 361ed82abd2ee00caec3012a1d13209bb96bbe04)

* [5C] Move Newton deformable ownership out of contrib (#8021)

## Summary

Move Newton deformable assets into `isaaclab_newton`, alongside
articulations and rigid objects:

1. Import declared geometry and materials into source builders.
2. Compose and replicate those builders through the common native
cloning path.
3. Initialize assets by selecting particle ranges from the completed
backend; publish visual geometry through SDP.

Render-only deformables follow the same flow: their meshes are built
once per prototype, not rebuilt after cloning for every destination.

- Remove the contrib geometry registry, per-world deformable
construction hooks, and unused runtime interpolation wrappers.
- Record MPM particle ranges and cable shape indices during native
copying.
- Bind PhysX/OVPhysX bodies through native views instead of
completed-stage discovery. Fabric rendering prepares its own body
bindings.
- Preserve cloth rest angles, rotated tetrahedral rest frames, authored
visuals/materials, and sensor-selected bodies. Source builders are not
temporarily renamed.
- Consolidate site injection and initialize stable deformable data
wrappers once, while retaining timestamp-based lazy data updates.

Against develop: **1,293 fewer production lines and 536 fewer test
lines**.

## Migration

**Breaking:** `isaaclab_contrib.deformable` is removed. For
Newton-specific imports, use:

```python
from isaaclab_newton.assets import DeformableObject, DeformableObjectData
```

The backend-neutral `isaaclab.assets.DeformableObject` and
`DeformableObjectCfg` APIs are unchanged.

The local `add_deformable_from_usd` importer remains until the pinned
Newton provides material-import and selection-metadata parity. Removal
conditions are documented beside it; related issue: #6208.

## Validation

- 64 clone/import, SDP geometry, and site tests passed, including four
subtests.
- Four Newton deformable integration tests, three frame-transformer
tests, and PhysX → Newton Franka cloth rendering passed.
- Explicit native-builder initialization with `MODEL_INIT` site requests
passed.
- The prototype-first regression test failed before the fix and passed
afterward. It covers repeated instances, shared geometry, distinct
visual topology, native world ownership, and translated/rotated
placement.
- Formatting/lint checks and changelog validation passed.

## Startup benchmark

Matched comparison of the latest cleanup: `fd302b37d` before →
`8e2b841a7` after, **not a develop baseline**. PhysX physics → Newton
renderer, 128×128 RGB cameras, no interactive visualizer, seed 42, RTX
5090 (GPU 0). Both checkouts used the same dependency environment.

Mean of two fresh-process runs with warm asset/kernel caches, after an
excluded warmup launch for each revision and workload. Measured order:
before/after, then after/before.

| Environment | Envs | Startup before → after [s] | Environment creation
before → after [s] |
|---|---:|---:|---:|
| Franka Cloth Camera | 128 | 10.28 → 10.00 | 7.21 → 7.01 |
| Franka Soft Camera | 128 | 11.08 → 9.90 | 8.28 → 7.01 |
| Franka Cloth Camera | 512 | 19.62 → 15.59 | 16.66 → 12.60 |

Startup is the sum of the benchmark's Python imports, configuration
resolution, Kit launch, and `gym.make()` timings. Environment creation
is the `gym.make()` subset; the subsequent `env.reset()`, rollout, and
shutdown are excluded. Each launch also completed two warmup steps and
ten measured steps to exercise the camera path; this is not a
runtime-throughput comparison.

At 512 cloth environments, scene creation fell **7.76 → 3.78 s**, while
simulation initialization stayed **8.28 → 8.23 s**. This accounts for
almost all of the **4.03 s (20.5%)** startup saving. The soft-body task
saved **1.17 s (10.6%)**. The smaller 128-cloth startup difference is
within the observed sample variation; no robust total-startup gain is
claimed for that case. These are small-sample measurements on a shared
workstation; unrelated jobs remained on GPU 1.

<details>
<summary>Reproduce and individual startup samples</summary>

Run from each checkout with its imports and the same pinned
dependencies:

```bash
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=8 MKL_NUM_THREADS=8 \
uv run --no-sync isaaclab -p -m isaaclab.benchmark.entrypoints.runtime \
  --task Isaac-Lift-Cloth-Franka-Camera --num_envs 128 \
  physics=isaacsim_physx renderer=newton_renderer --visualizer none \
  --device cuda:0 --seed 42 --warmup_steps 2 --num_steps 10 \
  --kit_args=--/renderer/multiGpu/enabled=false --output_path /tmp/cloth-startup
```

Also run `Isaac-Lift-Soft-Franka-Camera` at 128 environments and the
cloth task at 512 environments. Warm each case first and keep each
launch's JSON output.

Startup samples [s], before → after:

- Franka Cloth Camera (128): 10.507, 10.056 → 10.149, 9.859
- Franka Soft Camera (128): 11.034, 11.119 → 9.891, 9.917
- Franka Cloth Camera (512): 19.500, 19.747 → 15.428, 15.758

</details>

## Checklist

- [x] Followed contribution guidelines and ran formatting checks
- [x] Updated documentation and package changelog fragments
- [x] Validated import, replication, runtime selection, and rendering
- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch

(cherry picked from commit 8577dbfb67a1d00d240eb3918b9a277761357372)

* [Camera] Reduce Newton camera pose and depth kernel launches [5/7] (#8040)

# Description

Newton cameras launched a separate kernel to convert orientations before
packing camera transforms. Planar depth also required an intermediate
ray-distance image and a conversion kernel after rendering. This change
combines orientation conversion with transform packing and binds Newton
1.6's native planar-depth output directly to the camera buffer.

Each camera now needs one pose-update kernel. A camera requesting only
`depth` or `distance_to_image_plane` also avoids one full-image
conversion kernel and its float32 scratch image. When both planar-depth
names are requested, the native result is copied to the second
destination. Existing depth clipping, camera conventions, and sensor
graph scheduling are preserved. No configuration or dependency changes
are required.

Part 5 of the camera performance series. Based on `develop`.

## Type of change

- Performance improvement (non-breaking)

## Validation (local)

- Extended `test_renderer_and_raycast_share_newton_manager_graph`:
checked all three depth outputs against analytic ground-plane distances,
including far-clip misses and camera motion, with CUDA graphs enabled
and disabled. Passed on both the baseline and this change (2 cases
each).
- Newton Kuka golden-image test: passed for RGB, depth, ray distance,
planar depth, normals, and semantic/instance segmentation.
- Existing sensor-task BVH/refit and triangle-mesh eager-fallback
checks: 2 passed.
- `uv run isaaclab -f`, changelog validation against the current base,
and `git diff --check`: passed.

## Performance check

Compared `0d607262c` (`develop`) with `d41b11acf` on one RTX PRO 6000
Blackwell Workstation Edition, using the same installed dependencies
(Newton 1.6.0, Warp 1.17.0).

**Workload:** `Isaac-Lift-KukaAllegro-Camera`, 256 environments, two
128×128 cameras, `physics=newton_mjwarp`, `renderer=newton_renderer`,
`presets=duo_camera,rgb128` or `presets=duo_camera,depth128`, CUDA, no
viewer, seed 42, zero actions.

| Measurement (lower is better) | Base | PR | Change |
| --- | ---: | ---: | ---: |
| RGB camera pose preparation, both cameras | 0.0728 ms | 0.0415 ms |
-42.94% |
| RGB rendering, both cameras, fixed scene | 3.6147 ms | 3.5833 ms |
-0.87% |
| RGB environment step | 12.4898 ms | 12.5243 ms | +0.28% |
| Depth camera pose preparation, both cameras | 0.0730 ms | 0.0418 ms |
-42.71% |
| Depth rendering, both cameras, fixed scene | 3.0763 ms | 3.0225 ms |
-1.75% |
| Depth environment step | 11.8238 ms | 11.7018 ms | -1.03% |
| Ray-depth scratch storage, both depth cameras | 32 MiB | 0 MiB | -32
MiB |

Warp kernel tracing confirmed four → two pose-update kernels and four →
two render/output kernels for the two-camera depth workload. The memory
row measures the removed ray-depth buffers, not total GPU memory.

**Method:** two fresh processes per revision and output type, reversing
revision order for the second pair. Results are medians of per-process
block medians. Environment stepping used 60 warmup steps followed by
five 100-step blocks. The same process then measured pose preparation
and repeated rendering separately with the scene fixed: 10 warmup calls
followed by five blocks of 200 pose updates or 100 renders. Each call
processed both cameras; CUDA was synchronized at block boundaries. GPU
process checks at both ends of every measured block reported no other
compute process. Earlier runs affected by GPU contention were excluded.

These are short rendering/runtime measurements. The overall RGB step
time was effectively unchanged, and the depth step improvement was
modest. PPO training throughput and convergence were not measured.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

(cherry picked from commit ba651197680792b90fce8c7c640a0b7bc732e77b)

* Centralize synchronization-free scalar indexed fills (#8084)

## Description

Centralize scalar indexed fills in `isaaclab.utils.index_fill_` and
migrate 173 production call sites across environments, managers,
sensors, actuators, buffers, tasks, and examples.

```python
# Before: integer CUDA indices upload the scalar and synchronize the host.
buffer[env_ids] = 0.0

# After: slices fill a view; integer indices use Torch's index_fill_.
index_fill_(buffer, env_ids, 0.0)
```

The helper also accepts `None`, boolean masks, and a selected dimension.
Velocity commands now fill directly from their masks instead of
converting masks to integer IDs first. Native Warp kernels, NumPy
writes, tensor-valued assignments, and existing asynchronous
boolean-mask operations are unchanged.

This PR is based directly on develop. It generalizes the indexed-fill
fixes in #8039 without including that PR's camera or marker changes.
There are no new dependencies or classes.

## Performance

### Full environment stepping

Newton MJWarp, 4,096 environments, seed 42, no renderer or interactive
visualizer, GPU 0 (RTX 5090). Compared develop `0d607262c` with this PR
at `1302d9c50`. Each run excluded 100 warmup steps and measured 500 full
`env.step()` calls, including observations, rewards, automatic resets,
and random-action sampling. GPU work was synchronized at the window
boundaries, not between steps. Contended samples were discarded; final
observations and rewards were finite.

| Task | develop ms/step | PR ms/step | develop env-steps/s | PR
env-steps/s | Observed time reduction |
|---|---:|---:|---:|---:|---:|
| Cartpole Direct | 1.954 | 1.936 | 2,095,998 | 2,115,614 | 0.9% |
| Kuka Allegro Lift | 21.497 | 20.994 | 190,538 | 195,104 | 2.3% |

Cartpole reports the mean of two runs per revision, with the order
reversed for the second pair. Individual step times were 1.957/1.951 ms
on develop and 1.950/1.922 ms on the PR. Kuka reports one uncontended
pair. These small differences do not establish a broad throughput gain;
the much larger isolated-operation speedups below do not translate
directly into whole-task speedups.

### Additional default-task runtime benchmarks

RTX PRO 6000 Blackwell Workstation Edition (driver 595.91.07), comparing
the same develop and PR commits. The repository's `isaaclab benchmark
runtime` command used each task's default 4,096 environments and Newton
MJWarp backend, with `--visualizer none`. Each run excluded the default
50 warmup steps and measured the default 1,000 `env.step()` calls. The
command times host return from `env.step()` without synchronizing after
each call; random actions are sampled outside the timed step. Results
are the mean of two runs per revision, with run order reversed for the
second pair.

| Task | develop env-steps/s | PR env-steps/s | Observed throughput gain
|
|---|---:|---:|---:|
| Kuka Allegro Lift | 224,530 | 228,238 | 1.65% |
| Cartpole Direct | 2,223,406 | 2,240,578 | 0.77% |
| Rough Anymal D | 163,988 | 165,702 | 1.04% |

The PR was faster in both runs of each task. These small gains,
particularly Cartpole's, remain close to run-to-run variation and should
not be read as a general throughput guarantee.

### Isolated operations

Matched operation benchmarks against develop `0d607262c`, on GPU 0 (RTX
5090, Torch 2.12.0+cu130), with no other compute process on that GPU.
Two warm samples of 5,000 calls, synchronized at sample boundaries;
stream synchronizations counted separately over 100 calls.

| Operation | develop | This PR | Stream synchronizations per call,
before → after |
|---|---:|---:|---:|
| Integer-index fill, 4096 × 24 tensor | 14.26 µs | 5.45 µs | 1 → 0 |
| Strided slice fill, same tensor | 5.39 µs | 6.13 µs | 0 → 0 |
| `NormalVelocityCommand._update_command`, 4096 environments | 186.55 µs
| 30.50 µs | 8 → 0 |

The velocity-command measurement runs the unchanged method bodies from
each revision on matching tensors and masks. These are operation
benchmarks, not end-to-end environment FPS or startup claims. The helper
costs roughly 0.93 µs over calling native Torch `index_fill_` directly
(4.52 µs), and roughly 0.74 µs on the slice path. Device-resident
integer indices avoid host synchronization; host lists still require an
upload, and int32 indices require a device-side conversion to int64.

## Validation

- 295 focused tests passed: array conversion/fill, circular and delay
buffers, modifiers, managers, Newton actuator adapter, DC motor, and
reorientation utilities. Kit recorder integration was excluded from this
kitless run.
- Extended one existing test file with CPU/CUDA coverage for slices,
integer IDs, masks, empty selections, duplicates, negative IDs,
dimensions, and noncontiguous views. CUDA cases run with synchronization
checking enabled; the old indexed scalar assignment fails that check.
- `uv run isaaclab -f` passed, including changelog validation. The full
integration matrix remains for CI.

## Type of change

- Performance improvement and shared array utility.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Documented the public utility and added package changelog
fragments.
- [x] Extended existing regression coverage.
- [x] Contributor already listed in `CONTRIBUTORS.md`.
- [ ] Full Docker/GPU integration 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 e140fa930cecc84f4fe1599569c8c998c24148bb)

* Expose VBD stabilization and contact capacity for rigid cables (#7913)

## Description

Rigid cable tasks such as shoelace currently need a `VBDSolverCfg`
subclass to configure shared joint/contact stabilization and per-body
body-body contact capacity. Expose `rigid_avbd_alpha` and
`rigid_body_contact_buffer_size` so those settings can be passed
directly:

```python
VBDSolverCfg(
    rigid_avbd_alpha=0.0,
    rigid_body_contact_buffer_size=256,
)
```

The defaults (`None` and `64`) preserve the pinned Newton constructor's
behavior. The existing manager already forwards both fields. The change
adds two configuration fields, two tuning-guide entries, a package
changelog fragment, and two parameterized test cases.

Related: #6733.

## Validation

- `uv run --frozen --extra test python -m pytest -q
source/isaaclab_newton/test/physics/test_vbd_core.py` — 10 passed with
Newton 1.6.0. The two configuration cases compare real CPU solver
construction with direct Newton construction for defaults and shoelace
settings, including unchanged contact mode and allocated contact
capacity.
- Regression check: both configuration cases fail against the
configuration from the PR base and pass with the added fields.
- `uv run --frozen --isolated --extra dev -- make -C docs current-docs`
— warning-free build.
- `ISAACLAB_CHANGELOG_BASE_REF=upstream-develop-pr-base UV_FROZEN=1 uv
run isaaclab -f` and the changelog gate — passed. The base ref tracks
upstream `develop` rather than the fork's older `origin/develop`.

## 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`

## Checklist

- [x] I have read and understood the contribution guidelines.
- [x] I have run the pre-commit checks with `uv run isaaclab -f`.
- [x] I have made corresponding changes to the documentation.
- [x] My changes generate no new warnings (the focused tests report
existing upstream deprecation warnings; the documentation build is
warning-free).
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added a changelog fragment for every touched package.
- [x] My name already exists in `CONTRIBUTORS.md`.

---------

Co-authored-by: Mustafa Haiderbhai <mhaiderbhai@nvidia.com>

(cherry picked from commit 0cdc1e8103a8fa457d58d32cdab61fcd92a778f1)

* Fix TerrainGenerator with integer sub-terrain proportions (#8075)

# Description

`TerrainGenerator` normalizes the sub-terrain proportions with

```python
proportions = np.array([sub_cfg.proportion for sub_cfg in self.cfg.sub_terrains.values()])
proportions /= np.sum(proportions)
```

in both `_generate_random_terrains` and `_generate_curriculum_terrains`.
When every `proportion` is an int (for example `proportion=1` and
`proportion=3`, which the `float` annotation accepts and `configclass`
does not convert), the array is `int64` and the in-place division
raises:

```
numpy._core._exceptions._UFuncOutputCastingError: Cannot cast ufunc 'divide' output from dtype('float64') to dtype('int64') with casting rule 'same_kind'
```

A single float proportion anywhere avoids it, which is why the in-repo
configs (all floats) never hit it.

This builds the array with `dtype=float` in both places. Integer and
float proportions now give identical terrains.

## 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

- Added `test_generation_with_integer_proportions` (random and
curriculum modes): proportions `(1, 3)` must produce the same terrain
origins and mesh as `(1.0, 3.0)`. Both cases fail on `develop` with the
error above and pass with the fix.
- The whole `test_terrain_generator.py` passes locally (CPU, with Isaac
Sim imports stubbed out).
- Ruff v0.14.10 (the pre-commit pin) `check` and `format` are clean on
the changed files. I ran it directly because the full `./isaaclab.sh
--format` environment isn't available on my Windows machine.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

---------

Signed-off-by: Patrick-SCH03 <wwoo5241@gmail.com>
Co-authored-by: Mustafa Haiderbhai <mhaiderbhai@nvidia.com>

(cherry picked from commit b39c2749eda5b4afd5913a8861a0f315da2093bc)

* Fix trimesh object tilt limit when max_yx_angle is in radians (#8074)

# Description

`make_box`, `make_cylinder` and `make_cone` in
`isaaclab/terrains/trimesh/utils.py` document `max_yx_angle` as "the
maximum angle along the y and x axis", with `degrees` choosing the unit.
They draw a random rotation, take its `"zyx"` Euler angles (the x angle
lies in `[-pi, pi]`), and scale the y/x angles:

```python
if degrees:
    max_yx_angle = max_yx_angle / 180.0
euler_zyx[1:] *= max_yx_angle
```

With `degrees=True` this caps the x angle at `max_yx_angle`. With
`degrees=False` the angles are multiplied by the raw radian value, so
the cap is exceeded by a factor of pi. Sampling 5000 objects with a 30
degree cap:

| call | max \|x angle\| | max tilt |
|---|---|---|
| `max_yx_angle=30.0, degrees=True` | 29.99 deg | 32.4 deg |
| `max_yx_angle=np.deg2rad(30), degrees=False` | 94.25 deg | 94.2 deg |

so objects "capped" at 30 degrees can tip past horizontal. Box, cylinder
and cone behave the same.

This divides by pi in the radians branch, so both units give the same
cap. The `degrees=True` path is unchanged. No in-repo caller passes
`degrees=False`.

(Separately, the y angle only reaches half the cap on both paths because
its Euler range is `[-pi/2, pi/2]`; I left that alone since changing it
would alter existing terrains.)

## 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

- Added `test_object_max_yx_angle_units` to
`test/terrains/test_terrain_generator.py`, parametrized over the three
functions: with the same seed, a 30 degree cap in degrees and in radians
must give the same mesh. It fails for all three on `develop` and passes
with the fix.
- The whole `test_terrain_generator.py` passes locally (CPU, with Isaac
Sim imports stubbed out).
- Ruff v0.14.10 (the pre-commit pin) `check` and `format` are clean on
the changed files. I ran it directly because the full `./isaaclab.sh
--format` environment isn't available on my Windows machine.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

Signed-off-by: Patrick-SCH03 <wwoo5241@gmail.com>

(cherry picked from commit a404b874c2d5188c50c3bbac3e286b43061527a2)

* Default joint impedance damping ratio to 1.0 (#8091)

# Description

Omitting `JointImpedanceControllerCfg.damping_ratio` currently makes
controller construction fail when `torch.tensor` receives `None`.
Default the field directly to `1.0` and remove `None` from its type,
matching the damping-ratio defaults in `OperationalSpaceControllerCfg`.

Update the field documentation and changelog, and use the default in the
existing impedance-law test. Explicit numeric configurations retain
their behavior; explicit `None` remains unsupported.

Related to #8076. This PR addresses the configuration default only; the
`variable_kp` fix for honoring non-unit configured ratios remains
separate.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Validation

- Existing impedance-law test failed before the fix with `RuntimeError:
Could not infer dtype of NoneType`; all six cases passed after the fix.
- `uv run --no-sync python -m pytest
source/isaaclab/test/controllers/test_joint_impedance.py -q` (existing
uv environment, worktree source on `PYTHONPATH`).
- `uv run --no-sync isaaclab -f`: all checks passed, including the
changelog gate against current upstream `develop` through a local
validation ref.
- `uv run --isolated --extra dev -- make -C docs current-docs`:
documentation build.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab -f`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have updated existing tests that prove my fix is effective
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`

---------

Signed-off-by: Mustafa H <34825877+StafaH@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

(cherry picked from commit d9c9cd7df41705659b2dc12df5dd1f15153577a1)

* Use function-style configuration operations across the repository (#8085)

## Summary

Use explicit functions for configuration operations throughout the
repository:

```python
from isaaclab.utils import clone, instantiate, replace, to_dict, update_from_dict, validate

robot_cfg = replace(ROBOT_CFG, prim_path="{ENV_REGEX_NS}/Robot")
other_cfg = clone(robot_cfg)
update_from_dict(other_cfg, {"init_state": {"pos": (1.0, 0.0, 0.0)}})
validate(other_cfg)
settings = to_dict(other_cfg)
robot = instantiate(other_cfg)
```

- Added `instantiate`, `clone`, `replace`, and `validate`; exposed the
existing dictionary utilities as `to_dict` and `update_from_dict`
without duplicating their implementations. The helpers are explicitly
imported, not installed in Python builtins.
- Kept existing copying and validation behavior, including borrowed
native fields, nested validation hooks, and custom `validate`
implementations. Configuration methods, `class_to_dict`,
`update_class_from_dict`, and `cfg.class_type(cfg, ...)` remain
supported without deprecation.
- Migrated construction and configuration operations across core,
backends, assets, tasks, RL, experimental code, examples, and tests.
Array/container operations and third-party configuration protocols are
unchanged.
- `instantiate` forwards the original config and constructor arguments.
It does not recursively construct configurations or manage sharing;
backend ownership remains with
`SimulationContext.get_or_create_backend`.

## Validation

- **376 focused tests passed:** configuration utilities, managers,
actuators, renderers, task presets/Hydra, RL entrypoints, and Newton IK.
- **Two GPU 0 smoke tests passed**, each with 16 environments and eight
steps: `Isaac-Cartpole` and `Isaac-Cartpole-Camera-Direct`, using Newton
MJWarp. The camera task used the Newton renderer.
- Zoo scene configurations match before/after for Newton and PhysX
selections, including isolation of copied defaults.
- `uv run isaaclab -f` passed. Kit integration and documentation builds
are left to CI.

## Checklist

- [x] Followed the contribution guidelines.
- [x] Ran formatting, lint, and changelog checks.
- [x] Updated documentation.
- [x] Extended existing configuration tests for function/method parity
and borrowed-field identity.
- [x] Added a changelog fragment for each touched source package.
- [ ] Full CI passed.

## Release backport

- [ ] <!-- backport-active-release --> Backport to the active release
branch.

(cherry picked from commit 76aeb425d214f04bd2895f5f956066c3ec716e81)

* [Camera] Add RSL-RL compilation and mixed precision options [6/7] (#8041)

# 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 intermedia…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants