Repository navigation
Articulation Reordering Part 8/8: Events, consumers, and documentation - #6341
kellyguo11 merged 15 commits into
Conversation
77e1782 to
f5300be
Compare
… 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>
54512fc to
100886d
Compare
100886d to
1607ec3
Compare
# 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
3ffe93c to
5619196
Compare
# 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
# 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
86bbebc to
9ef0471
Compare
sync_torque_telemetry mixed the user-space loop index j with the backend-space backend_j. Rename the user-space index to user_j so each index only subscripts arrays of its own order: user-order targets, gains, limits, and outputs at [i, user_j]; backend-order live state and sim-bound effort buffers at [i, backend_j]. The kernel signature is unchanged, so call sites are unaffected.
Document that register_post_step_callback's hook fires exactly once per step() call, reflecting state after all decimation iterations and their solver substeps complete -- not once per substep or per decimation iteration.
The remaining public-order presence re-derivations in write_data_to_sim tested the raw ordering map (self.data.joint_ordering is None). Replace them with the has_joint_ordering property so presence checks read uniformly across the ordering paths. Genuine map-object uses and articulation-level ordering reads are left untouched. No behavior change.
Use the shared ANYmal joint-order fixture after P7 removed the backend-local constant. This keeps the P8 reversed-order regression cases runnable after restacking.
Model the non-Kamino solver path in the ordering event test after develop added solver-specific material handling.
Allow the observed float32 CUDA operation-order variance when comparing transformed joint wrenches against the raw OVPhysX tensor. Keep the absolute tolerance unchanged.
d9dc963 to
4603ae9
Compare
Simplify the ordering conversion guide and make test doubles match the real name-map contract. Guard the optional Newton test, remove the unused factory argument, and add missing backend skip fragments.
Greptile SummaryRoutes articulation ordering through event terms, backend state synchronization, and direct consumers.
Confidence Score: 5/5The PR appears safe to merge; no concrete correctness, security, or compatibility failures were identified. The changed event mappings preserve supported body-ID representations, the inertia setters receive correctly shaped public-order tensors, and the Newton fused kernels retain the established mapping and lifecycle behavior. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Public["Public-order names, IDs, and tensors"]
Map["Articulation ordering maps"]
Backend["Backend-order solver views"]
Events["Material randomization events"]
Consumers["Controllers and task consumers"]
State["Newton state publication"]
Public --> Map
Map --> Backend
Public --> Events
Events --> Map
Events --> Backend
Backend --> State
State --> Public
Public --> Consumers
Consumers --> Map
Map --> Backend
Reviews (1): Last reviewed commit: "Address P8 review feedback" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Summary
Part 8 routes event-term body selections through the public→backend index map, fixes the Forge force-sensor index and the Lee controller's mass/inertia pairing, moves the factory/automate armature offset onto the asset setter, adds fused Tier-1 publish kernels, and ships the sim-to-sim transfer guide. The index-conversion work in events.py is correct and is directly covered by the new event tests, and the consumer fixes are well reasoned. The main blocker is an argument-form inconsistency between the two branches of the new Newton wrench fast path; the remaining items are documentation-consistency and test-quality concerns.
Architecture impact
Consistent with the series: the public/backend boundary is now expressed through the asset API (map_body_ids_to_backend, backend_num_shapes_per_body, backend_body_names, set_inertias_index) instead of ad-hoc indexing into raw solver views, and the Newton write path branches identity vs. permuted in Python so the zero-ordering case keeps its pre-ordering launch profile. One incidental public-signature change (factory_utils.set_body_inertias) drops a positional parameter.
Test coverage
New unit tests cover the fused joint/body state publish kernels and the PhysX and Newton material-randomization index conversion, and the Newton identity fast path gets a launch-recording regression test. Gaps: the event test's non-identity permutation is self-inverse so it cannot distinguish the two ordering maps; the use_newton_actuators parametrization does not actually select a branch; the cross-backend partial-write matrix was pruned in a way that removes state-write coverage under reordering for PhysX and Newton; and the Forge / Lee-controller consumer fixes ship without regression tests.
Implementation verdict
Significant concerns. Posted 8 actionable findings inline.
The PR exceeded the automated context budget, so some file content was truncated.
Automated comment-only review; human maintainers own approval decisions.
| dim=(self.num_instances, self.num_bodies), | ||
| device=self.device, | ||
| inputs=[ | ||
| composer.out_force_b, |
There was a problem hiding this comment.
🔴 Critical — Identity wrench branch passes the composer buffers without .warp
The two branches added here pass different argument forms for the same data: the ordering branch passes composer.out_force_b.warp / composer.out_torque_b.warp (matching the pre-existing code this replaces), while the new no-ordering branch passes the composer attributes raw. Both cannot be correct — if out_force_b were already a wp.array the sibling .warp access would fail, and if it is a wrapper then wp.launch will reject it here. The affected branch is the default (no body_ordering) path with a permanent external wrench, so this is the common configuration. Make both launches use the identical form.
| composer.out_force_b, | |
| composer.out_force_b.warp, | |
| composer.out_torque_b.warp, |
| ./isaaclab.sh train --rl_library rsl_rl \ | ||
| --task Isaac-Velocity-Flat-AnymalD \ | ||
| --num_envs 4096 \ | ||
| physics=newton_mjwarp |
There was a problem hiding this comment.
🟡 Warning — Backend selection in the examples does not match the documented preset mechanism
All four example commands select the backend with physics=newton_mjwarp / physics=physx, and the surrounding prose states "physics=physx does that". The sibling page (physical-backends/index.rst, which this guide links to) documents backend selection at the command line as presets=<name>, and that is also the form used by the repository's canonical training command. If physics= is not a valid override for these tasks, a reader following this guide replays the checkpoint on the wrong engine while the ordering override still applies — exactly the silent mismatch the guide exists to prevent. Please confirm the accepted override and make the four snippets and the prose consistent with the backend overview page.
| physics=newton_mjwarp | |
| presets=newton_mjwarp \ |
| @pytest.mark.parametrize( | ||
| "coverage", | ||
| ["all_envs_one_item", "one_env_all_items"], | ||
| ("backend", "ordering_mode", "selection", "operation", "coverage"), |
There was a problem hiding this comment.
🟡 Warning — Pairwise reduction removes reordered state-write coverage for PhysX and Newton
The 12 selected rows preserve every backend x ordering x selection triple, but operation is no longer crossed with backend x ordering: operation="state" under ordering_mode="reversed" now appears only for ovphysx. The fused joint-state partial writers on PhysX and Newton — the writers most likely to mis-pair the env and item axes, and the ones this series reworks — are therefore never exercised under a non-identity ordering here. If runtime is the motivation, keep the reduction but re-add the high-risk rows, e.g. _backend_param("physx", "reversed", "index", "state", "one_env_all_items") and _backend_param("newton", "reversed", "mask", "state", "all_envs_one_item").
| _NUM_SHAPES_PER_BACKEND_BODY = (1, 2, 3) | ||
| _NUM_ENVS = 2 | ||
| _NUM_SHAPES = sum(_NUM_SHAPES_PER_BACKEND_BODY) | ||
| _NONIDENTITY_BODY_ORDERING = SimpleNamespace( |
There was a problem hiding this comment.
🟡 Warning — Non-identity ordering is self-inverse, so map direction is not pinned
user_to_backend_indices=(0, 2, 1) and backend_to_user_indices=(0, 2, 1) are the same permutation, so a regression that made map_body_ids_to_backend consume backend_to_user_indices would still pass both the PhysX and Newton assertions — i.e. the test does not lock down the direction this PR fixes. Use a 3-cycle so the two maps differ (e.g. user_to_backend_indices=(1, 2, 0) with backend_to_user_indices=(2, 0, 1)) and update the expected shape slices accordingly.
| @pytest.mark.parametrize("device", ["cpu"]) | ||
| @pytest.mark.parametrize("gravity_enabled", [False]) | ||
| @pytest.mark.parametrize("articulation_type", ["anymal"]) | ||
| @pytest.mark.parametrize("use_newton_actuators", [False, True]) |
There was a problem hiding this comment.
🟡 Warning — use_newton_actuators parametrization does not select the branch it claims to cover
The docstring states "Both the Newton-actuator and Lab-actuator branches are covered", but use_newton_actuators never configures the articulation — the cfg is identical for both values, and the actual branch is decided by on_newton_path = getattr(articulation, "_has_newton_actuators", False). The parameter is only used to pytest.skip. As a result, whichever branch the environment happens to select runs twice and the other branch of write_data_to_sim (the one this PR restructured) is never exercised, while the test reports coverage for both. Either drive the branch explicitly or drop the parameter and align the docstring.
|
|
||
| # Force sensor information. | ||
| self.force_sensor_body_idx = self._robot.body_names.index("force_sensor") | ||
| # Force sensor information. The index is resolved in backend view order because |
There was a problem hiding this comment.
🟡 Warning — Consumer bug fixes ship without regression tests
Both the Forge force-sensor index fix here and the Lee controller mass/inertia pairing fix in isaaclab_contrib are recorded as Fixed changelog entries describing silent wrong-body reads under a non-identity body_ordering, but neither has a test. Per the repository testing guidelines, add focused regression tests that fail with the previous implementation: for Forge, a mocked articulation whose body_names and backend_body_names place force_sensor at different indices plus a stub root_view returning per-link sentinels; for the Lee controller, a fake Multirotor whose data.body_mass / data.body_inertia are a known permutation of the raw-view values, asserting the aggregate mass and inertia.
|
|
||
| # OVPhysX/Warp and the PyTorch reference use different float32 operation order on CUDA. | ||
| _OVPHYSX_WRENCH_RTOL = 5e-6 | ||
| _OVPHYSX_WRENCH_RTOL = 1e-5 |
There was a problem hiding this comment.
🔵 Suggestion — Joint-wrench tolerance doubled without justification
_OVPHYSX_WRENCH_RTOL is relaxed from 5e-6 to 1e-5, halving the sensitivity of every assert_close in this module, in a PR whose stated scope is event terms, consumers, and documentation. Nothing else here touches the OVPhysX joint-wrench path, and the change is not mentioned in the description or any changelog fragment. Either revert it, or scope the looser bound to the specific assertion that needs it and record the observed deviation and its cause in the comment above the constant.
|
|
||
|
|
||
| def set_body_inertias(robot, num_envs): | ||
| def set_body_inertias(robot): |
There was a problem hiding this comment.
🔵 Suggestion — set_body_inertias drops a positional parameter without deprecation or changelog note
set_body_inertias(robot, num_envs) becomes set_body_inertias(robot). The in-tree caller is updated, but any downstream task or fork using the two-argument form now fails with TypeError, and the isaaclab_tasks changelog fragment only mentions the switch to set_inertias_index. Either keep an ignored, deprecated num_envs parameter for one release, or call the removal out explicitly in the fragment under Changed with a **Breaking:** prefix and migration guidance.
| def set_body_inertias(robot): | |
| def set_body_inertias(robot, num_envs=None): |
Update the multirotor test double to expose body masses and inertias through the public articulation data interface used by the controller.
# Description Caches recorded Warp commands for articulation ordering and stable post-read kernels in the PhysX, Newton, and OVPhysX backends. This avoids repeated Warp launch setup while preserving CPU behavior and CUDA graph capture. Cached commands are discarded when articulation data is rebound or ordering buffers are rebuilt so recorded array arguments cannot become stale. OVPhysX now also exposes articulation COM/link Jacobians, mass matrices, and gravity compensation through the backend-agnostic data API. Same-timestamp COM, mass, inertia, and armature writes invalidate the affected computed-dynamics buffers before the next read. This is stacked after #6341. ## Relationship to #6674 Commit `00c869a0f8` contains the focused OVPhysX articulation-dynamics portion of #6674, excluding its unrelated deformable-task changes. The cache and freshness work is isolated in `8bd23d94ed`. If #6674 merges first, the overlapping dynamics commit can be dropped while rebasing and the cache commit retained. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `./isaaclab.sh -f` - Focused cache, lifecycle, generalized-dynamics, and CPU dynamics regressions: 9 passed. - Focused OVPhysX CUDA dynamics shard, after confirming the GPU was idle: 4 passed. - Changelog tooling: 90 passed. - Added focused PhysX coverage for command reuse and reset invalidation. - Added focused Newton coverage for command reuse, reset invalidation, and graph-capture fallback. - Performance measurements are documented in the articulation ordering investigation report. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `./isaaclab.sh -f` - [x] My changes generate no new warnings - [x] I have added tests that cover the feature - [x] I have added changelog fragments for `isaaclab_physx`, `isaaclab_newton`, and `isaaclab_ovphysx` - [x] My name already exists in `CONTRIBUTORS.md` Documentation screenshots are not applicable.
… 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>
…#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
# 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
# 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
… 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
# 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]>
…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
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]>
# Description Caches recorded Warp commands for articulation ordering and stable post-read kernels in the PhysX, Newton, and OVPhysX backends. This avoids repeated Warp launch setup while preserving CPU behavior and CUDA graph capture. Cached commands are discarded when articulation data is rebound or ordering buffers are rebuilt so recorded array arguments cannot become stale. OVPhysX now also exposes articulation COM/link Jacobians, mass matrices, and gravity compensation through the backend-agnostic data API. Same-timestamp COM, mass, inertia, and armature writes invalidate the affected computed-dynamics buffers before the next read. This is stacked after isaac-sim#6341. ## Relationship to isaac-sim#6674 Commit `00c869a0f8` contains the focused OVPhysX articulation-dynamics portion of isaac-sim#6674, excluding its unrelated deformable-task changes. The cache and freshness work is isolated in `8bd23d94ed`. If isaac-sim#6674 merges first, the overlapping dynamics commit can be dropped while rebasing and the cache commit retained. ## Type of change - New feature (non-breaking change which adds functionality) ## Validation - `./isaaclab.sh -f` - Focused cache, lifecycle, generalized-dynamics, and CPU dynamics regressions: 9 passed. - Focused OVPhysX CUDA dynamics shard, after confirming the GPU was idle: 4 passed. - Changelog tooling: 90 passed. - Added focused PhysX coverage for command reuse and reset invalidation. - Added focused Newton coverage for command reuse, reset invalidation, and graph-capture fallback. - Performance measurements are documented in the articulation ordering investigation report. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `./isaaclab.sh -f` - [x] My changes generate no new warnings - [x] I have added tests that cover the feature - [x] I have added changelog fragments for `isaaclab_physx`, `isaaclab_newton`, and `isaaclab_ovphysx` - [x] My name already exists in `CONTRIBUTORS.md` Documentation screenshots are not applicable.
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
developsync (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
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdTest Plan
./isaaclab.sh -p -m pytest source/isaaclab/test/envs/test_articulation_ordering_events.py-> 12 passed./isaaclab.sh -f-> all hooks pass