Skip to content

Articulation Reordering Part 4/8: PhysX backend - #6337

Merged
AntoineRichard merged 24 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/articulation-reordering-p4
Jul 17, 2026
Merged

AntoineRichard merged 24 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/articulation-reordering-p4

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

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

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.

Type of change

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

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • 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
  • My name exists in CONTRIBUTORS.md

Test Plan

  • ./isaaclab.sh -p -m pytest source/isaaclab_physx/test/assets/test_articulation.py -> 239 passed
  • ./isaaclab.sh -p -m pytest source/isaaclab_physx/test/assets/test_newton_actuators_physx.py -> 44 passed
  • ./isaaclab.sh -f -> all hooks pass

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jul 3, 2026
@AntoineRichard
AntoineRichard force-pushed the antoiner/articulation-reordering-p4 branch from d07bc04 to 4291104 Compare July 3, 2026 14:20
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>
@AntoineRichard
AntoineRichard force-pushed the antoiner/articulation-reordering-p4 branch 7 times, most recently from eb41a17 to 3a90358 Compare July 13, 2026 16:13
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
Translate between public and backend order on the Newton read and
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
capture-safety contract without read guards; the manager gains the
matching register and unregister callback API. Actuator torque
telemetry reads live backend state through the ordering map. Also
carries the shared branching test fixture used by the cross-backend
convention tests in this and later parts. Part 3 of the articulation
reordering series.
The identity-ordering branches of write_data_to_sim copied the joint
targets into the sim-bound buffers through three or four separate
full-buffer assigns while the ordered branches used the fused gather
kernel. The asset-side joint map is an identity arange when no
ordering is configured, so both branches collapse into one
unconditional fused launch and the per-buffer assign helper goes away.

Buffer validation now runs once at the end of the ordering configure
step, which allocates every checked field; the per-call validations on
the sync and rebind paths were unreachable. Mark the torch-routed
actuator parameter writer for the upcoming actuator rework, document
why the wrench scatter stays a separate launch, and state that the
resolve and rebind seeds exist because the post-step publish only runs
inside a step.
The ordering core rework single-homed the joint and body ordering maps
on ArticulationData and removed the mirrored `_has_*` flags and
`_*_user_to_backend` maps, the `_cache_ordering_maps` machinery, the
`ArticulationNameMap` identity/name fields, and the dtype-suffixed
write-kernel overloads.

Repoint the Newton articulation and data classes to the new contracts:

- Read ordering presence via `data.joint_ordering` / `data.body_ordering`
  is-not-None checks; conditional sites dereference the map directly,
  while always-launch sites use the new `_*_user_to_backend_map()`
  helpers so in-graph publish and telemetry gathers keep a valid map.
- Configure backend staging through `_ordering_configure_backend_staging`
  and drop the deleted `_install_ordering_flags` call from the data
  override, which now reads the maps directly.
- Replace the dtype-suffixed overload launches with the new
  `write_*_user_to_backend_*` launch wrappers, and drop `.is_identity`
  branches since a non-None map always denotes a real permutation.
- Convert actuator joint indices to a Warp array before the write
  wrappers, which no longer accept torch tensors for selector arguments.

Adapt the Newton asset tests to assert through the single-homed ordering
maps.
Part 3 only adds a shared test fixture under isaaclab_physx
(articulation_ordering_branching.usda); test-only changes take a skip
fragment per the changelog policy.
The gather index passed to index_select when mapping backend-order
gain columns into user-order positions was named user_to_backend_tensor,
which obscured that it holds, for each user position, the backend column to
read. Rename it to backend_column_indices and add a one-line comment
describing the mapping so the reorder direction is self-evident.
The Jacobian body-row gather double-encoded the fixed-base root-row drop:
the shared base map builder shifted rows down by one to match the PhysX
source layout (which omits the root row), and the Newton gather kernel then
re-added a runtime link offset because Newton's source keeps every row.

