Skip to content

Clean up isaaclab core package and consolidate its tests - #7949

Closed
StafaH wants to merge 2 commits into
isaac-sim:developfrom
StafaH:cleanup/core-isaaclab
Closed

StafaH wants to merge 2 commits into
isaac-sim:developfrom
StafaH:cleanup/core-isaaclab

Conversation

@StafaH

@StafaH StafaH commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Second cleanup pass over the isaaclab core package and its test tree. The goal is consistent, clean code with less redundancy, and a lean, fast test suite. No public API is removed or renamed.

Source (source/isaaclab/isaaclab, roughly -5.8k lines net)

  • Factored copy-pasted blocks into private helpers: deprecation warnings in assets, distribution/env-id/body-id resolution in envs/mdp/events.py, physics-step/seed/render loops shared by the direct and manager-based envs, term-config iteration in the managers, fragment writers in sim/schemas, spawn helpers in sim/spawners, RL-backend benchmark entrypoints, CLI install/env command plumbing, and the recorder Welford statistics.
  • Removed dead code, restating comments, unused imports, trivial pass-through overrides and duplicated __getattr__ forwarding tables.
  • Cheap optimizations in hot paths: fewer allocations and device transfers in actuator/controller compute, mdp mass/CoM randomization, reward/termination joint reads, terrain mesh generation, and warp ops.

Tests (source/isaaclab/test, roughly -37k lines, ~40 files merged or removed)

  • Merged overlapping files and parametrized repeated cases (asset interface tests, schema fragments, spawners, ray caster and camera families, install commands, app launcher matrices).
  • Made whole directories kitless where the code under test authors pure USD or torch: managers, schema fragments, spawners/sim utils, cli, app, devices, controllers utils, most sensors ray caster tests.
  • Replaced mocks with the real lightweight objects where equally fast; removed sleeps, wall-clock waits and oversized grids.
  • Representative wall-time reductions (per-file, one workstation): utils fast files 335 s -> 42 s, schema tests 82 s -> 18 s, cli 285 s -> 21 s, spawner/sim-utils tests 88 s -> 35 s, asset iface tests 74 s -> 23 s, sensors 361 s -> 219 s, scale randomization 104 s -> 6 s.
  • Two test files that were broken at collection on develop (test_ray_caster_kernels.py, test_tiled_camera_env.py) are fixed or removed; stale entries in tools/test_settings.py dropped.

Behavior fixes found while cleaning (please review)

  • terrains: repeated_objects_terrain checked isinstance(str) before callable, so every built-in MeshRepeated*TerrainCfg raised ValueError.
  • envs/mdp: randomize_fixed_tendon_parameters compared the physics manager name to "physx" (never true), so limit/rest-length randomization always raised; modify_env_param container-path handling for dict keys.
  • managers/event_manager.py: class-based terms were not registered for reset() when the sim was already playing at construction.
  • sim/schemas: modify_articulation_root_properties did not pass stage to find_global_fixed_joint_prim.
  • utils: quat_slerp mutated the caller's q2 in place; sensors.py aperture-offset warning applied abs() to a bool; HDF5 handler failed on a bare filename.
  • sensors/camera/utils.py: create_pointcloud_from_rgbd rgb=None/tuple paths called torch.Tensor(..., dtype=, device=) which raises.
  • benchmark/measurements.py: TestPhase.from_json now sets metadata when there are no measurements.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update: no

Checklist

  • I have read and understood the [contribution guidelines]
  • I have run the [pre-commit checks] with uv run isaaclab -f
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file (.skip fragment)
  • 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

@github-actions github-actions Bot added isaac-mimic Related to Isaac Mimic team isaac-lab Related to Isaac Lab team infrastructure labels Sep 22, 2026
…aclab

# Conflicts:
#	source/isaaclab/test/utils/test_delay_buffer.py
StafaH added a commit that referenced this pull request Sep 23, 2026
# Description

First PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This PR only changes how imports are written in
`source/isaaclab/isaaclab` and adds the import rules to `AGENTS.md`;
there is no logic change.

**Import rules (new `## Code style` section in `AGENTS.md`)**
- Imports are grouped in PEP 8 order: `__future__`, standard library,
third-party, Omniverse runtime packages, Isaac Lab packages, then local
relative imports. The existing ruff isort config already enforces this.
- Imports from the same package are relative when the target is at most
three leading dots away (e.g. `from ...utils import math as
math_utils`), and absolute for deeper targets and other packages.
- Modules with an `if __name__ == "__main__":` block keep absolute
imports, because some are executed by file path (e.g.
`benchmark/entrypoints/multigpu.py` launches itself as the worker
script), where relative imports fail.

**Changes in the core package**
- Applied the rule above across the package with an AST-based rewrite:
725 imports converted (686 `from isaaclab.x import ...`, 39 `import
isaaclab.x.y as z` -> `from ...x import y as z`), then re-sorted with
ruff. 103 imports that would need more than three dots stay absolute.
- No imports are added, removed, or moved between scopes.
- `test/sensors/test_ray_caster_kernels.py` loaded
`utils/warp/kernels.py` by file path, which cannot resolve relative
imports. It now imports the kernels as regular package modules; they
import without Kit.

Verification:
- Every file's AST is identical to `develop` once relative imports are
resolved to absolute names (520 files).
- Importing every module under `isaaclab` gives the same result as on
`develop`, both in one process and with each of the 203 top-level
modules in a fresh process (checks for import-order-dependent cycles).
- `isaaclab train --rl_library rsl_rl --task Isaac-Cartpole-Direct
--num_envs 16 presets=newton_mjwarp --max_iterations 5` completes.
- `pytest source/isaaclab/test/benchmark source/isaaclab/test/cli
source/isaaclab/test/app/test_app_launcher_argv.py`: 661 passed.
- `ruff check` (including isort) / `ruff format` are clean.

## 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`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [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

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 23, 2026
# Description

First PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This PR only changes how imports are written in
`source/isaaclab/isaaclab` and adds the import rules to `AGENTS.md`;
there is no logic change.

**Import rules (new `## Code style` section in `AGENTS.md`)**
- Imports are grouped in PEP 8 order: `__future__`, standard library,
third-party, Omniverse runtime packages, Isaac Lab packages, then local
relative imports. The existing ruff isort config already enforces this.
- Imports from the same package are relative when the target is at most
three leading dots away (e.g. `from ...utils import math as
math_utils`), and absolute for deeper targets and other packages.
- Modules with an `if __name__ == "__main__":` block keep absolute
imports, because some are executed by file path (e.g.
`benchmark/entrypoints/multigpu.py` launches itself as the worker
script), where relative imports fail.

**Changes in the core package**
- Applied the rule above across the package with an AST-based rewrite:
725 imports converted (686 `from isaaclab.x import ...`, 39 `import
isaaclab.x.y as z` -> `from ...x import y as z`), then re-sorted with
ruff. 103 imports that would need more than three dots stay absolute.
- No imports are added, removed, or moved between scopes.
- `test/sensors/test_ray_caster_kernels.py` loaded
`utils/warp/kernels.py` by file path, which cannot resolve relative
imports. It now imports the kernels as regular package modules; they
import without Kit.

Verification:
- Every file's AST is identical to `develop` once relative imports are
resolved to absolute names (520 files).
- Importing every module under `isaaclab` gives the same result as on
`develop`, both in one process and with each of the 203 top-level
modules in a fresh process (checks for import-order-dependent cycles).
- `isaaclab train --rl_library rsl_rl --task Isaac-Cartpole-Direct
--num_envs 16 presets=newton_mjwarp --max_iterations 5` completes.
- `pytest source/isaaclab/test/benchmark source/isaaclab/test/cli
source/isaaclab/test/app/test_app_launcher_argv.py`: 661 passed.
- `ruff check` (including isort) / `ruff format` are clean.

## 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`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [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

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

(cherry picked from commit cff81e8)
StafaH added a commit that referenced this pull request Sep 23, 2026
# Description

Second PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This PR contains only comment and style changes in
`source/isaaclab/isaaclab`; there is no logic change.

- Comments that restate the next line of code are removed (e.g. `# get
stage handle`, `# import logger`, `# return the prim`), along with
commented-out code.
- Comments are kept when they explain intent or ordering constraints,
units (e.g. `N-m/rad --> N-m/deg`), deprecation plans, tensor shapes and
formulas, non-obvious semantics (e.g. the same random value per body),
the `FactoryBase` dispatch, TODO/FIXME items, and section markers in
long functions.
- The `# extract the used quantities (to enable type-hinting)`
boilerplate is removed from the core package; the typed local variable
already states its purpose.
- Blank lines inside function bodies that `ruff format` does not require
are removed.
- Empty `dict()` / `list()` calls are replaced with `{}` / `[]`.
- A duplicated license header in `utils/warp/fabric.py` is removed.

This PR only deletes comments. Comments that the reference branch
rewrites alongside code changes will ship in the PRs that change that
code.

Verification:
- Every file's AST (including docstrings) is identical to `develop`
apart from the `dict()`/`list()` literals (520 files).
- Importing every module under `isaaclab` gives the same result as on
`develop`.
- `ruff check` / `ruff format` are clean.

## Type of change

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


