Skip to content

[DO NOT MERGE] Add articulation ordering controls - #6248

Closed
AntoineRichard wants to merge 108 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/articulation-ordering
Closed

AntoineRichard wants to merge 108 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/articulation-ordering

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Description

Adds major cross-backend articulation ordering support so public joint/body order can be kept independent from the active backend's native storage order.

This introduces optional ArticulationCfg.joint_ordering and ArticulationCfg.body_ordering controls, shared name-map utilities, and Warp reorder kernels. Newton, PhysX, and OVPhysX articulation data paths are wired to translate between public and backend order for reads and writes. Built-in symbolic conventions currently include physx and mjwarp, with automatic cross-backend name resolution.

Fixes # N/A

Type of change

  • New feature (non-breaking change which adds functionality)
  • Major change (cross-backend articulation API and data-path update; changelog fragments use .major.rst)

Screenshots

N/A. Validation included local playback videos for Anymal-D and Franka policies under alternate ordering settings.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (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

Test Plan

  • ./isaaclab.sh -p -m pytest source/isaaclab/test/assets/test_articulation_ordering.py source/isaaclab_newton/test/assets/test_articulation.py::test_mjwarp_ordering_resolver_matches_newton_backend_names -q -> 26 passed
  • ./isaaclab.sh -d -> documentation build succeeded; reported 6 warnings from docs/superpowers/plans/2026-06-23-articulation-ordering.md
  • ./isaaclab.sh -f -> all hooks passed
  • Trained Newton/MJWarp Anymal-D flat policy with 4096 envs for 300 iterations; replayed in Newton/PhysX ordering variants
  • Trained Newton/MJWarp Franka reach joint-position policy with 4096 envs for 300 iterations; replayed with default and PhysX articulation ordering

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Jun 23, 2026
@AntoineRichard
AntoineRichard force-pushed the antoiner/articulation-ordering branch 2 times, most recently from 5acf303 to 734deff Compare June 26, 2026 08:04
Add optional joint and body ordering conventions for articulation public APIs, with shared mapping utilities and Warp reorder kernels.

Wire the mapping through Newton, PhysX, and OVPhysX data read/write paths so policies can be trained and played across backend-specific orderings.

Add major-tier changelog fragments and regression coverage for explicit orderings, symbolic PhysX/MJWarp resolution, and reorder kernels.
Cache identity and ordering maps for hot write paths, collapse fused state and target writes into single launches, and keep joint property buffers synchronized between user and backend orderings.

Add focused CPU coverage for the ordering kernels and Newton joint-limit property writes.
Move ordering helpers to module-scope imports in BaseArticulation and let resolve_articulation_ordering_names resolve symbolic conventions directly from the articulation instance.
Move backend convention discovery helpers out of ordering.py into ordering_resolvers.py so ordering.py stays focused on the public ordering data model and map construction.
Use the public root_view and shared_metatype resolver contracts now that OVPhysX exposes the migrated articulation view. Also avoid storing one-shot OVPhysX binding handles and clean up ordering unit-test stubs so they do not leak into later tests.
Apply body ordering consistently to public per-body COM pose and acceleration reads across PhysX, OVPhysX, and Newton. Keep root-only computations on backend body index 0 so reordered public body arrays do not affect root state.

Add a reversed body-ordering regression covering public body quantities and root COM/link velocity invariance.
Reorder public dynamics matrices and generalized vectors when articulation joint or body ordering is active. Also invalidate Newton user-order state caches when simulation bindings are recreated.
Map symbolic convention joint names back to active-backend spellings when Newton multi-DoF names differ only by the per-DoF separator. This keeps explicit ordering validation strict while avoiding init failures for PhysX assets requesting MJWarp ordering.
Define the fixed-base root ordering contract and the backend boundary, cache, actuator, compatibility, and regression-test requirements needed to close the articulation ordering review.
Separate manual Panda permutation coverage from resolver validation and use a branching fixture plus ANYmal-D for convention-dependent integration checks.
Add map_joint_ids_to_backend as the sibling of the body index
translator so joint-side raw-view consumers stop hand-rolling the
ordering maps. Let backends declare the symbolic conventions their
native order satisfies through a class attribute instead of hardcoded
name sets in the core resolver, so a fourth backend can participate
without editing core. Declare the ordering kernel module's visibility
contract explicitly: the elementwise reorder family is public for
raw-view interop, everything else is an internal contract between core
and the backend packages. Add the missing module docstrings for the
ordering map and resolver modules.
Document the base articulation classes so the extension-contract
references resolve, enumerate the accepted ordering values including
the robot-schema convention, recommend the ordering preset helper for
Python configs with a warning that CLI overrides must set both fields,
note the fixed per-step Newton republish cost, add a tip for verifying
a resolved order against a checkpoint, and retarget the removed-kernel
migration guidance at the asset write APIs with the public reorder
family as the raw-view escape hatch.
@AntoineRichard

Copy link
Copy Markdown
Collaborator Author

This PR has been split into an independently reviewable stack — Articulation Reordering Parts 1–8: #6334, #6335, #6336, #6337, #6338, #6339, #6340, #6341 (drafts, in merge order, all cut from this branch's final tree after a develop sync). This PR stays open unchanged as the reference implementation until the stack lands.

@AntoineRichard AntoineRichard changed the title Add articulation ordering controls [DO NOT MERGE] Add articulation ordering controls Jul 3, 2026
AntoineRichard added a commit that referenced this pull request Jul 7, 2026
… utilities (#6334)

# Description

Moves the rigid object and rigid object collection interface test
factories into shared underscore-prefixed utility modules so later parts
can reuse them. Pure code movement with no behavior change and no
ordering content.

Part 1/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- **Part 1/8 (this PR)**: #6334 — Extract rigid object interface test
utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_rigid_object_iface.py` -> 1478 passed,
12 xfailed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_rigid_object_collection_iface.py` ->
1902 passed; the 7 failures + 636 errors are pre-existing on `develop`
in the local environment (OVPhysX 0.4.13 wheel vs the 0.5.x binding API
from #6314) — fail-set identical to the `develop` baseline
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
)


def _get_mjwarp_names_from_newton_usd_builder(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this called once?

AntoineRichard added a commit that referenced this pull request Jul 14, 2026
# Description

Introduces the public joint/body ordering machinery in `isaaclab` core:
the `ArticulationNameMap` type and builder, the ordering preset helper,
the Warp reorder kernels with an explicit visibility contract, the
symbolic convention resolvers (`physx`, `mjwarp`, `robot_schema`), the
`ArticulationCfg.joint_ordering`/`body_ordering` fields, the
`BaseArticulation`/`BaseArticulationData` plumbing that backends wire
into, and the API reference entries.

**Transitional semantics:** no backend consumes the machinery yet, so
configuring an ordering in this intermediate state is a silent no-op
until Parts 3/4/6 land. This is called out in the cfg field docstrings
and resolves quickly as the stack merges.

Part 2/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- **Part 2/8 (this PR)**: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p1...antoiner/articulation-reordering-p2).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering.py` -> 67 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering_kernels.py` -> 24
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
AntoineRichard added a commit that referenced this pull request Jul 15, 2026
# Description

Wires ordering into the Newton backend read/write paths. Non-identity
orderings register an unconditional post-step publish that reorders the
core state buffers inside the stepped (and CUDA-graph-captured) region,
keeping the documented Tier-1 capture-safety contract without Python
read guards; `NewtonManager` gains the matching
`register`/`unregister_post_step_callback` API. Actuator torque
telemetry reads live backend state through the ordering map. Also
carries the shared branching USD test fixture used by cross-backend
convention tests here and in later parts.

Part 3/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- **Part 3/8 (this PR)**: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p2...antoiner/articulation-reordering-p3).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_articulation_ordering_kernels.py`
-> 2 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_newton_actuators_newton.py` ->
76 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_articulation.py` -> 257 passed,
8 skipped, 1 xfailed
- [x] `./isaaclab.sh -f` -> all hooks pass
AntoineRichard added a commit that referenced this pull request Jul 17, 2026
# Description

Wires ordering into the PhysX backend read/write paths using the shared
kernels: fused user-and-backend target writes, lazily refreshed
timestamped `body_mass`/`body_inertia` (see the changelog `Changed`
entry for the semantics change vs develop), and ordering maps resolved
at initialization.

Part 4/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- **Part 4/8 (this PR)**: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p3...antoiner/articulation-reordering-p4).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_physx/test/assets/test_articulation.py` -> 239 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_physx/test/assets/test_newton_actuators_physx.py` -> 44
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
AntoineRichard added a commit that referenced this pull request Jul 21, 2026
… utilities (#6338)

# Description

Moves the articulation interface test factories into a shared utility
module mirroring Part 1's rigid object extraction, with ordering-aware
construction hooks used by Part 7's cross-backend suite.

Part 5/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- **Part 5/8 (this PR)**: #6338 — Extract articulation interface test
utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p4...antoiner/articulation-reordering-p5).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_iface.py` -> 4086 passed,
96 skipped, 32 xfailed (with Newton and PhysX wired, OVPhysX not yet —
exercises the unwired-backend identity path)
- [x] `./isaaclab.sh -f` -> all hooks pass
kellyguo11 added a commit that referenced this pull request Jul 28, 2026
# Description

Wires ordering into the OVPhysX backend read/write paths: fused
user-and-backend writes with persistent target staging separated from
transient applied-torque scratch, FK-aware body state refresh, and a
fused ordered joint acceleration kernel.

Part 6/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- **Part 6/8 (this PR)**: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p5...antoiner/articulation-reordering-p6).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] Mock-based coverage lands in Part 7 (233 passed there). The live
suite is blocked in the local environment: all 105 failures share the
single `PhysX.set_cpu_mode` AttributeError from the OVPhysX 0.4.13 wheel
vs #6314's manager code (develop shows the identical signature on its 99
pre-existing live tests); the same tests passed on the pre-sync
monolithic branch
- [x] CI with the 0.5.1 wheelhouse is the authoritative gate for this
part
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Co-authored-by: Kelly Guo <[email protected]>
AntoineRichard added a commit that referenced this pull request Jul 28, 2026
…sts (#6340)

# Description

Adds the shared interface test suite exercising ordering allocation,
write parity, partial writes, and property reordering uniformly across
PhysX, OVPhysX, and Newton through their mock views. Lands after all
three backend parts because present-but-unwired backends error rather
than skip.

Part 7/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- **Part 7/8 (this PR)**: #6340 — Cross-backend ordering interface tests
- Part 8/8: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p6...antoiner/articulation-reordering-p7).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering_iface.py` -> 233
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
kellyguo11 added a commit that referenced this pull request Jul 29, 2026
#6341)

# Description

Routes event terms through the asset's public index mapping
(`map_body_ids_to_backend`), fixes consumers that mixed public-order
indices with backend-order view arrays (Forge force sensor, Lee
controller inertia pairing), applies the factory/automate armature
inertia offsets through the asset API, and adds the sim-to-sim transfer
guide.

Part 8/8 of the series splitting #6248 into independently reviewable
units. #6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: #6334 — Extract rigid object interface test utilities
- Part 2/8: #6335 — Core ordering foundation
- Part 3/8: #6336 — Newton backend
- Part 4/8: #6337 — PhysX backend
- Part 5/8: #6338 — Extract articulation interface test utilities
- Part 6/8: #6339 — OVPhysX backend
- Part 7/8: #6340 — Cross-backend ordering interface tests
- **Part 8/8 (this PR)**: #6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p7...antoiner/articulation-reordering-p8).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/envs/test_articulation_ordering_events.py` -> 12
passed
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Co-authored-by: Kelly Guo <[email protected]>
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
… utilities (isaac-sim#6334)

# Description

Moves the rigid object and rigid object collection interface test
factories into shared underscore-prefixed utility modules so later parts
can reuse them. Pure code movement with no behavior change and no
ordering content.

Part 1/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- **Part 1/8 (this PR)**: isaac-sim#6334 — Extract rigid object interface test
utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_rigid_object_iface.py` -> 1478 passed,
12 xfailed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_rigid_object_collection_iface.py` ->
1902 passed; the 7 failures + 636 errors are pre-existing on `develop`
in the local environment (OVPhysX 0.4.13 wheel vs the 0.5.x binding API
from isaac-sim#6314) — fail-set identical to the `develop` baseline
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…#6335)

# Description

Introduces the public joint/body ordering machinery in `isaaclab` core:
the `ArticulationNameMap` type and builder, the ordering preset helper,
the Warp reorder kernels with an explicit visibility contract, the
symbolic convention resolvers (`physx`, `mjwarp`, `robot_schema`), the
`ArticulationCfg.joint_ordering`/`body_ordering` fields, the
`BaseArticulation`/`BaseArticulationData` plumbing that backends wire
into, and the API reference entries.

**Transitional semantics:** no backend consumes the machinery yet, so
configuring an ordering in this intermediate state is a silent no-op
until Parts 3/4/6 land. This is called out in the cfg field docstrings
and resolves quickly as the stack merges.

Part 2/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- **Part 2/8 (this PR)**: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p1...antoiner/articulation-reordering-p2).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering.py` -> 67 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering_kernels.py` -> 24
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Wires ordering into the Newton backend read/write paths. Non-identity
orderings register an unconditional post-step publish that reorders the
core state buffers inside the stepped (and CUDA-graph-captured) region,
keeping the documented Tier-1 capture-safety contract without Python
read guards; `NewtonManager` gains the matching
`register`/`unregister_post_step_callback` API. Actuator torque
telemetry reads live backend state through the ordering map. Also
carries the shared branching USD test fixture used by cross-backend
convention tests here and in later parts.

Part 3/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- **Part 3/8 (this PR)**: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p2...antoiner/articulation-reordering-p3).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_articulation_ordering_kernels.py`
-> 2 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_newton_actuators_newton.py` ->
76 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_newton/test/assets/test_articulation.py` -> 257 passed,
8 skipped, 1 xfailed
- [x] `./isaaclab.sh -f` -> all hooks pass
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Wires ordering into the PhysX backend read/write paths using the shared
kernels: fused user-and-backend target writes, lazily refreshed
timestamped `body_mass`/`body_inertia` (see the changelog `Changed`
entry for the semantics change vs develop), and ordering maps resolved
at initialization.

Part 4/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- **Part 4/8 (this PR)**: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p3...antoiner/articulation-reordering-p4).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_physx/test/assets/test_articulation.py` -> 239 passed
- [x] `./isaaclab.sh -p -m pytest
source/isaaclab_physx/test/assets/test_newton_actuators_physx.py` -> 44
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
… utilities (isaac-sim#6338)

# Description

Moves the articulation interface test factories into a shared utility
module mirroring Part 1's rigid object extraction, with ordering-aware
construction hooks used by Part 7's cross-backend suite.

Part 5/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- **Part 5/8 (this PR)**: isaac-sim#6338 — Extract articulation interface test
utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p4...antoiner/articulation-reordering-p5).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_iface.py` -> 4086 passed,
96 skipped, 32 xfailed (with Newton and PhysX wired, OVPhysX not yet —
exercises the unwired-backend identity path)
- [x] `./isaaclab.sh -f` -> all hooks pass
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Wires ordering into the OVPhysX backend read/write paths: fused
user-and-backend writes with persistent target staging separated from
transient applied-torque scratch, FK-aware body state refresh, and a
fused ordered joint acceleration kernel.

Part 6/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- **Part 6/8 (this PR)**: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p5...antoiner/articulation-reordering-p6).

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] Mock-based coverage lands in Part 7 (233 passed there). The live
suite is blocked in the local environment: all 105 failures share the
single `PhysX.set_cpu_mode` AttributeError from the OVPhysX 0.4.13 wheel
vs isaac-sim#6314's manager code (develop shows the identical signature on its 99
pre-existing live tests); the same tests passed on the pre-sync
monolithic branch
- [x] CI with the 0.5.1 wheelhouse is the authoritative gate for this
part
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Co-authored-by: Kelly Guo <[email protected]>
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…sts (isaac-sim#6340)

# Description

Adds the shared interface test suite exercising ordering allocation,
write parity, partial writes, and property reordering uniformly across
PhysX, OVPhysX, and Newton through their mock views. Lands after all
three backend parts because present-but-unwired backends error rather
than skip.

Part 7/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- **Part 7/8 (this PR)**: isaac-sim#6340 — Cross-backend ordering interface tests
- Part 8/8: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p6...antoiner/articulation-reordering-p7).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/assets/test_articulation_ordering_iface.py` -> 233
passed
- [x] `./isaaclab.sh -f` -> all hooks pass
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
isaac-sim#6341)