Build the Newton row map directly in Newton's full-row layout (no shift)
via a Newton-specific builder, and always build it -- even under identity
ordering -- so the gather kernel indexes the body axis unconditionally.
The kernel's runtime link offset and body-ordering branch drop out,
leaving a single body-axis encoding owned by the map builder. The PhysX
base builder is left untouched.
The private _backend_num_shapes_per_body property lazily built the
backend-order shape-count cache with a hasattr guard and was returned
verbatim by the public backend_num_shapes_per_body. Fold the cache into
the public property, declare the cache attribute in _create_buffers like
the sibling caches (initialized to None, no hasattr lazy-init), and
delete the redundant private property. Public order via
num_shapes_per_body is unchanged.
Ordering state lives only on the joint_ordering / body_ordering maps,
so presence was re-derived as ... is not None at many call sites. Add
derived has_joint_ordering / has_body_ordering properties on
BaseArticulationData and adopt them across the Newton articulation and
articulation-data presence checks. Genuine map-object uses (which dereference
the map, not just test presence) are left untouched. No behavior change.
At a hot per-step write path that launches an ordering_kernels kernel
raw, add a comment recording the contract that distinguishes it from the
wrapper form: raw wp.launch on hot paths with Warp-native inputs, and the
ordering_kernels.write_* Python wrappers in the property setters where
torch-to-warp adaptation is needed first.
Route the PhysX Newton fast-path init through the new
NewtonActuatorAdapter.bind_articulation method, mirroring the Newton
backend: one call returns the initial gain snapshot, the implicit-DOF
mask, and the computed-effort view instead of the piecemeal
build_newton_actuator_defaults, build_implicit_dof_mask, and manual
computed-effort binding. Behavior is unchanged.
@AntoineRichard
AntoineRichard force-pushed the antoiner/articulation-reordering-p4 branch from 3fe69e4 to 29be234 Compare July 15, 2026 09:26
@AntoineRichard
AntoineRichard marked this pull request as ready for review July 15, 2026 13:11
@greptile-apps

greptile-apps Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR (Part 4/8 of the Articulation Reordering series) wires the PhysX backend into the ordering infrastructure introduced in earlier parts, enabling joint and body index remapping between the user-facing API and PhysX's native ordering. All read paths are updated to use timestamp-lazy TimestampedBuffer refreshes, and all write paths maintain dual user/backend staging buffers kept in sync via new shared Warp kernels.

  • Read paths (joint_pos, joint_vel, body_mass, body_inertia, Jacobian, mass matrix, gravity compensation) are fetched lazily once per simulation step via TimestampedBuffer, reordered with a gather kernel when an ordering is active, and aliased directly to the PhysX view when no ordering is needed.
  • Write paths (joint targets, joint state, body properties) scatter into a user-order buffer first, then reorder into a backend staging buffer before pushing to PhysX; partial writes pre-fetch the backend buffer to keep unmodified entries coherent.
  • ArticulationBinding dataclass in the Newton adapter consolidates actuator default construction and implicit-DOF mask building into a single bind_articulation call, replacing three separate calls at initialization time.

Confidence Score: 4/5

PR is safe to merge; no P0 or P1 defects found — only three P2 observations.

The change is large but well-structured: every read path has a timestamp guard, every write path keeps the public and backend buffers in sync, partial-write pre-fetches are in place, and the kernel convention is consistent throughout. Three P2 findings were noted — an unused but misleading variable assignment, an output aliasing pattern that is safe today but fragile against future flag changes, and a semantic shift from eager to lazy fetch. None affect correctness today.

articulation_data.py (Jacobian map assignment ~L2129) and articulation.py (aliased fourth output ~L267) warrant a second human read.

Important Files Changed

Filename Overview
source/isaaclab_physx/isaaclab_physx/assets/articulation/articulation.py Core PhysX articulation: wires ordering into body-wrench, joint-target, joint-state, and property write paths; renames joint_names/body_names to backend_joint_names/backend_body_names; removes old kernels in favour of shared ordering kernels.
source/isaaclab_physx/isaaclab_physx/assets/articulation/articulation_data.py Converts body_mass/body_inertia from eager-fetch to timestamp-lazy; adds _configure_ordering_buffers + _apply_ordering_maps_after_resolve; adds _refresh_joint_state_user/_get_joint_state_write_buffer helpers for ordered read/write paths.
source/isaaclab/isaaclab/assets/articulation/ordering_kernels.py Adds reorder_jacobian_backend_to_user, reorder_mass_matrix_backend_to_user, reorder_generalized_vector_backend_to_user kernels and Python launch wrappers; all gather kernels follow consistent dst_to_src convention.
source/isaaclab/isaaclab/assets/articulation/base_articulation_data.py Adds has_joint_ordering/has_body_ordering properties, _make_jacobian_body_user_to_backend, _ensure_body_com_pose_b_current, and noop base _apply_ordering_maps_after_resolve.
source/isaaclab_physx/isaaclab_physx/assets/articulation/kernels.py Removes write_joint_vel_data and write_joint_state_data kernels replaced by shared ordering kernels.
source/isaaclab_physx/isaaclab_physx/test/mock_interfaces/views/mock_articulation_view_warp.py Adds get_jacobians, get_generalized_mass_matrices, get_gravity_compensation_forces and set_mock_* helpers for test coverage of dynamics quantities.
source/isaaclab_newton/isaaclab_newton/actuators/adapter.py Adds ArticulationBinding frozen dataclass and bind_articulation method, consolidating formerly separate actuator default and implicit-DOF mask construction into one reusable call.

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant User as User Code
    participant Art as Articulation (PhysX)
    participant Data as ArticulationData
    participant Kern as ordering_kernels
    participant PhysX as PhysX View

    Note over User,PhysX: READ PATH (joint state)
    User->>Art: joint_pos (property)
    Art->>Data: _refresh_joint_pos()
    Data->>Data: "check timestamp < _sim_timestamp?"
    alt "stale & has_ordering"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: backend-order tensor
        Data->>Kern: reorder_2d_backend_to_user(src, user_to_backend, dst)
        Kern-->>Data: user-order buffer updated
        Data->>Data: "stamp timestamp = _sim_timestamp"
    else "stale & no ordering"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: alias as user buffer
    end
    Data-->>Art: _joint_pos (user-order)
    Art-->>User: joint_pos tensor

    Note over User,PhysX: WRITE PATH (joint targets)
    User->>Art: set_joint_effort_target(effort, joint_ids)
    Art->>Data: _get_joint_pos_write_buffer(require_current)
    alt "has_ordering & partial write"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: pre-fetch backend buffer
    end
    Art->>Art: scatter effort into user-order buffer
    alt has_ordering
        Art->>Kern: reorder_joint_targets_user_to_backend(user_buf, backend_to_user, backend_buf)
        Kern-->>Art: backend staging buffer ready
        Art->>PhysX: set_dof_actuation_forces(backend_buf)
    else no ordering
        Art->>PhysX: set_dof_actuation_forces(user_buf)
    end

    Note over User,PhysX: READ PATH (body mass, lazy)
    User->>Data: body_mass (property)
    Data->>Data: _refresh_reordered_body_buffer()
    alt "timestamp < _sim_timestamp"
        Data->>PhysX: get_masses()
        PhysX-->>Data: backend-order masses
        alt has_body_ordering
            Data->>Kern: reorder_2d_backend_to_user(backend_mass, user_to_backend, user_mass)
            Kern-->>Data: user-order masses
        end
        Data->>Data: "stamp timestamp = _sim_timestamp"
    end
    Data-->>User: body_mass (user-order)
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
    participant User as User Code
    participant Art as Articulation (PhysX)
    participant Data as ArticulationData
    participant Kern as ordering_kernels
    participant PhysX as PhysX View

    Note over User,PhysX: READ PATH (joint state)
    User->>Art: joint_pos (property)
    Art->>Data: _refresh_joint_pos()
    Data->>Data: "check timestamp < _sim_timestamp?"
    alt "stale & has_ordering"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: backend-order tensor
        Data->>Kern: reorder_2d_backend_to_user(src, user_to_backend, dst)
        Kern-->>Data: user-order buffer updated
        Data->>Data: "stamp timestamp = _sim_timestamp"
    else "stale & no ordering"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: alias as user buffer
    end
    Data-->>Art: _joint_pos (user-order)
    Art-->>User: joint_pos tensor

    Note over User,PhysX: WRITE PATH (joint targets)
    User->>Art: set_joint_effort_target(effort, joint_ids)
    Art->>Data: _get_joint_pos_write_buffer(require_current)
    alt "has_ordering & partial write"
        Data->>PhysX: get_dof_positions()
        PhysX-->>Data: pre-fetch backend buffer
    end
    Art->>Art: scatter effort into user-order buffer
    alt has_ordering
        Art->>Kern: reorder_joint_targets_user_to_backend(user_buf, backend_to_user, backend_buf)
        Kern-->>Art: backend staging buffer ready
        Art->>PhysX: set_dof_actuation_forces(backend_buf)
    else no ordering
        Art->>PhysX: set_dof_actuation_forces(user_buf)
    end

    Note over User,PhysX: READ PATH (body mass, lazy)
    User->>Data: body_mass (property)
    Data->>Data: _refresh_reordered_body_buffer()
    alt "timestamp < _sim_timestamp"
        Data->>PhysX: get_masses()
        PhysX-->>Data: backend-order masses
        alt has_body_ordering
            Data->>Kern: reorder_2d_backend_to_user(backend_mass, user_to_backend, user_mass)
            Kern-->>Data: user-order masses
        end
        Data->>Data: "stamp timestamp = _sim_timestamp"
    end
    Data-->>User: body_mass (user-order)
Loading

Comments Outside Diff (1)

  1. source/isaaclab_physx/isaaclab_physx/assets/articulation/articulation_data.py, line 165-210 (link)

    P2 body_mass / body_inertia eager-fetch → lazy-fetch semantic change

    Previously, every access to data.body_mass and data.body_inertia called get_masses() / get_inertias() unconditionally, so a direct root_view.set_masses() call was visible on the very next property read within the same step. After this PR, both properties are timestamp-gated: the tensor view is only re-fetched when buf.timestamp < _sim_timestamp, which means direct view-writes are not reflected until the next simulation update. Any caller that currently bypasses the articulation write interface will silently read stale values.

Reviews (1): Last reviewed commit: "Use adapter binding in PhysX actuator fa..." | Re-trigger Greptile

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
Use axis-specific optional maps and kernel outputs, consolidate the
one-time ordering setup, and correct ordering documentation and tests.

This makes the single-axis and Newton actuator contracts explicit while
removing unreachable reconfiguration paths.
@AntoineRichard
AntoineRichard merged commit c3bdcf3 into isaac-sim:develop Jul 17, 2026
86 of 91 checks passed
AntoineRichard added a commit that referenced this pull request Jul 17, 2026
# Description

PR #6505 removed the Kit extension startup that previously re-imported
`isaaclab_physx` after Kit loaded. When task configuration imports the
PhysX package before Kit, the compatibility hook returns early and is
never retried. The original Isaac Sim `SimulationManager` STOP callback
then invalidates the tensor view shared with `PhysxManager`, causing
Franka and other PhysX articulation environments to fail during their
first reset.

This PR retries the existing idempotent compatibility takeover from
`PhysxManager.initialize()`, where Kit is available and PhysX is the
selected backend. It also updates the import-order contract and adds an
integration regression test that imports `PhysxCfg` before launching
Kit.

This fix is independent of #6337.

## Type of change

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

## Screenshots

N/A

## Validation

- Regression RED on unmodified develop: module alias remained the
original Isaac Sim `SimulationManager` after `SimulationContext`
initialization.
- Regression GREEN: `1 passed`.
- `Isaac-Reach-Franka`, 16 environments, PhysX: environment creation,
reset, and first step completed with exit code 0 and without
invalidated-view errors.
- `./isaaclab.sh -p tools/changelog/cli.py check develop`
- `./isaaclab.sh -f`

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `./isaaclab.sh -f`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove the fix is effective
- [x] I have added a changelog fragment for every touched package
- [x] My name already exists in `CONTRIBUTORS.md`
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
# Description

PR isaac-sim#6505 removed the Kit extension startup that previously re-imported
`isaaclab_physx` after Kit loaded. When task configuration imports the
PhysX package before Kit, the compatibility hook returns early and is
never retried. The original Isaac Sim `SimulationManager` STOP callback
then invalidates the tensor view shared with `PhysxManager`, causing
Franka and other PhysX articulation environments to fail during their
first reset.

This PR retries the existing idempotent compatibility takeover from
`PhysxManager.initialize()`, where Kit is available and PhysX is the
selected backend. It also updates the import-order contract and adds an
integration regression test that imports `PhysxCfg` before launching
Kit.

This fix is independent of isaac-sim#6337.

## Type of change

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

## Screenshots

N/A

## Validation

- Regression RED on unmodified develop: module alias remained the
original Isaac Sim `SimulationManager` after `SimulationContext`
initialization.
- Regression GREEN: `1 passed`.
- `Isaac-Reach-Franka`, 16 environments, PhysX: environment creation,
reset, and first step completed with exit code 0 and without
invalidated-view errors.
- `./isaaclab.sh -p tools/changelog/cli.py check develop`
- `./isaaclab.sh -f`

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `./isaaclab.sh -f`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove the fix is effective
- [x] I have added a changelog fragment for every touched package
- [x] My name already exists in `CONTRIBUTORS.md`
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.

3 participants