- [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`
- [ ] 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
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 23, 2026
# Description

Second PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This PR contains only comment and style changes in
`source/isaaclab/isaaclab`; there is no logic change.

- Comments that restate the next line of code are removed (e.g. `# get
stage handle`, `# import logger`, `# return the prim`), along with
commented-out code.
- Comments are kept when they explain intent or ordering constraints,
units (e.g. `N-m/rad --> N-m/deg`), deprecation plans, tensor shapes and
formulas, non-obvious semantics (e.g. the same random value per body),
the `FactoryBase` dispatch, TODO/FIXME items, and section markers in
long functions.
- The `# extract the used quantities (to enable type-hinting)`
boilerplate is removed from the core package; the typed local variable
already states its purpose.
- Blank lines inside function bodies that `ruff format` does not require
are removed.
- Empty `dict()` / `list()` calls are replaced with `{}` / `[]`.
- A duplicated license header in `utils/warp/fabric.py` is removed.

This PR only deletes comments. Comments that the reference branch
rewrites alongside code changes will ship in the PRs that change that
code.

Verification:
- Every file's AST (including docstrings) is identical to `develop`
apart from the `dict()`/`list()` literals (520 files).
- Importing every module under `isaaclab` gives the same result as on
`develop`.
- `ruff check` / `ruff format` are clean.

## Type of change

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


- [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`
- [ ] 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

(cherry picked from commit 160d508)
StafaH added a commit that referenced this pull request Sep 24, 2026
# Description

Third PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This one fixes five small bugs in `isaaclab.utils`
and the camera utilities. Each fix has a regression test that fails
without it.

**Fixes**
- `utils.math.unproject_depth`: homogeneous pixel coordinates were built
as `(1, u, v)` instead of `(u, v, 1)` (`pad(..., (0, 0, 1, 0))` instead
of `(0, 0, 0, 1)`), so every unprojected point was wrong and the first
image row became `inf`/`nan`. This regressed in #4437 (quaternion
convention change), where the padding was flipped together with the
quaternion code. It also affects `create_pointcloud_from_depth` /
`create_pointcloud_from_rgbd` and the `run_usd_camera.py` /
`run_ray_caster_camera.py` tutorials. This fix is in its own commit.
- `sensors.camera.utils.create_pointcloud_from_rgbd`: a color tuple or
`rgb=None` called `torch.Tensor(data, device=..., dtype=...)`, which
always raises `TypeError`. The uniform color is now built with
`torch.tensor(...).repeat(...)` on the point cloud's device. The comment
and docstring claiming the default color is white are corrected (it is
black).
- `utils.math.quat_slerp`: `q2 *= -1.0` negated the caller's tensor in
place when taking the shorter arc; it is now `q2 = -q2`.
- `utils.sensors.convert_camera_intrinsics_to_usd`: `abs()` was applied
to the boolean `(c_x - w/2) > 1e-4 or ...`, so a principal point left of
or above the image center never triggered the aperture-offset warning.
- `utils.datasets.HDF5DatasetFileHandler.create`: a bare file name gave
`os.path.dirname(...) == ""` and `os.makedirs("")` raised. The directory
is now only created when there is one.

**Tests** (focused checks, no new test files; together they run in about
2.5 s). The aperture-offset warning fix is a one-line `abs()` correction
and is not covered by a dedicated test.
- `test/utils/test_math.py`: new `test_unproject_depth` (compares
against the pinhole model); the existing `test_quat_slerp` now also
asserts that `q2` is left unchanged.
- `test/utils/test_hdf5_dataset_file_handler.py`:
`test_create_dataset_file` also covers a bare file name.
- `test/sensors/test_opencv_distortion.py` (kit-less):
`test_pointcloud_from_rgbd_uniform_color` (color tuple and `None`).

All of these fail against `develop` sources and pass with the fixes; the
three touched test files pass in full.

## Release backport

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

## 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
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 24, 2026
# Description

Third PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This one fixes five small bugs in `isaaclab.utils`
and the camera utilities. Each fix has a regression test that fails
without it.

**Fixes**
- `utils.math.unproject_depth`: homogeneous pixel coordinates were built
as `(1, u, v)` instead of `(u, v, 1)` (`pad(..., (0, 0, 1, 0))` instead
of `(0, 0, 0, 1)`), so every unprojected point was wrong and the first
image row became `inf`/`nan`. This regressed in #4437 (quaternion
convention change), where the padding was flipped together with the
quaternion code. It also affects `create_pointcloud_from_depth` /
`create_pointcloud_from_rgbd` and the `run_usd_camera.py` /
`run_ray_caster_camera.py` tutorials. This fix is in its own commit.
- `sensors.camera.utils.create_pointcloud_from_rgbd`: a color tuple or
`rgb=None` called `torch.Tensor(data, device=..., dtype=...)`, which
always raises `TypeError`. The uniform color is now built with
`torch.tensor(...).repeat(...)` on the point cloud's device. The comment
and docstring claiming the default color is white are corrected (it is
black).
- `utils.math.quat_slerp`: `q2 *= -1.0` negated the caller's tensor in
place when taking the shorter arc; it is now `q2 = -q2`.
- `utils.sensors.convert_camera_intrinsics_to_usd`: `abs()` was applied
to the boolean `(c_x - w/2) > 1e-4 or ...`, so a principal point left of
or above the image center never triggered the aperture-offset warning.
- `utils.datasets.HDF5DatasetFileHandler.create`: a bare file name gave
`os.path.dirname(...) == ""` and `os.makedirs("")` raised. The directory
is now only created when there is one.

**Tests** (focused checks, no new test files; together they run in about
2.5 s). The aperture-offset warning fix is a one-line `abs()` correction
and is not covered by a dedicated test.
- `test/utils/test_math.py`: new `test_unproject_depth` (compares
against the pinhole model); the existing `test_quat_slerp` now also
asserts that `q2` is left unchanged.
- `test/utils/test_hdf5_dataset_file_handler.py`:
`test_create_dataset_file` also covers a bare file name.
- `test/sensors/test_opencv_distortion.py` (kit-less):
`test_pointcloud_from_rgbd_uniform_color` (color tuple and `None`).

All of these fail against `develop` sources and pass with the fixes; the
three touched test files pass in full.

## Release backport

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

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

(cherry picked from commit ddc6ec4)
StafaH added a commit that referenced this pull request Sep 24, 2026
# Description

Fourth PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This one fixes four small bugs in `isaaclab.terrains`
and `isaaclab.sim`, and adds a spawner for meshes (e.g. terrain from an
`.obj` file) ported from #5407 by @ooctipus (closed as stale). The PhysX
`useEnvIds` and clone-spawner changes from that PR are not included.
Each fix has a regression test that fails without it.

## Fixes
- `terrains.trimesh.mesh_terrains.repeated_objects_terrain`: the
built-in `MeshRepeatedBoxesTerrainCfg`,
`MeshRepeatedCylindersTerrainCfg`, and `MeshRepeatedPyramidsTerrainCfg`
default `object_type` to strings such as `"{DIR}.utils:make_box"`, which
configclass turns into a `ResolvableString` (a callable `str` subclass).
The function checked `isinstance(str)` before `callable`, looked up
`make_{DIR}.utils:make_box` in the module, got `None`, and raised
`ValueError`. Callables are now checked first; plain names such as
`"box"` still resolve to `make_box`. The error message now shows the
configured value instead of `None`.
- `sim.schemas.modify_articulation_root_properties`: with
`fix_root_link` set, the existing fixed joint was searched for on the
current stage instead of the `stage` argument.
- `sim.utils.queries.find_global_fixed_joint_prim`: the signature
accepts `Sdf.Path`, but `prim_path.startswith(...)` raised
`AttributeError` for one. The path is converted to `str` first, like the
sibling query functions.
- `sim.converters.MeshConverter`: the prim name was taken from
`basename.split(".")`, which raised `ValueError` for file names with
more than one dot (e.g. `duck.v2.obj`). It now uses `os.path.splitext`;
the existing invalid-identifier fallback turns `duck.v2` into `duck_v2`.
The unused `mesh_file_format` variable is removed.

## Mesh spawner

**Added**
- `sim_utils.MeshFileCfg` / `sim_utils.spawn_from_mesh` spawn a mesh
from:
- a mesh file path (`.obj`, `.stl`, `.fbx`, ...), converted with
`MeshConverter` and referenced, or
- in-memory triangle data: `MeshFileCfg.TriangleMeshCfg(vertices, faces,
vertex_colors)` or a `trimesh.Trimesh` through
`MeshFileCfg.TrimeshObjectCfg`, authored as an Xform with a USD mesh at
`{prim_path}/mesh`.
- The mesh is visual-only by default. `collision_props`,
`mesh_collision_props` (e.g. triangle mesh for terrain, convex hull for
objects), `rigid_props`, `mass_props`, `visual_material`, and
`physics_material` are optional and accept both the legacy cfgs and
schema fragments, like the other spawners.

```python
terrain = sim_utils.MeshFileCfg(
    mesh="/path/to/terrain.obj",
    collision_props=[sim_utils.UsdPhysicsCollisionCfg(collision_enabled=True)],
    mesh_collision_props=[sim_utils.UsdPhysicsMeshCollisionCfg(mesh_approximation_name="none")],
)
terrain.func("/World/ground", terrain)
```

**Changed**
- `isaaclab.terrains.utils.create_prim_from_mesh` (used by
`TerrainImporter.import_mesh`) now spawns through `MeshFileCfg`. I
checked that the authored USD is byte-for-byte identical to `develop`
for a colored terrain mesh with visual and physics materials. The only
difference: its `translation`/`orientation` kwargs now apply to the root
prim instead of the `mesh` child (same world pose).

**Differences from #5407**
- Mesh file paths reuse `MeshConverter` for collision, mass, and rigid
body properties, so both legacy cfgs and fragments work. The in-memory
path follows the same legacy-or-fragment routing as the mesh-primitive
spawners.
- Dropped the `.usd` branch (use `UsdFileCfg` for USD files), the
duplicate "prim already exists" check (`create_prim` already raises),
and the new public `utils.mesh` helpers; mesh-data validation is a
private helper in the spawner.

## Tests

- `test/sim/test_spawn_from_files.py`:
`test_spawn_mesh_from_triangle_data` (colored rigid body with a
convex-hull collider) and `test_spawn_mesh_from_obj_file`.
- The trimesh terrain path is covered by the existing terrain importer,
ray caster, and material fragment tests; `test_terrain_importer.py`
passes in full.

**Fix tests** (one focused check per fix, extending existing tests where
possible)
- `test/terrains/test_terrain_generator.py`: new
`test_repeated_objects_default_object_type` (the three repeated-object
configs share the code path, so one config is covered).
- `test/sim/test_schemas.py`: new
`test_modify_articulation_root_fix_root_link_uses_given_stage`
(in-memory stage that is not the current stage).
- `test/sim/test_utils_queries.py`: `test_find_global_fixed_joint_prim`
also passes an `Sdf.Path`.
- `test/sim/test_mesh_converter.py`: `test_convert_obj` now converts the
OBJ from a dotted file name (`duck.v2.obj`) and checks the prim name,
instead of adding a separate conversion.

All of these fail against `develop` sources and pass with the fixes.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

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

---------

Co-authored-by: Octi Zhang <[email protected]>
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 24, 2026
# Description

Fourth PR in a series that splits the core cleanup in #7949 into small,
reviewable pieces. This one fixes four small bugs in `isaaclab.terrains`
and `isaaclab.sim`, and adds a spawner for meshes (e.g. terrain from an
`.obj` file) ported from #5407 by @ooctipus (closed as stale). The PhysX
`useEnvIds` and clone-spawner changes from that PR are not included.
Each fix has a regression test that fails without it.

## Fixes
- `terrains.trimesh.mesh_terrains.repeated_objects_terrain`: the
built-in `MeshRepeatedBoxesTerrainCfg`,
`MeshRepeatedCylindersTerrainCfg`, and `MeshRepeatedPyramidsTerrainCfg`
default `object_type` to strings such as `"{DIR}.utils:make_box"`, which
configclass turns into a `ResolvableString` (a callable `str` subclass).
The function checked `isinstance(str)` before `callable`, looked up
`make_{DIR}.utils:make_box` in the module, got `None`, and raised
`ValueError`. Callables are now checked first; plain names such as
`"box"` still resolve to `make_box`. The error message now shows the
configured value instead of `None`.
- `sim.schemas.modify_articulation_root_properties`: with
`fix_root_link` set, the existing fixed joint was searched for on the
current stage instead of the `stage` argument.
- `sim.utils.queries.find_global_fixed_joint_prim`: the signature
accepts `Sdf.Path`, but `prim_path.startswith(...)` raised
`AttributeError` for one. The path is converted to `str` first, like the
sibling query functions.
- `sim.converters.MeshConverter`: the prim name was taken from
`basename.split(".")`, which raised `ValueError` for file names with
more than one dot (e.g. `duck.v2.obj`). It now uses `os.path.splitext`;
the existing invalid-identifier fallback turns `duck.v2` into `duck_v2`.
The unused `mesh_file_format` variable is removed.

## Mesh spawner

**Added**
- `sim_utils.MeshFileCfg` / `sim_utils.spawn_from_mesh` spawn a mesh
from:
- a mesh file path (`.obj`, `.stl`, `.fbx`, ...), converted with
`MeshConverter` and referenced, or
- in-memory triangle data: `MeshFileCfg.TriangleMeshCfg(vertices, faces,
vertex_colors)` or a `trimesh.Trimesh` through
`MeshFileCfg.TrimeshObjectCfg`, authored as an Xform with a USD mesh at
`{prim_path}/mesh`.
- The mesh is visual-only by default. `collision_props`,
`mesh_collision_props` (e.g. triangle mesh for terrain, convex hull for
objects), `rigid_props`, `mass_props`, `visual_material`, and
`physics_material` are optional and accept both the legacy cfgs and
schema fragments, like the other spawners.

```python
terrain = sim_utils.MeshFileCfg(
    mesh="/path/to/terrain.obj",
    collision_props=[sim_utils.UsdPhysicsCollisionCfg(collision_enabled=True)],
    mesh_collision_props=[sim_utils.UsdPhysicsMeshCollisionCfg(mesh_approximation_name="none")],
)
terrain.func("/World/ground", terrain)
```

**Changed**
- `isaaclab.terrains.utils.create_prim_from_mesh` (used by
`TerrainImporter.import_mesh`) now spawns through `MeshFileCfg`. I
checked that the authored USD is byte-for-byte identical to `develop`
for a colored terrain mesh with visual and physics materials. The only
difference: its `translation`/`orientation` kwargs now apply to the root
prim instead of the `mesh` child (same world pose).

**Differences from #5407**
- Mesh file paths reuse `MeshConverter` for collision, mass, and rigid
body properties, so both legacy cfgs and fragments work. The in-memory
path follows the same legacy-or-fragment routing as the mesh-primitive
spawners.
- Dropped the `.usd` branch (use `UsdFileCfg` for USD files), the
duplicate "prim already exists" check (`create_prim` already raises),
and the new public `utils.mesh` helpers; mesh-data validation is a
private helper in the spawner.

## Tests

- `test/sim/test_spawn_from_files.py`:
`test_spawn_mesh_from_triangle_data` (colored rigid body with a
convex-hull collider) and `test_spawn_mesh_from_obj_file`.
- The trimesh terrain path is covered by the existing terrain importer,
ray caster, and material fragment tests; `test_terrain_importer.py`
passes in full.

**Fix tests** (one focused check per fix, extending existing tests where
possible)
- `test/terrains/test_terrain_generator.py`: new
`test_repeated_objects_default_object_type` (the three repeated-object
configs share the code path, so one config is covered).
- `test/sim/test_schemas.py`: new
`test_modify_articulation_root_fix_root_link_uses_given_stage`
(in-memory stage that is not the current stage).
- `test/sim/test_utils_queries.py`: `test_find_global_fixed_joint_prim`
also passes an `Sdf.Path`.
- `test/sim/test_mesh_converter.py`: `test_convert_obj` now converts the
OBJ from a dotted file name (`duck.v2.obj`) and checks the prim name,
instead of adding a separate conversion.

All of these fail against `develop` sources and pass with the fixes.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

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

---------

Co-authored-by: Octi Zhang <[email protected]>

(cherry picked from commit f7e528f)
ooctipus pushed a commit that referenced this pull request Sep 24, 2026
# Description

Part of the series that splits the core cleanup in #7949 into small,
reviewable pieces. An audit of the backend asset classes (after the
tendon issues in #7985 / #7990) found two public API signatures that
always fail on one backend. This PR fixes both. It is independent of
#7985 / #7990.

## Fixes
- **Newton, deprecated joint friction writers.**
`Articulation.write_joint_friction_coefficient_to_sim` (deprecated) was
overridden in Newton to pass `joint_friction_coeff` positionally to the
keyword-only `write_joint_friction_coefficient_to_sim_index`, and to
forward `full_data`, which that method does not accept. It always raised
`TypeError`, and so did the deprecated `write_joint_friction_to_sim`,
which the base class routes through it. The override is removed, so
Newton uses the base class implementation that PhysX and OVPhysX match
(keyword forwarding to the index writer).
- **PhysX, `RigidObjectCollection` mask writers.**
`write_body_link_pose_to_sim_mask`, `write_body_com_pose_to_sim_mask`,
`write_body_com_velocity_to_sim_mask`, and
`write_body_link_velocity_to_sim_mask` took `body_ids` instead of the
`body_mask` that the base class, OVPhysX, and Newton declare, so
`body_mask=` raised `TypeError` on PhysX. They now take `body_mask`.
`body_ids` still works but emits a `DeprecationWarning` (passing both
raises `ValueError`).

## Tests
- `test/assets/test_articulation_iface.py`: new
`test_deprecated_joint_friction_writers` calls both deprecated friction
writers on every backend; it fails for Newton on `develop`.
- `test/assets/test_rigid_object_collection_iface.py`: the mask writer
tests skipped `body_mask` for the link/com variants (with a note about
this mismatch). The workaround and note are removed, so `body_mask` is
exercised for all six mask writers on every backend. PhysX is only
available in these tests with Kit; I confirmed under Kit that all four
PhysX writers reject `body_mask=` on `develop` and accept it here. The
full file passes locally for Newton and OVPhysX (1276 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
ooctipus added a commit that referenced this pull request Sep 25, 2026
# Description

Follow-up to #7985 in the series that splits the core cleanup in #7949
into small, reviewable pieces. It makes the fixed tendon position-limit
API consistent across the PhysX, OVPhysX, and Newton backends, and fixes
the Newton fixed tendon mask API.

> **Stacked on #7985.** Until that merges, this diff also shows its two
commits. The PR-specific commits fix tendon position limits and clarify
the remaining Newton property mappings.

## Fixed tendon position limits
The data layout was inconsistent: `fixed_tendon_pos_limits` is
documented and reported as `wp.vec2f` of shape (N, T) (torch: (N, T,
2)), but the setters disagreed.
- **PhysX:** the setters validated (N, T) `wp.float32` and wrote with a
2D float kernel, while the buffer is (N, T, 2). They could not accept
the layout the asset reports, which is why `test_articulation_iface.py`
excluded them. They now validate `wp.vec2f` (torch tensors with a
trailing dimension of 2), like `write_joint_position_limit_to_sim_*`.
- **OVPhysX:** the setters accepted only the (N, T, 2) `wp.float32` form
and rejected `wp.vec2f` arrays (e.g.
`data.fixed_tendon_pos_limits.warp`); a float reached the kernel instead
of raising. They now accept both forms and raise `ValueError` for a
float, like the OVPhysX joint position limits.
- **Newton:** raised `NotImplementedError`. They now write the MuJoCo
`tendon_range` (already bound for reading `fixed_tendon_pos_limits`),
which `write_fixed_tendon_properties_to_sim_*` applies and the solver
refreshes on `ModelFlags.TENDON_PROPERTIES` (added in #7985).

With this, `randomize_fixed_tendon_parameters` can randomize position
limits on all three backends.

## Newton fixed tendon mask API
- `set_fixed_tendon_stiffness_mask` / `set_fixed_tendon_damping_mask`
called `_resolve_env_mask` and `_resolve_fixed_tendon_mask`, which the
Newton articulation does not define (only its rigid object collection
does), and passed `full_data=True` to index setters without that
argument. Both always raised. The articulation now has the mask-to-index
helpers, and the mask setters pass the selected data to the index
setters.
- `write_fixed_tendon_properties_to_sim_mask` called `_resolve_mask`
without its required argument, got a boolean mask where indices were
needed, and passed `env_ids` positionally to a keyword-only method. It
now resolves the masks and forwards them.
- The fixed tendon writers now take the `fixed_tendon_ids` /
`fixed_tendon_mask` arguments the base class declares.

## Newton tendon semantics

The force-gain implementation is now proposed in [Newton
#4311](newton-physics/newton#4311), with the
[Isaac Lab setters implemented on a dependent
branch](https://github.com/ooctipus/IsaacLab/tree/fix/pr7990-tendon-limit-gains).
Those setters require the Newton API addition and are kept out of this
PR until the dependency is updated. The existing Newton 1.6.0 pin
remains unchanged here.

Newton's MuJoCo solver supports tendons. Corrected errors and API docs
that called tendons PhysX-only or implied that MuJoCo cannot represent
limit stiffness. The shared limit-stiffness, rest-length, and offset
setters remain unimplemented; position ranges only act on tendons with
limits enabled in the model.

Newton already [converts joint-limit force gains to
solref](https://github.com/newton-physics/newton/blob/v1.6.0/newton/_src/solvers/mujoco/kernels.py#L2622-L2732),
scaling stiffness and damping by inverse inertia times `(1 - dmax)`. An
isolated GPU check with Newton 1.6.0 / MuJoCo Warp 3.12 and constant
impedance 0.95 adapted this conversion using `tendon_invweight0`: a 3 N
load remained at the expected 3 cm limit penetration for stiffness 100
N/m, with both 1 kg and 10 kg masses. This verifies static compliance in
that setup, not full PhysX trajectory parity.

A tendon conversion should live in Newton's solver, where it can refresh
after inertia changes. Before enabling the shared setter, reconcile
these behaviors:
- PhysX's damping also enters its limit response; MuJoCo has separate
passive and limit damping. Copying the shared damping into both needs
validation against [PhysX's tendon spring
implementation](https://github.com/NVIDIA-Omniverse/PhysX/blob/da950a3537927784951853c66618036f332ca0ce/physx/source/lowleveldynamics/shared/DyCpuGpuArticulation.h#L765-L855).
- Newton's joint converter resets nonpositive stiffness or damping to
MuJoCo's default solref. That fallback does not preserve a shared API's
zero-gain meaning.
- Finite impedance and timestep clamping affect transient response even
when static compliance matches.

The Newton property writer also now reads each staged value at the
selected environment/tendon indices. Previously, writing environment 1,
tendon 1 could silently copy environment 0, tendon 0.

## Tests
- `test/assets/test_articulation_iface.py`:
`set_fixed_tendon_position_limit` is added to the fixed tendon writer
matrix (torch/warp × index/mask × all/subset × invalid input) for the
mock, PhysX, and OVPhysX backends; the note excluding it is removed. 12
of these cases fail on `develop`.
- `isaaclab_newton/test/assets/test_articulation.py`:
`test_fixed_tendon_properties_reach_solver` now uses a mask setter, the
position-limit setter, and the mask writer, and checks the MuJoCo
model's `tendon_range`. It fails on #7985 alone.
- The full `test_articulation_iface.py` (1965 passed) and the Newton
tendon tests pass.

- The Newton integration regression now covers two environments and a
selected stiffness/damping update. It fails with the original writer (12
instead of the requested 42 at environment 1, tendon 1) and passes after
the fix with Newton 1.6.0. All formatting/pre-commit checks passed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have 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`

---------

Signed-off-by: Octi Zhang <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
ooctipus added a commit that referenced this pull request Sep 25, 2026
# Description

Part of the series that splits the core cleanup in #7949 into small,
reviewable pieces. Following #7985, event terms and task code should not
branch on the physics manager's class name; they should call the asset
API and let each backend handle (or reject) what it supports. An audit
found the remaining places that branched on the backend name, plus one
Newton solver gap. This PR fixes them. It is independent of #7985 /
#7990 / #7991.

## Changes
- **`randomize_joint_parameters`** chose the friction write path with
`"newton" in manager_name`, treating every other backend (including
OVPhysX) as PhysX. It now randomizes dynamic friction whenever the asset
data exposes `joint_dynamic_friction_coeff` (PhysX, OVPhysX; not
Newton), and makes one `write_joint_friction_coefficient_to_sim_index`
call on every backend. Newton's writer already applies the viscous part
and ignores dynamic friction. Its invalid-operation error also named
`'randomize_fixed_tendon_parameters'`; it now names the right term.
- **`randomize_rigid_body_com`** sliced the pose to a position on Newton
(`"newton" in manager_name`) because Newton's `set_coms_*` accepted
positions only, unlike the base API, PhysX, and OVPhysX, which take
poses. Newton's `set_coms_index` / `set_coms_mask` (articulation, rigid
object, rigid object collection) now also accept poses (trailing
dimension 7 or `wp.transformf`) and ignore the orientation, since Newton
models the center of mass as a position. The event passes poses on every
backend.
- **`randomize_rigid_body_scale`** detected articulations with
`cls.__name__ == "Articulation"` over the MRO; it now uses
`isinstance(asset, BaseArticulation)`.
- **NIST `reset_end_effector_around_asset`** (`isaaclab_tasks` contrib)
no longer performs a backend-specific Jacobian refresh. Joint writes
invalidate articulation data, and subsequent body-pose reads refresh
forward kinematics on demand. This also removes the invalid
`root_physx_view` access on OVPhysX.
- **Newton Featherstone inertia changes.** `SolverFeatherstone` derives
its inertia data (`body_I_m`, `body_X_com`) from the model only in its
constructor, and its `notify_model_changed` ignores
`ModelFlags.BODY_INERTIAL_PROPERTIES`. So `set_masses_*`, `set_coms_*`,
`set_inertias_*`, and the mass/CoM/inertia randomization events silently
had no effect on Featherstone. The real fix is upstream in Newton. Until
then, a manager can declare model changes its solver does not apply
(`NewtonManager._ignored_model_changes`). Featherstone declares
`BODY_INERTIAL_PROPERTIES`, and the manager logs a warning the first
time such a change is flushed.
- **Pretrained checkpoints** (`isaaclab_rl`): OVPhysX configs resolve to
the PhysX checkpoints through the `"physx"` substring match. This is
intended, since they run the same PhysX engine, so it is only
documented.

Not changed: Newton ignores `joint_velocity_limit` on MJWarp (documented
by Newton). A warning was considered, but actuator setup writes velocity
limits for every articulation, so it would fire on every MJWarp run.

## Tests
- `isaaclab_physx/test/assets/test_articulation.py`: the two CUDA cases
of `test_write_joint_state_data_consistency` pass, verifying fresh body
state after manual joint writes without a simulation step or explicit
Jacobian read.
- `test/envs/test_articulation_ordering_events.py`: the Newton
joint-parameter randomization test no longer gives the term a physics
manager. It fails on `develop`, where the term reads `env.sim`. The fake
Newton articulation now forwards viscous friction the way Newton's
writer does.
- `isaaclab_newton/test/assets/test_articulation.py`:
`test_randomize_rigid_body_com` also sets CoMs from full poses (fails on
`develop` with a shape mismatch).
- `isaaclab_newton/test/physics/test_newton_manager_abstraction.py`:
`test_initialize_solver_populates_canonical_state` checks that only
Featherstone registers `BODY_INERTIAL_PROPERTIES` as ignored (8 solver
variants).
- Also passing: the full Newton manager abstraction tests (199) and the
Newton articulation / rigid object / collection CoM and friction tests.

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

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [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]>
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 25, 2026
# Description

Part of the series that splits the core cleanup in #7949 into small,
reviewable pieces. Following #7985, event terms and task code should not
branch on the physics manager's class name; they should call the asset
API and let each backend handle (or reject) what it supports. An audit
found the remaining places that branched on the backend name, plus one
Newton solver gap. This PR fixes them. It is independent of #7985 /
#7990 / #7991.

## Changes
- **`randomize_joint_parameters`** chose the friction write path with
`"newton" in manager_name`, treating every other backend (including
OVPhysX) as PhysX. It now randomizes dynamic friction whenever the asset
data exposes `joint_dynamic_friction_coeff` (PhysX, OVPhysX; not
Newton), and makes one `write_joint_friction_coefficient_to_sim_index`
call on every backend. Newton's writer already applies the viscous part
and ignores dynamic friction. Its invalid-operation error also named
`'randomize_fixed_tendon_parameters'`; it now names the right term.
- **`randomize_rigid_body_com`** sliced the pose to a position on Newton
(`"newton" in manager_name`) because Newton's `set_coms_*` accepted
positions only, unlike the base API, PhysX, and OVPhysX, which take
poses. Newton's `set_coms_index` / `set_coms_mask` (articulation, rigid
object, rigid object collection) now also accept poses (trailing
dimension 7 or `wp.transformf`) and ignore the orientation, since Newton
models the center of mass as a position. The event passes poses on every
backend.
- **`randomize_rigid_body_scale`** detected articulations with
`cls.__name__ == "Articulation"` over the MRO; it now uses
`isinstance(asset, BaseArticulation)`.
- **NIST `reset_end_effector_around_asset`** (`isaaclab_tasks` contrib)
no longer performs a backend-specific Jacobian refresh. Joint writes
invalidate articulation data, and subsequent body-pose reads refresh
forward kinematics on demand. This also removes the invalid
`root_physx_view` access on OVPhysX.
- **Newton Featherstone inertia changes.** `SolverFeatherstone` derives
its inertia data (`body_I_m`, `body_X_com`) from the model only in its
constructor, and its `notify_model_changed` ignores
`ModelFlags.BODY_INERTIAL_PROPERTIES`. So `set_masses_*`, `set_coms_*`,
`set_inertias_*`, and the mass/CoM/inertia randomization events silently
had no effect on Featherstone. The real fix is upstream in Newton. Until
then, a manager can declare model changes its solver does not apply
(`NewtonManager._ignored_model_changes`). Featherstone declares
`BODY_INERTIAL_PROPERTIES`, and the manager logs a warning the first
time such a change is flushed.
- **Pretrained checkpoints** (`isaaclab_rl`): OVPhysX configs resolve to
the PhysX checkpoints through the `"physx"` substring match. This is
intended, since they run the same PhysX engine, so it is only
documented.

Not changed: Newton ignores `joint_velocity_limit` on MJWarp (documented
by Newton). A warning was considered, but actuator setup writes velocity
limits for every articulation, so it would fire on every MJWarp run.

## Tests
- `isaaclab_physx/test/assets/test_articulation.py`: the two CUDA cases
of `test_write_joint_state_data_consistency` pass, verifying fresh body
state after manual joint writes without a simulation step or explicit
Jacobian read.
- `test/envs/test_articulation_ordering_events.py`: the Newton
joint-parameter randomization test no longer gives the term a physics
manager. It fails on `develop`, where the term reads `env.sim`. The fake
Newton articulation now forwards viscous friction the way Newton's
writer does.
- `isaaclab_newton/test/assets/test_articulation.py`:
`test_randomize_rigid_body_com` also sets CoMs from full poses (fails on
`develop` with a shape mismatch).
- `isaaclab_newton/test/physics/test_newton_manager_abstraction.py`:
`test_initialize_solver_populates_canonical_state` checks that only
Featherstone registers `BODY_INERTIAL_PROPERTIES` as ignored (8 solver
variants).
- Also passing: the full Newton manager abstraction tests (199) and the
Newton articulation / rigid object / collection CoM and friction tests.

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

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [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]>

(cherry picked from commit 8835a34)
ooctipus added a commit that referenced this pull request Sep 25, 2026
Follow-up to #7985 in the series that splits the core cleanup in #7949
into small, reviewable pieces. It makes the fixed tendon position-limit
API consistent across the PhysX, OVPhysX, and Newton backends, and fixes
the Newton fixed tendon mask API.