# Description

Routes event terms through the asset's public index mapping
(`map_body_ids_to_backend`), fixes consumers that mixed public-order
indices with backend-order view arrays (Forge force sensor, Lee
controller inertia pairing), applies the factory/automate armature
inertia offsets through the asset API, and adds the sim-to-sim transfer
guide.

Part 8/8 of the series splitting isaac-sim#6248 into independently reviewable
units. isaac-sim#6248 remains open, untouched, as the reference implementation;
this stack was cut from its final tree after a `develop` sync (Kamino
Core, Newton bump, OVPhysX 0.5.1).

## Stack

- Part 1/8: isaac-sim#6334 — Extract rigid object interface test utilities
- Part 2/8: isaac-sim#6335 — Core ordering foundation
- Part 3/8: isaac-sim#6336 — Newton backend
- Part 4/8: isaac-sim#6337 — PhysX backend
- Part 5/8: isaac-sim#6338 — Extract articulation interface test utilities
- Part 6/8: isaac-sim#6339 — OVPhysX backend
- Part 7/8: isaac-sim#6340 — Cross-backend ordering interface tests
- **Part 8/8 (this PR)**: isaac-sim#6341 — Events, consumers, and documentation

> [!NOTE]
> All parts target `develop`, so until the preceding parts merge this
PR's diff includes them. The true delta of this part is [this
compare](AntoineRichard/IsaacLab@antoiner/articulation-reordering-p7...antoiner/articulation-reordering-p8).

## Type of change

- Test/documentation/refactor 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 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] My name exists in `CONTRIBUTORS.md`

## Test Plan

- [x] `./isaaclab.sh -p -m pytest
source/isaaclab/test/envs/test_articulation_ordering_events.py` -> 12
passed
- [x] `./isaaclab.sh -f` -> all hooks pass

---------

Co-authored-by: Kelly Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants