Repository navigation
Conversation
The feet-wrench observation of the Ant and Humanoid tasks resolved the feet against the joint-wrench sensor without preserve_order, so its layout followed the sensor's body order, which differs between PhysX and Newton for the Humanoid. The manager-based configs, LocomotionDirectEnv and the Warp locomotion environment now keep the order of feet_body_names. Signed-off-by: Zeng Qingcheng <[email protected]>
|
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (1), Test quality (1). Other reviewed categories look good.
- PR description: Mark the PR behavior-changing because PhysX checkpoints receive swapped foot blocks, and report explicit validation for the changed Warp path rather than only manager and direct environments.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The duplicated added sentence merely restates preserve_order=True; retain only the non-obvious feet-wrench ordering invariant in both environment comments.
- Test quality: The Newton parameter passes before the fix and the copied backend inventories exercise no distinct path; keep one reversed-order stand-in that fails without preserve_order.
Significant concerns. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
The Newton case passed without the fix and repeated the PhysX path, and the copied sensor body lists had to follow each backend. One stand-in sensor that lists right_foot before left_foot fails without preserve_order. The feet-wrench comments no longer restate the argument. Signed-off-by: Zeng Qingcheng <[email protected]>
|
Hi @NeoZng, thanks a lot for digging into this and for the very clear repro in #8334! I feel like the different layout between PhysX and Newton is actually expected here. By default, sensors and articulations report bodies in each backend's native order (joint and body data already differ the same way when You did find a real gap though: setting So I'm going to close this one in favor of #8344. Thanks again, this is what surfaced the issue :) |
# Description Articulation body ordering previously did not apply to joint-wrench observations because sensors read backend views directly. Added `ArticulationData.body_joint_wrench` so callers can read joint reaction wrenches using the same body indices and ordering as the rest of articulation data. The property exposes `[force, torque]` with Torch shape `(num_envs, num_bodies, 6)`, expressed in the child-side joint frame and referenced at its anchor. PhysX and OVPhysX reuse their existing articulation body-buffer ordering helpers. Newton uses the articulation's existing body map during conversion and shares the frame-conversion function with the standalone sensor. Newton requires `ArticulationCfg.enable_joint_wrench=True` before startup to request extended solver state. Free and world-fixed root entries are zero, and loop-closing constraints are excluded; PhysX and OVPhysX retain their backend root reactions. Values describe the last physics step. Read after stepping following a reset or state write. Standalone sensors retain their existing ordering and update/reset behavior. No scene-to-sensor association or separate sensor ordering map is introduced. Related to #8334 and #8335. ## Type of change - New feature - Documentation update ## Validation - Newton joint-wrench suite: 11 passed, including welded joints and zero root entries. - Final renamed API: Newton physical frame/order checks: 2 passed; PhysX: 2 passed; OVPhysX CPU and CUDA: 4 passed. - Ordering regression checks distinct masses, rotated joint frames, nonzero torques, two environments, and refresh after an initial cached read. Disabling the articulation ordering map makes it fail on incorrect physical values. - Shared contract registration: 1 passed. - Repository formatting, lint, and changelog checks passed. - Clean documentation build passed without Sphinx warnings or errors. ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the test-audit criteria - [x] I have added changelog fragments for every touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Antoine Richard <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Octi Zhang <[email protected]>
|
fixed in #8344 |
Description
The feet-wrench observation of the Ant and Humanoid tasks resolved the feet against the joint-wrench sensor without
preserve_order, so its layout followed the sensor's body order, which is[right_foot, left_foot]for the Humanoid on PhysX and[left_foot, right_foot]on Newton. The manager-based configs,LocomotionDirectEnvand the Warp locomotion environment now passpreserve_order=True, so the layout followsfeet_body_nameson every backend.The Humanoid layout on PhysX changes from
[right_foot, left_foot]to[left_foot, right_foot], which is what Newton, the default backend of the task, already used. A Humanoid checkpoint trained on PhysX before this change sees the wrenches of its two feet swapped after it; checkpoints trained on Newton are unaffected. The Ant is unchanged, because both backends already list its feet in the configured order.Fixes #8334
Type of change
Validation
test_locomotion_feet_wrench_order.pyresolves thefeet_body_forcesterm of the manager-based Humanoid config against a stand-in joint-wrench sensor that listsright_footbeforeleft_foot, as the PhysX sensor does, and checks that the feet come out in the order ofFEET_BODY_NAMES.The Warp locomotion environment runs only on Newton, where the sensor order already matched
feet_body_names, so its observation is unchanged; the call is changed to match the other two.On
Isaac-Humanoidthe repro in the issue prints['left_foot', 'right_foot']on PhysX and Newton. With random actions, the feet part of the observation equals 0.01 times the sensor wrench of[left_foot, right_foot]forIsaac-Humanoidon both backends, andIsaac-Humanoid-Directon both backends.Isaac-Antis unchanged on PhysX and Newton.Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there