> **Stacked on #7985.** Until that merges, this diff also shows its two
commits. The PR-specific commits fix tendon position limits and clarify
the remaining Newton property mappings.

The data layout was inconsistent: `fixed_tendon_pos_limits` is
documented and reported as `wp.vec2f` of shape (N, T) (torch: (N, T,
2)), but the setters disagreed.
- **PhysX:** the setters validated (N, T) `wp.float32` and wrote with a
2D float kernel, while the buffer is (N, T, 2). They could not accept
the layout the asset reports, which is why `test_articulation_iface.py`
excluded them. They now validate `wp.vec2f` (torch tensors with a
trailing dimension of 2), like `write_joint_position_limit_to_sim_*`.
- **OVPhysX:** the setters accepted only the (N, T, 2) `wp.float32` form
and rejected `wp.vec2f` arrays (e.g.
`data.fixed_tendon_pos_limits.warp`); a float reached the kernel instead
of raising. They now accept both forms and raise `ValueError` for a
float, like the OVPhysX joint position limits.
- **Newton:** raised `NotImplementedError`. They now write the MuJoCo
`tendon_range` (already bound for reading `fixed_tendon_pos_limits`),
which `write_fixed_tendon_properties_to_sim_*` applies and the solver
refreshes on `ModelFlags.TENDON_PROPERTIES` (added in #7985).

With this, `randomize_fixed_tendon_parameters` can randomize position
limits on all three backends.

- `set_fixed_tendon_stiffness_mask` / `set_fixed_tendon_damping_mask`
called `_resolve_env_mask` and `_resolve_fixed_tendon_mask`, which the
Newton articulation does not define (only its rigid object collection
does), and passed `full_data=True` to index setters without that
argument. Both always raised. The articulation now has the mask-to-index
helpers, and the mask setters pass the selected data to the index
setters.
- `write_fixed_tendon_properties_to_sim_mask` called `_resolve_mask`
without its required argument, got a boolean mask where indices were
needed, and passed `env_ids` positionally to a keyword-only method. It
now resolves the masks and forwards them.
- The fixed tendon writers now take the `fixed_tendon_ids` /
`fixed_tendon_mask` arguments the base class declares.

The force-gain implementation is now proposed in [Newton
[Isaac Lab setters implemented on a dependent
branch](https://github.com/ooctipus/IsaacLab/tree/fix/pr7990-tendon-limit-gains).
Those setters require the Newton API addition and are kept out of this
PR until the dependency is updated. The existing Newton 1.6.0 pin
remains unchanged here.

Newton's MuJoCo solver supports tendons. Corrected errors and API docs
that called tendons PhysX-only or implied that MuJoCo cannot represent
limit stiffness. The shared limit-stiffness, rest-length, and offset
setters remain unimplemented; position ranges only act on tendons with
limits enabled in the model.

Newton already [converts joint-limit force gains to
solref](https://github.com/newton-physics/newton/blob/v1.6.0/newton/_src/solvers/mujoco/kernels.py#L2622-L2732),
scaling stiffness and damping by inverse inertia times `(1 - dmax)`. An
isolated GPU check with Newton 1.6.0 / MuJoCo Warp 3.12 and constant
impedance 0.95 adapted this conversion using `tendon_invweight0`: a 3 N
load remained at the expected 3 cm limit penetration for stiffness 100
N/m, with both 1 kg and 10 kg masses. This verifies static compliance in
that setup, not full PhysX trajectory parity.

A tendon conversion should live in Newton's solver, where it can refresh
after inertia changes. Before enabling the shared setter, reconcile
these behaviors:
- PhysX's damping also enters its limit response; MuJoCo has separate
passive and limit damping. Copying the shared damping into both needs
validation against [PhysX's tendon spring
implementation](https://github.com/NVIDIA-Omniverse/PhysX/blob/da950a3537927784951853c66618036f332ca0ce/physx/source/lowleveldynamics/shared/DyCpuGpuArticulation.h#L765-L855).
- Newton's joint converter resets nonpositive stiffness or damping to
MuJoCo's default solref. That fallback does not preserve a shared API's
zero-gain meaning.
- Finite impedance and timestep clamping affect transient response even
when static compliance matches.

The Newton property writer also now reads each staged value at the
selected environment/tendon indices. Previously, writing environment 1,
tendon 1 could silently copy environment 0, tendon 0.

- `test/assets/test_articulation_iface.py`:
`set_fixed_tendon_position_limit` is added to the fixed tendon writer
matrix (torch/warp × index/mask × all/subset × invalid input) for the
mock, PhysX, and OVPhysX backends; the note excluding it is removed. 12
of these cases fail on `develop`.
- `isaaclab_newton/test/assets/test_articulation.py`:
`test_fixed_tendon_properties_reach_solver` now uses a mask setter, the
position-limit setter, and the mask writer, and checks the MuJoCo
model's `tendon_range`. It fails on #7985 alone.
- The full `test_articulation_iface.py` (1965 passed) and the Newton
tendon tests pass.

- The Newton integration regression now covers two environments and a
selected stiffness/damping update. It fails with the original writer (12
instead of the requested 42 at environment 1, tendon 1) and passes after
the fix with Newton 1.6.0. All formatting/pre-commit checks passed.

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

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

---------

Signed-off-by: Octi Zhang <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
(cherry picked from commit fa5837c)
ooctipus added a commit that referenced this pull request Sep 25, 2026
# 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]>
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 25, 2026
# 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]>

(cherry picked from commit 24fd318)
StafaH added a commit that referenced this pull request Sep 25, 2026
# 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`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 25, 2026
# 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`

(cherry picked from commit 6bbbd27)
ooctipus pushed a commit that referenced this pull request Sep 26, 2026
# 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`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 26, 2026
# 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`

(cherry picked from commit 8aea54d)
StafaH added a commit that referenced this pull request Sep 26, 2026
# 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`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 26, 2026
# 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 d728f03)
StafaH added a commit that referenced this pull request Sep 27, 2026
# 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

- [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 this pull request to the active release branch after it
merges into `develop`
StafaH added a commit that referenced this pull request Sep 27, 2026
# Description

Eleventh PR in the series that splits the core cleanup in #7949 into
small, reviewable pieces. It deduplicates helpers in
`isaaclab.utils.datasets` and `isaaclab.utils.leapp`. There is no
behavior change.

- `datasets/episode_data.py`: `get_state` and `get_joint_target` each
had a nested helper that indexed every tensor of a nested dict. They now
share `_index_nested(..., keep_dim)`, which keeps the one difference
(states keep a leading dimension of one). `add` walks the nested keys
with a plain loop.
- `datasets/dataset_file_handler_base.py`: the abstract methods `raise
NotImplementedError` instead of returning the exception class, and the
empty `__init__` is removed. All methods are `@abstractmethod`, and the
only subclass overrides them without calling `super()`.
- `datasets/hdf5_dataset_file_handler.py`: condensed demo naming, sample
counting, and dataset creation with the same results.
- `leapp/export_annotator.py`: the four `kp` / `kd` gain
`TensorSemantics` blocks (OSC and static gains) share `_gain_semantics`.
The curriculum stub reuses the existing `_noop`, and the logger moves to
module level.
- `leapp/proxy.py`: both scene proxies share `_proxy_entity` for
wrapping an entity's `.data`. Entities without `.data` are still
returned as-is and not cached, as before. An unneeded `cast` is removed.

`utils/wrench_composer.py` is intentionally not touched. Its
`_get_com_pos_fn` / `_get_link_quat_fn` indirection is how
`test_wrench_composer.py` checks that CoM and orientation are not read
when no world-frame wrench is pending.

## Verification
- `test/utils/test_episode_data.py`,
`test_hdf5_dataset_file_handler.py`,
`isaaclab_rl/test/export/test_leapp_selectors.py`, and
`test_leapp_export_flow.py` pass. The exception is
`test_initialized_export[skrl-Isaac-Cartpole-newton_mjwarp]`, which
fails identically on `develop` in this environment while creating the
skrl checkpoint, before any export code runs.

## 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 this pull request to the active release branch after it
merges into `develop`
StafaH added a commit that referenced this pull request Sep 28, 2026
# Description

Part 12 of the core cleanup split from #7949. This PR covers
`isaaclab.actuators` and `isaaclab.controllers`. It is rebased onto the
current `develop` and ports only the parts of the original cleanup that
still apply there.

**Actuators**
- `ActuatorCollection`:
- Iterates the shared `_JOINT_PROPERTY_KEYS` tuple (same order) instead
of repeating the key list.
  - Inlines the one-line `_resolve_joint_property` wrapper.
  - `_joint_indices_as_wp` now reuses `_joint_indices_as_torch`.
- The six
`ActuatorTargetCommand.set_{position,velocity,effort}_{index,mask}`
methods share `_set_index` / `_set_mask`. Selector resolution, shape
checks, kernels and command staging are unchanged.
- `DCMotor`: removed the unused `_zeros_effort` buffer.
- `DelayedPDActuator`: removed the unused `_ALL_INDICES` tensor, and
`reset` now loops over the three delay buffers.
- Newton adapter: `defaultdict` is now imported at module level.

**Controllers**
- `DifferentialIKController`:
- Compacted `_compute_delta_joint_pos`: IK params are read once, `.mT`
is used, and there is a single `unsqueeze`/`squeeze`.
  - Removed the duplicated `ee_quat_des` write in position mode.
  - Fixed a docstring typo.
- `OperationalSpaceController`: the three copies of the `2 * sqrt(kp) *
zeta` damping-gain formula now share `_critically_damped_gains`. The
gains are still written in place, so `_frame_matrices` and the LEAPP
export annotator keep referencing the live buffer.
- `PinkIKController`:
- Calls `set_target_from_configuration` directly instead of through
`getattr`.
  - Builds joint-name mismatches with a comprehension.
  - `except (AssertionError, Exception)` is now `except Exception`.
  - Logs solver failures with `logger.warning` instead of `print`.
  - The explicit `None` checks and their `ValueError`s are kept.
- `RmpFlowController`: logs the URDF path with `logger.info` instead of
`print`, and selects active and watched joints with combined indexing
(`all_pos[i, idx]` instead of `all_pos[i][idx]`).
- `controllers.utils`:
- `change_revolute_to_fixed_regex` resolves the matching joints and
delegates to `change_revolute_to_fixed`.
- The `ISAAC_PATH` lookup shared by the RMPFlow and lula discovery
helpers is now `_isaac_path()`.

**Not ported from #7949**
- Deprecated limit-alias refactors in `_compat`, `ActuatorBase`, and
`ImplicitActuator`: these paths will be removed.
- DCMotor clip compaction: `develop` has since reworked `_clip_effort`
to take `joint_vel`.
- OSC rotation and identity-frame changes: `develop` already covers
them.
- Removal of Pink IK's `None` checks: it would turn `ValueError` into
`TypeError`.

## Type of change

- Refactor, plus one user-visible logging change (`print` → `logging` in
Pink IK and RMPFlow).

## Verification

- Bitwise equivalence against `develop` (same seeded inputs run through
both source trees, compared with `torch.equal` including dtype and
shape): **566 outputs, 0 differences**, on CPU and CUDA. Covered:
- `DifferentialIKController.set_command` + `compute` for all 5 IK
methods × pose/position × absolute/relative, batch sizes 1, 64, 512 and
4096, 6–9 joints, including near-singular and rank-deficient Jacobians;
plus `_compute_delta_joint_pos` with 3- and 6-row Jacobians.
- `OperationalSpaceController` init gains, `set_command` (task and
root-frame gains) and `compute` torques in fixed, variable_kp and
variable impedance modes, with and without inertial decoupling, gravity
compensation and null-space control. `_motion_d_gains_task` stays the
same tensor object.
- `ActuatorTargetCommand` position/velocity/effort index setters (full
and selected) and mask setters.
- Performance against `develop` (median of 5 alternating runs; 4096
envs): IK `compute` (all methods), OSC `set_command` (all modes), and
the target-command setters are within run-to-run noise on CPU and CUDA
(ratios 0.96–1.04; a dedicated 10-run setter benchmark gave matching
medians of ~53.6 µs CPU / ~17.0 µs CUDA).
- Tests:
- `source/isaaclab/test/actuators`, `test_articulation_iface.py`,
`test_joint_impedance.py`, `test_local_frame_task.py`,
`test_null_space_posture_task.py`, `test_pink_ik_components.py`: pass.
When these files run in one process, 3
`test_action_gravity_compensation_with_migrated_robot_configs[...GR1T2_HIGH_PD_CFG]`
cases fail on `develop` and on this branch alike; they pass when run on
their own.
- `test_controller_utils.py` (22), `test_differential_ik.py` (40),
`test_operational_space.py` (47), `test_pink_ik.py` (19 passed, 1
skipped): pass.
- `test_newton_actuators_newton.py` (38) and
`test_newton_actuators_physx.py` (35): pass.
- `ruff check` and `ruff format` are clean.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the `pre-commit` checks 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

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 28, 2026
# Description

Part 12 of the core cleanup split from #7949. This PR covers
`isaaclab.actuators` and `isaaclab.controllers`. It is rebased onto the
current `develop` and ports only the parts of the original cleanup that
still apply there.

**Actuators**
- `ActuatorCollection`:
- Iterates the shared `_JOINT_PROPERTY_KEYS` tuple (same order) instead
of repeating the key list.
  - Inlines the one-line `_resolve_joint_property` wrapper.
  - `_joint_indices_as_wp` now reuses `_joint_indices_as_torch`.
- The six
`ActuatorTargetCommand.set_{position,velocity,effort}_{index,mask}`
methods share `_set_index` / `_set_mask`. Selector resolution, shape
checks, kernels and command staging are unchanged.
- `DCMotor`: removed the unused `_zeros_effort` buffer.
- `DelayedPDActuator`: removed the unused `_ALL_INDICES` tensor, and
`reset` now loops over the three delay buffers.
- Newton adapter: `defaultdict` is now imported at module level.

**Controllers**
- `DifferentialIKController`:
- Compacted `_compute_delta_joint_pos`: IK params are read once, `.mT`
is used, and there is a single `unsqueeze`/`squeeze`.
  - Removed the duplicated `ee_quat_des` write in position mode.
  - Fixed a docstring typo.
- `OperationalSpaceController`: the three copies of the `2 * sqrt(kp) *
zeta` damping-gain formula now share `_critically_damped_gains`. The
gains are still written in place, so `_frame_matrices` and the LEAPP
export annotator keep referencing the live buffer.
- `PinkIKController`:
- Calls `set_target_from_configuration` directly instead of through
`getattr`.
  - Builds joint-name mismatches with a comprehension.
  - `except (AssertionError, Exception)` is now `except Exception`.
  - Logs solver failures with `logger.warning` instead of `print`.
  - The explicit `None` checks and their `ValueError`s are kept.
- `RmpFlowController`: logs the URDF path with `logger.info` instead of
`print`, and selects active and watched joints with combined indexing
(`all_pos[i, idx]` instead of `all_pos[i][idx]`).
- `controllers.utils`:
- `change_revolute_to_fixed_regex` resolves the matching joints and
delegates to `change_revolute_to_fixed`.
- The `ISAAC_PATH` lookup shared by the RMPFlow and lula discovery
helpers is now `_isaac_path()`.

**Not ported from #7949**
- Deprecated limit-alias refactors in `_compat`, `ActuatorBase`, and
`ImplicitActuator`: these paths will be removed.
- DCMotor clip compaction: `develop` has since reworked `_clip_effort`
to take `joint_vel`.
- OSC rotation and identity-frame changes: `develop` already covers
them.
- Removal of Pink IK's `None` checks: it would turn `ValueError` into
`TypeError`.

## Type of change

- Refactor, plus one user-visible logging change (`print` → `logging` in
Pink IK and RMPFlow).

## Verification

- Bitwise equivalence against `develop` (same seeded inputs run through
both source trees, compared with `torch.equal` including dtype and
shape): **566 outputs, 0 differences**, on CPU and CUDA. Covered:
- `DifferentialIKController.set_command` + `compute` for all 5 IK
methods × pose/position × absolute/relative, batch sizes 1, 64, 512 and
4096, 6–9 joints, including near-singular and rank-deficient Jacobians;
plus `_compute_delta_joint_pos` with 3- and 6-row Jacobians.
- `OperationalSpaceController` init gains, `set_command` (task and
root-frame gains) and `compute` torques in fixed, variable_kp and
variable impedance modes, with and without inertial decoupling, gravity
compensation and null-space control. `_motion_d_gains_task` stays the
same tensor object.
- `ActuatorTargetCommand` position/velocity/effort index setters (full
and selected) and mask setters.
- Performance against `develop` (median of 5 alternating runs; 4096
envs): IK `compute` (all methods), OSC `set_command` (all modes), and
the target-command setters are within run-to-run noise on CPU and CUDA
(ratios 0.96–1.04; a dedicated 10-run setter benchmark gave matching
medians of ~53.6 µs CPU / ~17.0 µs CUDA).
- Tests:
- `source/isaaclab/test/actuators`, `test_articulation_iface.py`,
`test_joint_impedance.py`, `test_local_frame_task.py`,
`test_null_space_posture_task.py`, `test_pink_ik_components.py`: pass.
When these files run in one process, 3
`test_action_gravity_compensation_with_migrated_robot_configs[...GR1T2_HIGH_PD_CFG]`
cases fail on `develop` and on this branch alike; they pass when run on
their own.
- `test_controller_utils.py` (22), `test_differential_ik.py` (40),
`test_operational_space.py` (47), `test_pink_ik.py` (19 passed, 1
skipped): pass.
- `test_newton_actuators_newton.py` (38) and
`test_newton_actuators_physx.py` (35): pass.
- `ruff check` and `ruff format` are clean.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the `pre-commit` checks 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

## Release backport

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

(cherry picked from commit 85dad89)
StafaH added a commit that referenced this pull request Sep 28, 2026
# Description

Part 13 of the split of #7949. It cleans up the asset and sensor base
classes, the ray casters and camera, and a few device, marker, UI, and
visualizer helpers. It changes no public API. The deprecation-warning
refactor from #7949 is not included.

- **Asset / sensor base:**
- `AssetBase` and `SensorBase` now clear their debug-vis callback
through one `_clear_debug_vis_handle()` helper. It replaces three copies
of the same code in each class.
- `AssetBase.num_instances` and `AssetBase.data` now `raise
NotImplementedError` instead of returning it.
- Removed the pass-through `__init__` methods from the base cable,
deformable, rigid object, frame transformer, IMU, joint wrench, and PVA
classes.
- Removed the no-op `_invalidate_initialize_callback` overrides from the
contact sensor and frame transformer bases. This drops the stale TODO in
the contact sensor override.
- **Camera:** positions, orientations, eyes, and targets now go through
one `_as_device_tensor()` helper. `env_ids` handling is unchanged.
- **Ray casters:**
- The multi-mesh ray caster finds the rigid-body ancestor with
`sim_utils.get_first_matching_ancestor_prim`.
  - Inlined single-use kernel-argument locals.
  - Simplified the debug-vis code.
- Removed an unreachable "No meshes found" check. The loop already
raises for an invalid path, and only one mesh path is allowed.
  - Fixed the `frame` return annotation (`torch.Tensor`).
- **Devices:**
- Fixed the gamepad and keyboard `__init__` docstrings, which listed
parameters that don't exist.
  - Simplified the Haply force clipping.
- **Markers / UI / visualizers:**
  - Device moves are done in one expression.
- Added a `_has_implementation` helper and fixed docstrings and a typo.
  - The env-camera regex is precompiled.
  - Simplified how the live-plot source list is built.
- **`isaaclab/__init__.py`:** `pip_prebundle` is folded into the
fragment tuple, and one partition helper is shared by `sys.path` and
`PYTHONPATH`.

Small behavior notes:
- `SensorBase.__init__` now sets its callback and debug-vis handles to
`None` before anything that can fail, so `__del__` no longer raises
`AttributeError` when construction fails early (e.g. in
`validate(cfg)`).
- `Se2SpaceMouse` sets `_thread = None` first and `__del__` joins it
only when it was started, so a failed construction (e.g. no device
found) no longer raises in `__del__`.
- The Haply WebSocket receive-loop error is reported with `logger.error`
instead of `print`.

## Type of change

- Refactor, plus small teardown robustness fixes (see the behavior
notes)

## Verification

- Equivalence scripts comparing develop and this branch, with seeded
random inputs:
- Prebundle path demotion (2000 `sys.path` / `PYTHONPATH` cases):
identical.
- Haply force selection and clipping (1000 cases, CPU and CUDA):
identical.
- Camera array-like conversion (numpy, lists, tensors; CPU and CUDA):
bitwise identical, with the same dtype, device, and shape.
- Tests, all passed:
- Sensors: `test_sensor_base`, `test_sensor_destructors`,
`test_ray_caster_patterns`, `test_ray_caster_kernels`,
`test_ray_caster_sensor`, `test_ray_caster_camera`,
`test_multi_mesh_ray_caster`, `test_multi_mesh_ray_caster_camera`,
`test_camera_pose_write_across_backends`.
  - Devices: `test_device_constructors`.
  - Markers: `test_visualization_markers`, `test_vis_marker_registry`.
  - Visualizers: `test_visualizer`.
- Assets: `test_articulation_iface`, `test_rigid_object_iface`,
`test_rigid_object_collection_iface`.

## 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/<package>/changelog.d/` for each changed package (see
[Changelog](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html#changelog))
- [x] If this is a user-visible change, the fragment clearly describes
it

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 28, 2026
# Description

Part 13 of the split of #7949. It cleans up the asset and sensor base
classes, the ray casters and camera, and a few device, marker, UI, and
visualizer helpers. It changes no public API. The deprecation-warning
refactor from #7949 is not included.

- **Asset / sensor base:**
- `AssetBase` and `SensorBase` now clear their debug-vis callback
through one `_clear_debug_vis_handle()` helper. It replaces three copies
of the same code in each class.
- `AssetBase.num_instances` and `AssetBase.data` now `raise
NotImplementedError` instead of returning it.
- Removed the pass-through `__init__` methods from the base cable,
deformable, rigid object, frame transformer, IMU, joint wrench, and PVA
classes.
- Removed the no-op `_invalidate_initialize_callback` overrides from the
contact sensor and frame transformer bases. This drops the stale TODO in
the contact sensor override.
- **Camera:** positions, orientations, eyes, and targets now go through
one `_as_device_tensor()` helper. `env_ids` handling is unchanged.
- **Ray casters:**
- The multi-mesh ray caster finds the rigid-body ancestor with
`sim_utils.get_first_matching_ancestor_prim`.
  - Inlined single-use kernel-argument locals.
  - Simplified the debug-vis code.
- Removed an unreachable "No meshes found" check. The loop already
raises for an invalid path, and only one mesh path is allowed.
  - Fixed the `frame` return annotation (`torch.Tensor`).
- **Devices:**
- Fixed the gamepad and keyboard `__init__` docstrings, which listed
parameters that don't exist.
  - Simplified the Haply force clipping.
- **Markers / UI / visualizers:**
  - Device moves are done in one expression.
- Added a `_has_implementation` helper and fixed docstrings and a typo.
  - The env-camera regex is precompiled.
  - Simplified how the live-plot source list is built.
- **`isaaclab/__init__.py`:** `pip_prebundle` is folded into the
fragment tuple, and one partition helper is shared by `sys.path` and
`PYTHONPATH`.

Small behavior notes:
- `SensorBase.__init__` now sets its callback and debug-vis handles to
`None` before anything that can fail, so `__del__` no longer raises
`AttributeError` when construction fails early (e.g. in
`validate(cfg)`).
- `Se2SpaceMouse` sets `_thread = None` first and `__del__` joins it
only when it was started, so a failed construction (e.g. no device
found) no longer raises in `__del__`.
- The Haply WebSocket receive-loop error is reported with `logger.error`
instead of `print`.

## Type of change

- Refactor, plus small teardown robustness fixes (see the behavior
notes)

## Verification

- Equivalence scripts comparing develop and this branch, with seeded
random inputs:
- Prebundle path demotion (2000 `sys.path` / `PYTHONPATH` cases):
identical.
- Haply force selection and clipping (1000 cases, CPU and CUDA):
identical.
- Camera array-like conversion (numpy, lists, tensors; CPU and CUDA):
bitwise identical, with the same dtype, device, and shape.
- Tests, all passed:
- Sensors: `test_sensor_base`, `test_sensor_destructors`,
`test_ray_caster_patterns`, `test_ray_caster_kernels`,
`test_ray_caster_sensor`, `test_ray_caster_camera`,
`test_multi_mesh_ray_caster`, `test_multi_mesh_ray_caster_camera`,
`test_camera_pose_write_across_backends`.
  - Devices: `test_device_constructors`.
  - Markers: `test_visualization_markers`, `test_vis_marker_registry`.
  - Visualizers: `test_visualizer`.
- Assets: `test_articulation_iface`, `test_rigid_object_iface`,
`test_rigid_object_collection_iface`.

## 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/<package>/changelog.d/` for each changed package (see
[Changelog](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html#changelog))
- [x] If this is a user-visible change, the fragment clearly describes
it

## Release backport

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

(cherry picked from commit 2d6ebcc)
StafaH added a commit that referenced this pull request Sep 28, 2026
# Description

Part 14 of the split of #7949. This PR cleans up sim authoring: the
schema writers in `isaaclab.sim.schemas`, the spawners, and the mesh
converter. It is rebased onto the current `develop` and ports only the
parts of #7949 that still apply there. The authored USD is unchanged,
and no public API changes.

**Spawners and mesh converter**
- `spawners.utils` (renamed from `spawners._utils`, see below) adds a
helper:
- `apply_schema_props` writes a spawner schema slot. It sends a fragment
mapping to the fragment writer, one entry at a time and anchored at the
spawned prim, and sends a legacy cfg to the legacy writer. The mesh and
shape spawners, `spawn_from_mesh`, and `MeshConverter` repeated this
branch for their collision, mass, and rigid-body slots; they now call
the helper.
- Material paths are resolved inline at each call site (absolute paths
are kept; relative names go under the spawned prim), replacing
`from_files._resolve_material_path`.
- Existing-prim checks are left to `create_prim`, which already raises
the same `ValueError`. The spawner bodies are shorter, and
`spawn_geom_from_prim_type` / `_spawn_mesh_geom_from_mesh` return the
prim they create.
- Mesh spawners share `_axis_transform` for the cylinder, capsule, and
cone axis rotation.
- Light, sensor, ground plane, and multi-USD spawners:
  - The ground plane hides its light with `set_prim_visibility`.
- `spawn_multi_usd_file` builds `MultiAssetSpawnerCfg` in one call and
no longer runs a `hasattr` check that was always true.
- `AssetConverterBase` has a shorter USD-extension and hash-file check,
and writes the `config.yaml` generation stamp with a single
`datetime.now()` call. The stamp format is the same.

**Schema writers**
- `apply_rigid_body_properties`, `apply_collision_properties`, and
`apply_mass_properties` now share `_apply_api_fragments`. Target
matching, `create_if_missing`, the zero-target warning, and result
aggregation are unchanged.
- The joint-drive writers share `_write_drive_attributes`, which
converts angular stiffness and damping from per-radian to per-degree and
maps `drive_type` to the USD `type` attribute. It is used by
`apply_drive`, `_ensure_drive_exists`, `apply_joint_drive_properties`,
and `modify_joint_drive_properties`. Joint-type detection reuses
`drive_instance_name`, including in `schemas_actuators`.
- Other shared helpers:
- `_write_mesh_approximation` writes and validates the
`physics:approximation` token.
- `_tetrahedralize_surface` holds the pytetwild call and the tet-winding
fix, moved out of `define_deformable_body_properties`.
- Smaller cleanups:
  - `activate_contact_sensors` counts descendants with `Usd.PrimRange`.
- `schemas_actuators` uses `to_camel_case` instead of a private
camel-case regex.
- Redundant `pass` statements are removed from the fragment marker
classes.
- Fragment appliers are called directly as `cfg.func(cfg, prim_path,
stage)`. `@configclass` already turns the `func` import string into a
callable `ResolvableString`, so the `callable(...) else
string_to_callable(...)` fallback (four schema writers and the
physics-material spawner) never ran.

**Reflection**
- Replaced avoidable `getattr`/`setattr`/`hasattr` with direct attribute
access or an `isinstance` check wherever the attribute is always defined
for the configs that reach that code (actuator authoring, the USD-file
and shape spawners, the camera spawner's intrinsics, the fragment
annotation lookup). The remaining uses are dynamic by design: iterating
dataclass fields, the deprecated alias forwarding, optional class
metadata, and mixed config types in the multi-asset wrapper.

**No underscore module names or cross-file private helpers in core**
- Renamed the underscore modules: `sim/spawners/_utils.py` → `utils.py`,
`sim/schemas/_backend_hooks.py` → `backend_hooks.py`,
`actuators/_compat.py` → `actuator_compat.py`, `benchmark/_cli.py` →
`cli.py`, `cloner/_fabric_notices.py` → `fabric_notices.py`,
`utils/_device.py` → `device.py`. All importers in `isaaclab`,
`isaaclab_physx`, `isaaclab_newton`, `isaaclab_ov`, the benchmark
scripts, tests, and docs are updated.
- Dropped the `_` prefix from module-level functions used from other
files: `limits_equal`, `resolve_limit_aliases`, `skip_joint_drive`,
`articulation_root_companion_namespace`, `apply_namespaced_schemas`,
`drive_instance_name`, `validate_newton_native_actuator_cfgs`,
`author_actuator_prims`, `resave_checkpoint_with_metadata`,
`deprecate_field_alias`, `deprecated_schema_cfg`, `spawn_from_usd_file`,
`spawn_geom_from_prim_type`. They are not added to the package exports.

**Not ported from #7949**
- The forwarding-shim refactors in `schemas/__init__.py` and
`schemas_cfg.py`, the `usd_api` / `physx_api` deprecation properties,
and the empty `_usd_*` metadata on deprecated cfgs. These are
deprecation-only and will be removed.
- The `_OVERRIDABLE_PROPS` constant in the wrappers, a single-use
constant.
- The import-only edits. `develop` already uses relative imports.

## Type of change

- Refactor (no functional change). The only visible difference is that
the `ValueError` for an unsupported deformable type is now one line,
instead of a triple-quoted string with embedded indentation.

## Verification

- USD authoring equivalence, comparing `develop` sources with this
branch in Kit, one fresh stage per case. All 57 cases produce identical
exported USDA, return values, and raised errors:
- Sphere, cuboid, cylinder, capsule, and cone shapes; and sphere,
cuboid, cylinder, capsule, cone, and rectangle meshes. Each is spawned
plain, with legacy cfgs, and with fragments (including dict targets and
absolute material paths).
- The cable spawner, `MeshFileCfg` from a trimesh object and from an
`.obj` file, and all five lights.
  - Pinhole and fisheye cameras, and the sensor frame.
- `UsdFileCfg` with legacy cfgs and with fragments (articulation root,
joint drives, contact sensors, semantics, materials), the
compliant-contact spawner, and a ground plane asset.
- `MultiAssetSpawnerCfg` and `MultiUsdFileCfg`, and a surface
deformable.
- The legacy `define_`/`modify_` writers and the fragment `apply_*`
writers, including `ensure_drives_exist`, the no-target case, mesh
collision with an invalid approximation name, and fixed tendons.
- A `MeshConverter` run with collision, mesh-collision, mass, and rigid
props and `make_instanceable`, comparing the generated USD layers and
`config.yaml`.
- Tests, run one file at a time; all pass:
- Spawners: `test_spawn_shapes`, `test_spawn_meshes`,
`test_spawn_lights`, `test_spawn_sensors`, `test_spawn_from_files`,
`test_spawn_wrappers`, `test_spawn_cable`, `test_spawn_materials`,
`test_default_ground_plane`, `test_visual_materials_kitless`.
- Schemas: `test_schemas`, `test_schemas_deprecation`,
`test_schemas_shim`, `test_schemas_kitless_fixed_joint`,
`test_schema_fragments`, `test_schema_fragment_parity`,
`test_schema_writer_nested_targets`, `test_joint_drive_fragments`,
`test_collision_fragments`, `test_mass_fragments`,
`test_mesh_collision_fragments`, `test_articulation_fragments`,
`test_material_fragments`, `test_tendon_fragments`,
`test_tendon_fragments_codeless`, `test_deformable_backend_split`.
  - Converter: `test_mesh_converter`.
- Actuator authoring: `source/isaaclab/test/actuators`,
`test_newton_actuator_manager_authoring`,
`test_newton_actuators_newton`, `test_newton_actuators_physx`.
- After the renames, reflection pass, and review fixes, the 57-case USD
comparison was rerun against the latest `develop` (0 differences), and
the spawner, schema, fragment, converter, cloner (`isaaclab` and
`isaaclab_physx`), benchmark CLI, device, Newton schema, and actuator
authoring tests were rerun; all pass. Every renamed module and its
importers in `isaaclab_physx`, `isaaclab_newton`, and `isaaclab_ov`
import cleanly.
- One-line helpers are kept inline rather than wrapped in functions
(e.g. the drive get-or-apply, the passive-drive check, the
dataclass-field dict, material paths).
- After merging the latest `develop` (including #8102), the tests above
were rerun and pass. `isaaclab_physx/test/sim/test_spawn_meshes.py` was
run with the `tetrahedralization` extra, which covers
`_tetrahedralize_surface`; it passes on this branch and on `develop`.
- `ruff check` and `ruff format` are clean.

## 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/<package>/changelog.d/` for each changed package (see
[Changelog](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html#changelog))
- [x] If this is a user-visible change, the fragment clearly describes
it


## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 28, 2026
# Description

Part 14 of the split of #7949. This PR cleans up sim authoring: the
schema writers in `isaaclab.sim.schemas`, the spawners, and the mesh
converter. It is rebased onto the current `develop` and ports only the
parts of #7949 that still apply there. The authored USD is unchanged,
and no public API changes.

**Spawners and mesh converter**
- `spawners.utils` (renamed from `spawners._utils`, see below) adds a
helper:
- `apply_schema_props` writes a spawner schema slot. It sends a fragment
mapping to the fragment writer, one entry at a time and anchored at the
spawned prim, and sends a legacy cfg to the legacy writer. The mesh and
shape spawners, `spawn_from_mesh`, and `MeshConverter` repeated this
branch for their collision, mass, and rigid-body slots; they now call
the helper.
- Material paths are resolved inline at each call site (absolute paths
are kept; relative names go under the spawned prim), replacing
`from_files._resolve_material_path`.
- Existing-prim checks are left to `create_prim`, which already raises
the same `ValueError`. The spawner bodies are shorter, and
`spawn_geom_from_prim_type` / `_spawn_mesh_geom_from_mesh` return the
prim they create.
- Mesh spawners share `_axis_transform` for the cylinder, capsule, and
cone axis rotation.
- Light, sensor, ground plane, and multi-USD spawners:
  - The ground plane hides its light with `set_prim_visibility`.
- `spawn_multi_usd_file` builds `MultiAssetSpawnerCfg` in one call and
no longer runs a `hasattr` check that was always true.
- `AssetConverterBase` has a shorter USD-extension and hash-file check,
and writes the `config.yaml` generation stamp with a single
`datetime.now()` call. The stamp format is the same.

**Schema writers**
- `apply_rigid_body_properties`, `apply_collision_properties`, and
`apply_mass_properties` now share `_apply_api_fragments`. Target
matching, `create_if_missing`, the zero-target warning, and result
aggregation are unchanged.
- The joint-drive writers share `_write_drive_attributes`, which
converts angular stiffness and damping from per-radian to per-degree and
maps `drive_type` to the USD `type` attribute. It is used by
`apply_drive`, `_ensure_drive_exists`, `apply_joint_drive_properties`,
and `modify_joint_drive_properties`. Joint-type detection reuses
`drive_instance_name`, including in `schemas_actuators`.
- Other shared helpers:
- `_write_mesh_approximation` writes and validates the
`physics:approximation` token.
- `_tetrahedralize_surface` holds the pytetwild call and the tet-winding
fix, moved out of `define_deformable_body_properties`.
- Smaller cleanups:
  - `activate_contact_sensors` counts descendants with `Usd.PrimRange`.
- `schemas_actuators` uses `to_camel_case` instead of a private
camel-case regex.
- Redundant `pass` statements are removed from the fragment marker
classes.
- Fragment appliers are called directly as `cfg.func(cfg, prim_path,
stage)`. `@configclass` already turns the `func` import string into a
callable `ResolvableString`, so the `callable(...) else
string_to_callable(...)` fallback (four schema writers and the
physics-material spawner) never ran.

**Reflection**
- Replaced avoidable `getattr`/`setattr`/`hasattr` with direct attribute
access or an `isinstance` check wherever the attribute is always defined
for the configs that reach that code (actuator authoring, the USD-file
and shape spawners, the camera spawner's intrinsics, the fragment
annotation lookup). The remaining uses are dynamic by design: iterating
dataclass fields, the deprecated alias forwarding, optional class
metadata, and mixed config types in the multi-asset wrapper.

**No underscore module names or cross-file private helpers in core**
- Renamed the underscore modules: `sim/spawners/_utils.py` → `utils.py`,
`sim/schemas/_backend_hooks.py` → `backend_hooks.py`,
`actuators/_compat.py` → `actuator_compat.py`, `benchmark/_cli.py` →
`cli.py`, `cloner/_fabric_notices.py` → `fabric_notices.py`,
`utils/_device.py` → `device.py`. All importers in `isaaclab`,
`isaaclab_physx`, `isaaclab_newton`, `isaaclab_ov`, the benchmark
scripts, tests, and docs are updated.
- Dropped the `_` prefix from module-level functions used from other
files: `limits_equal`, `resolve_limit_aliases`, `skip_joint_drive`,
`articulation_root_companion_namespace`, `apply_namespaced_schemas`,
`drive_instance_name`, `validate_newton_native_actuator_cfgs`,
`author_actuator_prims`, `resave_checkpoint_with_metadata`,
`deprecate_field_alias`, `deprecated_schema_cfg`, `spawn_from_usd_file`,
`spawn_geom_from_prim_type`. They are not added to the package exports.

**Not ported from #7949**
- The forwarding-shim refactors in `schemas/__init__.py` and
`schemas_cfg.py`, the `usd_api` / `physx_api` deprecation properties,
and the empty `_usd_*` metadata on deprecated cfgs. These are
deprecation-only and will be removed.
- The `_OVERRIDABLE_PROPS` constant in the wrappers, a single-use
constant.
- The import-only edits. `develop` already uses relative imports.

## Type of change

- Refactor (no functional change). The only visible difference is that
the `ValueError` for an unsupported deformable type is now one line,
instead of a triple-quoted string with embedded indentation.

## Verification

- USD authoring equivalence, comparing `develop` sources with this
branch in Kit, one fresh stage per case. All 57 cases produce identical
exported USDA, return values, and raised errors:
- Sphere, cuboid, cylinder, capsule, and cone shapes; and sphere,
cuboid, cylinder, capsule, cone, and rectangle meshes. Each is spawned
plain, with legacy cfgs, and with fragments (including dict targets and
absolute material paths).
- The cable spawner, `MeshFileCfg` from a trimesh object and from an
`.obj` file, and all five lights.
  - Pinhole and fisheye cameras, and the sensor frame.
- `UsdFileCfg` with legacy cfgs and with fragments (articulation root,
joint drives, contact sensors, semantics, materials), the
compliant-contact spawner, and a ground plane asset.
- `MultiAssetSpawnerCfg` and `MultiUsdFileCfg`, and a surface
deformable.
- The legacy `define_`/`modify_` writers and the fragment `apply_*`
writers, including `ensure_drives_exist`, the no-target case, mesh
collision with an invalid approximation name, and fixed tendons.
- A `MeshConverter` run with collision, mesh-collision, mass, and rigid
props and `make_instanceable`, comparing the generated USD layers and
`config.yaml`.
- Tests, run one file at a time; all pass:
- Spawners: `test_spawn_shapes`, `test_spawn_meshes`,
`test_spawn_lights`, `test_spawn_sensors`, `test_spawn_from_files`,
`test_spawn_wrappers`, `test_spawn_cable`, `test_spawn_materials`,
`test_default_ground_plane`, `test_visual_materials_kitless`.
- Schemas: `test_schemas`, `test_schemas_deprecation`,
`test_schemas_shim`, `test_schemas_kitless_fixed_joint`,
`test_schema_fragments`, `test_schema_fragment_parity`,
`test_schema_writer_nested_targets`, `test_joint_drive_fragments`,
`test_collision_fragments`, `test_mass_fragments`,
`test_mesh_collision_fragments`, `test_articulation_fragments`,
`test_material_fragments`, `test_tendon_fragments`,
`test_tendon_fragments_codeless`, `test_deformable_backend_split`.
  - Converter: `test_mesh_converter`.
- Actuator authoring: `source/isaaclab/test/actuators`,
`test_newton_actuator_manager_authoring`,
`test_newton_actuators_newton`, `test_newton_actuators_physx`.
- After the renames, reflection pass, and review fixes, the 57-case USD
comparison was rerun against the latest `develop` (0 differences), and
the spawner, schema, fragment, converter, cloner (`isaaclab` and
`isaaclab_physx`), benchmark CLI, device, Newton schema, and actuator
authoring tests were rerun; all pass. Every renamed module and its
importers in `isaaclab_physx`, `isaaclab_newton`, and `isaaclab_ov`
import cleanly.
- One-line helpers are kept inline rather than wrapped in functions
(e.g. the drive get-or-apply, the passive-drive check, the
dataclass-field dict, material paths).
- After merging the latest `develop` (including #8102), the tests above
were rerun and pass. `isaaclab_physx/test/sim/test_spawn_meshes.py` was
run with the `tetrahedralization` extra, which covers
`_tetrahedralize_surface`; it passes on this branch and on `develop`.
- `ruff check` and `ruff format` are clean.

## 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/<package>/changelog.d/` for each changed package (see
[Changelog](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html#changelog))
- [x] If this is a user-visible change, the fragment clearly describes
it


## Release backport

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

(cherry picked from commit d11f811)
AntoineRichard pushed a commit that referenced this pull request Oct 1, 2026
# Description

Part 15 of the split of #7949. It cleans up the simulation context, the
USD prim, stage, query, semantics and transform utilities, and the USD
frame view. It changes no public API or behavior. Every kept hunk was
checked against `develop` for identical outputs and no slowdown; hunks
that failed either check were dropped.

- **`SimulationContext`:**
- The three copies of "normalize `cfg.visualizer_cfgs` to a list" now
share `_configured_visualizer_cfgs()`.
- Function-local `importlib`/`warnings` imports moved to module level,
and `getattr(mod, "KitVisualizerCfg")` became `mod.KitVisualizerCfg`.
- Simplified the stage-clearing predicate and the closed/not-running
visualizer log (the messages are unchanged).
- Completed the truncated `_physics_step_count` comment and added a
docstring to `get_scene_data_provider`.
- **`sim.utils.transforms`:**
- `standardize_xform_ops` sets up the translate/orient/scale ops in one
loop. Existing ops keep their precision and missing ones are created as
double, as before.
- The canonical op order is a module constant shared with
`validate_standard_xform_ops`.
- `resolve_prim_pose`, `resolve_prim_scale` and
`convert_world_pose_to_local` are shorter, with the frame-convention
comments kept.
- **`sim.utils.semantics`:** `add_labels`, `remove_labels`,
`check_missing_labels` and `count_total_labels` are simplified.
- **`sim.utils.prims`:**
  - The spawn wrapper uses `set_prim_visibility`.
- `bind_visual_material` and `bind_physics_material` pick the
binding-strength token with an inline conditional.
  - Simplified `change_prim_property` and `get_usd_references`.
- **`sim.utils.stage`, `sim.utils.queries`,
`sim.utils.newton_model_utils`:**
- `_is_prim_deletable`, `clear_stage`, `get_current_stage`, the
breadth-first child searches and `find_global_fixed_joint_prim` are
shorter.
- Removed a redundant `None` check around `_coerce_color`, which already
handles `None`.
- **`UsdFrameView`:**
  - World and local pose reads share `_poses_from_transforms()`.
  - The scale writer uses combined indexing (`scales_np[idx, 0]`).
- **Reflection:** replaced 12 avoidable `getattr`/`hasattr` calls with
direct attribute access: `visualizer_type`, `max_visible_envs` and
`enable_live_plots` are fields on `VisualizerCfg`,
`default_visualizer_cfg` on `SimulationCfg`, and `UsdFrameView` now
initializes `_prim_paths = None` instead of checking `hasattr`. The
remaining uses are dynamic by design (thread-local stage state,
dataclass-field copying, USD `Create{X}Attr` lookups, optional
visualizer-package fields, duck typing on Newton builders and
array-likes).
- **Cross-file helpers:** `resolve_physics_cfg` (`simulation_context`)
and `to_tuple` (`sim.utils.prims`) drop their `_` prefix because other
files use them.

Not ported from #7949:
- Deprecation-only changes: the forwarding shim in `sim/__init__.py`.
- Import-only edits that would undo `develop`'s relative imports.
- Removing the typed `FrameView.__new__`, which matches the other
backend factories.
- `delete_prim` no longer inserting the stage into the `StageCache`: an
observable side effect.
- Dropping the `logger.error` before the `TypeError` in
`safe_set_attribute_on_usd_schema`.
- Always calling `MaterialBindingAPI.Apply` in `bind_physics_material`:
it could author an extra API schema.
- Changing the `bind_physics_material` error message.
- Removing the `None` guard in `register_interactive_scene`: tests pass
`None` through it.
- `Gf.Vec3d(*scale)` in `standardize_xform_ops`: `Gf.Vec3d(scale)` also
accepts other inputs.
- The Newton color-replacement rewrite, because `develop` has since
added timing around it.
- Hunks that measured slower than `develop`: world-scale reads and a
shared matrix-scale helper.

## Type of change

- Refactor (no functional change)

## Verification

- **Develop vs this branch** (the same script runs against each source
tree with a fixed seed): **659 outputs, 0 differences** (rerun against
the latest `develop` after the reflection and rename changes), compared
exactly (dtype, shape and bytes for arrays; `float.hex` for floats).
Covered:
- `standardize_xform_ops`, `validate_standard_xform_ops`,
`resolve_prim_pose` (world, prim-relative and root-relative),
`resolve_prim_scale` and `convert_world_pose_to_local` on 60 prims. The
prims cover float and double precision, out-of-order ops, matrix ops,
`unitsResolve`, reset-xform-stack and no ops.
- `UsdFrameView` world and local poses and scales (all and selected
indices) on 512 nested prims, before and after a world-space scale
write.
- Semantics: add, overwrite, merge, remove (incl. descendants),
missing-label and count functions.
- Queries: fixed-joint detection (enabled and disabled joints, generic
`Joint` schema) and first/all/depth-limited child searches.
- Prims: `change_prim_property` (missing, create, clear, invalid prim),
visual and physics material binding, `create_prim` with world and local
poses, `get_usd_references`.
- Stage: `_is_prim_deletable`, `clear_stage` with and without a
predicate, `delete_prim`.
  - Newton shader color lookup.
- The exported USDA of every stage, and all 56 log records, are
identical.
- **Performance** (latest `develop`, median of 5 alternating runs; USD
frame view with 512 prims):

  | Path | develop [us] | PR [us] | ratio |
  |---|---|---|---|
  | `standardize_xform_ops` | 35.6 | 32.7 | 0.92 |
  | `resolve_prim_pose` | 22.1 | 21.7 | 0.98 |
  | `UsdFrameView` world-space `set_scales` | 6497.0 | 6408.3 | 0.99 |
  | `UsdFrameView.get_world_poses` | 2850.7 | 2831.5 | 0.99 |
  | `UsdFrameView.get_local_poses` | 1867.8 | 1878.1 | 1.01 |
  | `UsdFrameView.get_local_scales` | 1752.8 | 1698.2 | 0.97 |
  | `UsdFrameView.get_world_scales` | 4309.4 | 4216.4 | 0.98 |

- **Tests**, all passing:
- `test_utils_transforms` (28), `test_utils_prims` (19),
`test_utils_queries` (11), `test_utils_semantics` (6),
`test_utils_stage` (15)
  - `test_views_xform_prim` (45), `test_newton_model_utils` (13)
- `test_simulation_context` (30), `test_simulation_context_visualizers`
(44, run inside Kit), `test_simulation_stage_in_memory` (3)
- `ruff check` and `ruff format` are clean.

## 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/<package>/changelog.d/` for each changed package (see
[Changelog](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html#changelog))
- [x] If this is a user-visible change, the fragment clearly describes
it


## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
jnskkmhr added a commit to jnskkmhr/IsaacLab that referenced this pull request Oct 10, 2026
* [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 |
| ------ | ----- |
|
![Before](https://github.com/user-attachments/assets/eef5309e-6422-41a3-af43-c99a582532cb)
|
![After](https://github.com/user-attachments/assets/bdd742ab-9c81-4b44-9455-cb41b6760a73)
|


## 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…
@StafaH StafaH closed this Oct 10, 2026
@StafaH
StafaH deleted the cleanup/core-isaaclab branch October 10, 2026 19:43
@StafaH
StafaH restored the cleanup/core-isaaclab branch October 10, 2026 19:43
jnskkmhr added a commit to jnskkmhr/IsaacLab that referenced this pull request Oct 11, 2026
* 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 |
| ------ | ----- |
|
![Before](https://github.com/user-attachments/assets/eef5309e-6422-41a3-af43-c99a582532cb)
|
![After](https://github.com/user-attachments/assets/bdd742ab-9c81-4b44-9455-cb41b6760a73)
|


## 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…
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 <[email protected]>
Co-authored-by: Mustafa H <[email protected]>

(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 <[email protected]>

* [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 <[email protected]>

* [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 <[email protected]>

(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 <[email protected]>
Co-authored-by: Mustafa Haiderbhai <[email protected]>

(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 <[email protected]>

(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 <[email protected]>
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

infrastructure isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant