Repository navigation
Articulation Reordering Part 7/8: Cross-backend ordering interface tests - #6340
AntoineRichard merged 17 commits into
Conversation
d4cb2b5 to
8e788e4
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>
71acd4f to
8d3bae3
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
f086248 to
ab412b6
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
| assert _ordering_shadow_shape(shadow)[:2] == (num_instances, item_count) | ||
|
|
||
| @pytest.mark.parametrize("ordering_mode", ["none", "identity", "reversed"]) | ||
| def test_newton_allocates_shadows_only_for_nonidentity_ordering(self, ordering_mode: str) -> None: |
There was a problem hiding this comment.
Agent review: this Newton variant is a near-verbatim copy of the PhysX/OVPhysX allocation test above and the shadow tables already carry newton entries — the four allocation-shadow tests are one parametrized test. Relatedly, test_identity_ordering_matches_none_behavior and test_physx_none_ordering_allocates_no_external_wrench_staging_buffers are strict subsets of this family's identity/none cases and can fold in.
There was a problem hiding this comment.
Addressed locally in 5279c4c. The allocation checks are now one all-backend parametrized test, and the separate identity-ordering and PhysX no-wrench allocation subsets were removed. This commit is awaiting the next authorized push.
| retained_field: str, | ||
| ) -> None: | ||
| """Allocate one staging destination for each ordered body read path.""" | ||
| if backend not in BACKENDS: |
There was a problem hiding this comment.
Agent suggestion: 27 tests open with an in-body backend-availability pytest.skip(...) like this one, where the module already defines a marker convention for exactly this — sweeping them to the marker trims ~2 lines each and makes the skips visible at collection time.
There was a problem hiding this comment.
Addressed locally in 5279c4c. Backend availability is now expressed with collection-time skip parameters/markers across the file; the in-body availability skips were removed. This commit is awaiting the next authorized push.
| _seed_backend_com_poses("ovphysx", art, raw_backend, backend_seed) | ||
| np.testing.assert_array_equal(_read_backend_com_poses("ovphysx", art, raw_backend), backend_seed) | ||
|
|
||
| art.data._body_com_pose_b.timestamp = -1.0 |
There was a problem hiding this comment.
Agent review: this cache re-invalidation right after the seed helper is a no-op (the helper already leaves the cache invalidated), and the surrounding user_to_backend if/else is re-derived inline at 4 more sites past the file's own _ordering_user_to_backend helper.
There was a problem hiding this comment.
Addressed locally in 5279c4c. The redundant cache invalidation after _seed_backend_com_poses was removed, and the repeated inline maps now use _ordering_user_to_backend. This commit is awaiting the next authorized push.
| return | ||
| env_ids = indices.numpy() | ||
| # PhysX writers pass global staging rows; the generic mock setter expects compact rows. | ||
| source_ids = env_ids if values.shape[0] == art.num_instances else np.arange(indices.shape[0]) |
There was a problem hiding this comment.
Agent review: the PhysX partial-write tests validate against this test-local shape-sniffing setter instead of the shared mock's setter — and the two have already drifted. Validating against a private reimplementation is exactly the mock-drift failure mode this cross-backend file exists to catch; better to fix and use the shared mock setter.
There was a problem hiding this comment.
Addressed locally in 398358d. The shared Torch and Warp mock DOF setters now support both compact selected rows and full global staging rows, with position/velocity regression coverage verified red before the fix and green afterward. The P7-local setter override was removed. This commit is awaiting the next authorized push.
| real_import = builtins.__import__ | ||
|
|
||
| def find_spec(name, package=None): | ||
| if name == "isaaclab_ovphysx": |
There was a problem hiding this comment.
Agent review: this subprocess scenario fakes find_spec only for isaaclab_ovphysx, but the utils gate the backend on two specs (isaaclab_ovphysx AND the external ovphysx SDK). On machines without that SDK — exactly where this file's other ovphysx tests politely skip — the guarded branch short-circuits and this test hard-fails instead of skipping. Faking both specs makes it hermetic.
There was a problem hiding this comment.
This duplicate subprocess regression was removed earlier in 012aa6e, so the non-hermetic single-spec fake no longer exists. The remaining backend-discovery coverage owns this behavior. The rebased commit is awaiting the next authorized push.
| @pytest.mark.parametrize("operation", ["position", "velocity", "state"]) | ||
| @pytest.mark.parametrize( | ||
| "coverage", | ||
| ["one_env_one_item", "all_envs_one_item", "one_env_all_items"], |
There was a problem hiding this comment.
Agent review: 36 of the 108 cases in this joint-write cartesian run the coverage mode the block's own comment declares redundant — dropping that mode deletes a third of the matrix at no coverage cost.
There was a problem hiding this comment.
Addressed locally in 5279c4c. The redundant one_env_one_item mode was dropped; the matrix retains all_envs_one_item and one_env_all_items, reducing it from 108 to 72 cases without losing the partial-item/full-item branches. This commit is awaiting the next authorized push.
# 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
9c65df4 to
eca40fc
Compare
Reinterpret structured Warp destinations as float32 before copying mock binding data, matching the real OVPhysX binding contract. Cover transform and spatial-vector destinations while preserving existing flat paths.
Reject Warp destinations whose scalar element type is not float32 before creating a reinterpret view. This preserves structured float reads without silently copying float bit patterns into integer buffers.
Use the shared ordering constants in the gravity-compensation test added on develop. The backend-local constants were removed when P7 consolidated articulation ordering fixtures.
Move backend availability handling to collection time and consolidate redundant allocation coverage. Reuse ordering helpers and retain the representative partial-write matrix without duplicate cases.
Support both compact selected rows and complete global staging rows in the shared Torch and Warp DOF setters. Cover position and velocity writes and remove the P7-only setter override.
Mark the Newton, OVPhysX, and PhysX package changes as requiring no user-facing changelog entry or version bump.
Skip OVPhysX binding tests when the optional runtime wheel is absent. Pin shared fixture orders explicitly so convention regressions cannot collapse into vacuous set comparisons.
b64adef to
7ba5f66
Compare
mmichelis
left a comment
There was a problem hiding this comment.
Very thorough ordering tests! I added a few agent comments, but the one thing that could improve the testing is to add another test mode to cover cyclical permutations of body ordering, just so it is not the trivial reverse ordering tests which might not catch all errors.
| return np.asarray(art.joint_ordering.user_to_backend_indices, dtype=np.int64) | ||
|
|
||
|
|
||
| def _joint_ordering_for_mode(mode: str, num_joints: int) -> tuple[str, ...] | None: |
There was a problem hiding this comment.
The tested orderings are quite trivial and self-inverse. Adding another ordering test case like a cycled one (from [1,0,2] to [2,1,0]) can cover more errors potentially, like already done in e.g. source/isaaclab/test/assets/test_articulation_ordering.py:1248.
There was a problem hiding this comment.
Addressed locally in a4cfde1b2d (not pushed yet). The existing body-property read/write tests now run both reversed and cyclic ordering modes, with the cyclic case using a non-self-inverse mapping. I also mutation-checked the map direction: the reversed cases still passed with the intentional inversion, while every available cyclic case failed, confirming the added coverage catches that class of error.
There was a problem hiding this comment.
Now pushed in a4cfde1b2d. The existing body-property read and partial-write matrices now run both reversed and cyclic modes; for three bodies the cyclic case is (body_2, body_0, body_1), so the mapping is not self-inverse. The direction-inversion mutation remained invisible to the reversed cases and failed all available cyclic cases.
There was a problem hiding this comment.
Agent: The cyclic permutation itself is correct — n=4 gives u2b=(3,0,1,2) and b2u=(1,2,3,0), genuinely non-self-inverse. But it landed on the two tests that only read the forward map, so the gap is still open.
Re-ran the mutation on a4cfde1b: replacing backend_to_user/backend_to_user_indices with the forward map at ordering.py:226,228 still leaves the suite fully green (127 passed, identical to clean).
Only three sites consume the inverse map — :2024-2025, :2085-2086, and the sanity check at :1653 — and all three still build reversed(...) orderings. They also derive the expected value from art.*_ordering.backend_to_user_indices, i.e. the same map under test, so a cyclic ordering alone wouldn't catch it there either.
Two changes would close it: add cyclic to _joint_ordering_for_mode and route it into those sites, and compute the expected permutation from the declared ordering tuple rather than reading it back off the articulation. Self-check: with that mutation applied, the suite should go red.
There was a problem hiding this comment.
[P1] Agent Review: Verified at HEAD (ee9160715d3) — still open on all three points, and the latest commit added a fourth instance of the pattern.
_joint_ordering_for_mode(:76-85) still rejectscyclic; every joint ordering in the file remains self-inverse.:2023and:2060still build the expectation fromart.joint_ordering.backend_to_user_indices— the map under test.ee9160715d3addedtest_ovphysx_implicit_targets_are_written_in_backend_order(:2003) with both properties:reversedat:2013,position[:, backend_to_user]at:2026. It is blind to the same mutation.
For n=3 the two defects compound: reversed gives u2b == b2u == (2,1,0), so swapping the maps is a no-op; and because the expectation is sourced from the map under test, a corrupted map is mirrored into both sides of the assertion and cancels out regardless of ordering mode. Fixing either alone leaves the mutation alive.
Four edits:
_joint_ordering_for_mode— add the branch its body twin already has:
if mode == "cyclic":
return (backend_names[-1], *backend_names[:-1])- Generalise
_install_reversed_joint_ordering(:65) to take a mode —:2040reaches the inverse map through it. - Add a helper deriving both maps from the declared tuple only, mirroring
ordering.py:220-222but never reading the articulation:
def _declared_ordering_maps(ordering, backend_names):
count = len(backend_names)
if ordering is None:
identity = np.arange(count, dtype=np.int64)
return identity, identity
user_to_backend = np.asarray([backend_names.index(n) for n in ordering], dtype=np.int64)
backend_to_user = np.empty_like(user_to_backend)
backend_to_user[user_to_backend] = np.arange(count, dtype=np.int64)
return user_to_backend, backend_to_user- Parametrise the four inverse-map sites (
:1608,:1972,:2023,:2060) over["reversed", "cyclic"]and swap in the derived map:
-backend_to_user = np.asarray(art.joint_ordering.backend_to_user_indices, dtype=np.int64)
+_, backend_to_user = _declared_ordering_maps(joint_ordering, tuple(art.backend_joint_names))Two constraints: cyclic needs n >= 3 (for two items a cycle is a swap and degenerates to reversed — the joint sites are n=3 and n=4, so fine), and a mode-aware body variant needs _install_test_body_ordering's is_fixed_base guard at :52-55, since cyclic moves body 0 out of the root slot.
Self-check as you suggested: with ordering.py:226,228 mutated to the forward map, the suite should go red — it was green at 127 on a4cfde1b, and nothing in ee9160715d3 touches the ordering-mode helpers.
| body_ordering=("body_2", "body_1", "body_0"), | ||
| ) | ||
|
|
||
| assert getattr(art.data, redundant_field, None) is None |
There was a problem hiding this comment.
Agent: This assertion cannot fail: both redundant_field names cannot exist. _body_link_vel_w_backend has zero occurrences repo-wide, and _body_com_acc_w_backend exists only on the OVPhysX data class but is asserted here against Newton. With the , None default both reduce to assert None is None.
Newton names these shadows with a _user suffix (isaaclab_newton/.../articulation_data.py:1794), which retained_field correctly uses -- so the two halves of the same tuple disagree on convention. Dropping the , None default would surface stale names as AttributeError, like the sibling test at :1280.
There was a problem hiding this comment.
Confirmed as a test-quality observation: the getattr(..., None) default means a stale member name is indistinguishable from an intentionally absent staging allocation. Mike identified cyclic coverage as the requested change in this review, so I left this diagnostic assertion unchanged in the cycle-only update. A focused follow-up can tighten it by asserting the concrete allocation member without a default.
There was a problem hiding this comment.
Addressed locally in ee9160715d (not pushed yet). I removed the vacuous absence test rather than adding dummy fields. TestArticulationOrderingAllocation remains the canonical exact inventory: it accesses every concrete shadow without a default and verifies allocation/non-allocation for identity and nonidentity mappings.
|
|
||
| art, _ = get_articulation("ovphysx", device="cpu") | ||
|
|
||
| assert art._can_write_effort is True |
There was a problem hiding this comment.
Agent: This asserts the fixture against itself. The only change this PR makes to _articulation_iface_test_utils.py is hardcoding these same three values at :301-303, so no product code is on the path.
The real derivation is _get_binding(...) is not None (isaaclab_ovphysx/.../articulation.py:4015-4017), and the mock already registers all three tensor types (mock_ovphysx_bindings.py:391-393) -- driving the real path would give the same values while actually exercising it.
Related: _has_implicit_actuators is False throughout this fixture and gates write_pos/write_vel (articulation.py:266-267), so the OVPhysX position- and velocity-target reorder paths are never exercised.
There was a problem hiding this comment.
Confirmed. This shell bypasses _initialize_impl, so the three capability flags are fixture wiring rather than a test of binding discovery; the standalone assertion therefore only validates that wiring. Also, _has_implicit_actuators = False means this fixture does not cover position/velocity target forwarding through write_data_to_sim. Those are separate fixture/integration coverage improvements and were left unchanged in the cycle-only update requested by the review.
There was a problem hiding this comment.
Addressed locally in ee9160715d (not pushed yet). The shell now derives all three capability flags through _get_binding(...), and the self-referential capability assertion was replaced by a behavioral test that enables implicit actuators, calls write_data_to_sim, and verifies reordered position and velocity targets in the real mock bindings.
| ) | ||
| elif backend == "ovphysx": | ||
| with pytest.deprecated_call(): | ||
| art.write_joint_state_to_sim( |
There was a problem hiding this comment.
Agent: write_joint_state_to_sim is deprecated (isaaclab_ovphysx/.../articulation.py:4698) and just delegates to the position/velocity index writers already covered by operation="position"/"velocity", so these state+index cases add no OVPhysX coverage.
OVPhysX does implement write_joint_state_to_sim_index with an identical keyword-only signature (:872), and that is the path with the fused write buffer. The mask branch at :334 already treats all three backends uniformly, so this looks unintentional. Same at :537-551.
There was a problem hiding this comment.
Confirmed. The OVPhysX special case calls the deprecated combined API, which delegates to the already-covered position and velocity index writers; switching both helper sites to write_joint_state_to_sim_index is the focused way to exercise the fused write path. This is orthogonal to the requested cyclic body-order coverage and was left unchanged in this update.
There was a problem hiding this comment.
Addressed locally in ee9160715d (not pushed yet). Both OVPhysX deprecated special cases were removed; index-based state cases now call write_joint_state_to_sim_index uniformly across backends and exercise the fused OVPhysX buffer path. The focused OVPhysX state matrix passes 9 cases.
| def test_set_dof_state_with_indices_uses_matching_global_rows(self, view, setter_name, getter_name): | ||
| """Test indexed writes from global inputs select the matching source rows.""" | ||
| baseline = torch.zeros(4, 12) | ||
| getattr(view, setter_name)(baseline) |
There was a problem hiding this comment.
Agent: baseline aliases the mock storage: set_dof_positions keeps the tensor by reference when indices is None (mock_articulation_view.py:409). The indexed write then mutates baseline, and expected = baseline.clone() clones the already-mutated buffer, so the value assertions cannot fail.
I injected a bug that also clobbers unselected row 1 and this test still passed; passing baseline.clone() in makes it correctly fail. It does fail pre-fix (the old setter raised), so it pins that the write works, just not which rows. The warp twin at ..._warp.py:275 is sound because wp.array(numpy) copies.
There was a problem hiding this comment.
Confirmed from the mock storage behavior: the no-index setter retains baseline by reference, so the later indexed write mutates the expected-value source. Passing baseline.clone() into the initial setter is the minimal test repair. This is a mock-test robustness follow-up rather than a production ordering failure, and it was left unchanged in the cycle-only update.
There was a problem hiding this comment.
Addressed locally in ee9160715d (not pushed yet) by cloning the baseline before installing it in the Torch mock. Mutation check: the old aliased setup passed both cases despite an injected row-1 clobber; with the clone, both cases failed; after restoring clean code, both pass.
| if indices is not None: | ||
| wp.launch( | ||
| scatter_floats_2d, | ||
| scatter_floats_2d_global_rows if positions.shape[0] == self._count else scatter_floats_2d, |
There was a problem hiding this comment.
Agent: The global-rows fix landed on the DOF setters only. Production passes full buffers to the root setters too (isaaclab_physx/.../articulation.py:557,650,814,917), but set_root_transforms/set_root_velocities here (:485, :510) still launch plain scatter_floats_2d, which with global rows plus indices silently writes the wrong rows. The torch twin (mock_articulation_view.py:362,383) raises instead. Both docstrings advertise (N, 7) or (len(indices), 7) but implement only the compact form.
Also, dispatching on shape[0] == self._count is ambiguous when a caller writes every env via an explicit index list (env_ids = arange(n), a common reset path); committing to global-rows unconditionally would remove that.
There was a problem hiding this comment.
Confirmed that the Warp root setters still use compact-row scatter while production can pass full global buffers. The suggested unconditional global-row interpretation is not safe by itself because these mock APIs also document and accept compact (len(indices), width) inputs; the repair needs an explicit source-row contract plus Torch/Warp parity coverage, especially for the ambiguous full explicit index list. This broader mock-setter follow-up was left unchanged in the cycle-only update.
There was a problem hiding this comment.
Addressed locally in ee9160715d (not pushed yet). Indexed root and DOF setters now consistently consume full global buffers in both Torch and Warp mocks, matching every production call site. Compact-only mock tests/docstrings were removed, root global-row regressions were added, and the full two-file mock suite passes 87 tests.
Exercise non-self-inverse body mappings across backend property reads and partial writes so direction errors are not masked by reversed orderings.
|
@mmichelis The non-self-inverse cyclic ordering coverage requested in your review is now pushed in |
Exercise fused and implicit OVPhysX write paths, align PhysX test mocks with global-row setter semantics, and remove assertions that could not detect regressions.
| def _backend_param(backend: str, *values, **kwargs) -> ParameterSet: | ||
| """Build a backend parameter that skips unavailable plugins at collection time.""" | ||
| marks = list(kwargs.pop("marks", ())) | ||
| marks.append(pytest.mark.skipif(backend not in BACKENDS, reason=f"{backend} backend is not available")) |
There was a problem hiding this comment.
[P2] Agent Review: This reason string (and _requires_physx/_requires_ovphysx/_requires_newton at :879-881) reports "backend is not available" without saying why, and _articulation_iface_test_utils.py:23-29 discards the cause with except ImportError: pass. Running kitless:
$ uv run --extra test python -m pytest source/isaaclab/test/assets/test_articulation_ordering_iface.py -q
53 passed, 146 skipped # BACKENDS = ['Mock', 'newton']
PhysX is gone because isaaclab_physx.assets.articulation.articulation raises ModuleNotFoundError: No module named 'carb' — but the skip text suggests the package isn't installed, and it is. For a cross-backend parity suite, that's a green run that exercised one backend.
Capturing the exception in the utils and interpolating it here would make the skip self-explanatory:
except ImportError as exc:
_PHYSX_UNAVAILABLE = f"PhysX backend unavailable: {exc}"| @@ -725,18 +686,16 @@ def test_branching_fixture_physx_ordering_is_identity_on_ovphysx(sim, device): | |||
| assert articulation.is_initialized | |||
|
|
|||
| # Ground truth pinned by isaaclab_physx's test_branching_fixture_resolves_distinct_conventions. | |||
There was a problem hiding this comment.
[P3] Agent Review: This comment and :725 (plus isaaclab_newton/test/assets/test_articulation.py:636) now sit above a blank line — the locals they described moved into the shared module, and the ground truth is isaaclab.test.utils.articulation_ordering, not the PhysX test. Delete or repoint.
Keep branching fixtures owned by each backend package and expose optional backend import failures in test skip reasons. Add cyclic inverse-map consumer coverage with expectations derived independently from the map under test.
#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]>
… 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
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
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/assets/test_articulation_ordering_iface.py-> 233 passed./isaaclab.sh -f-> all hooks pass