Repository navigation
[Newton] Verify coordinate-layout targets without a compatibility pin - #7449
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
The PR explicitly pins Newton’s process-global joint-target layout to the existing DOF-based behavior in both relevant package import paths and adds a focused floating-base regression test that distinguishes coordinate and DOF layouts.
- Design and architecture: The import-time assignment runs before model construction initiated through either integration path. Duplicating the pin across
isaaclab.actuators.newtonandisaaclab_newtonis a deliberate compatibility measure, with the non-blocking maintenance tradeoff that both sites must be removed together during migration to coordinate-layout targets. - API: No Isaac Lab public symbols, signatures, exports, or return types change. The pin intentionally preserves the existing target-array compatibility contract across Newton’s upcoming default change, and
.skipfragments cover both touched packages. - Implementation: Both assignments occur before the packages import model-related integration modules. The regression test constructs an articulation containing a free joint, confirms coordinate and DOF counts differ, and verifies
joint_target_qremains DOF-sized. A residual maintenance risk is that Newton may eventually remove the deprecated flag, at which point the test remains important for detecting lost behavior.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
Greptile SummaryPins Newton’s joint-position target storage to the existing per-DOF layout before model construction, preserving compatibility when Newton 1.6 changes its default.
Confidence Score: 5/5The PR appears safe to merge, with the compatibility pin applied before supported Isaac Lab model-building paths and a focused regression test covering the intended layout. The changed initializers preserve the per-DOF target layout expected by actuator consumers, and the reviewed import chains apply the pin before Newton models are constructed. Important Files Changed
Reviews (1): Last reviewed commit: "[Newton] Pin `use_coord_layout_targets =..." | Re-trigger Greptile |
c8d4a82 to
56feebd
Compare
…o Newton 1.6 Joint dofs require a separate fix, as they don't convert to/from quaternions
56feebd to
245ff13
Compare
|
run-ci |
use_coord_layout_targets = False|
run-ci |
|
Backported to |
…#7449) ## Summary Newton 1.6 stores position targets in joint-coordinate layout: a floating root uses seven coordinates but six DOFs, and a ball joint uses four quaternion components but three DOFs. Reusing DOF indices for these targets can address the wrong entries. Isaac Lab already supports the coordinate layout through #7520. This PR therefore no longer pins `newton.use_coord_layout_targets = False` or changes Newton's process-wide settings. There are **no production changes relative to develop**. The existing coordinate test now uses a real Newton model instead of a mocked articulation view. Across two worlds, it checks that public joint positions remain DOF-shaped and command submission writes the correct coordinate targets, including ball-joint quaternions, without modifying floating-root targets. The separate pin-only test is removed. Net diff: **45 additions, 53 deletions**, plus a test-only changelog marker. ## Validation With Newton 1.6's default layout and neither package applying a pin: - 22 coordinate and shared actuator-adapter tests passed. - 15 Newton rollout checks passed: DC motors, mixed implicit/explicit actuators, delayed PD, and reversed joint ordering. - 13 PhysX rollout checks passed with Newton-native DC motor, delayed PD, and mixed actuators. - The regression fails when the legacy layout is forced. Bypassing command-side quaternion conversion also fails the ball-joint case. - `uv run isaaclab -f` passed. Rollouts used GPU 0 and Isaac Sim 6.1. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Kelly Guo <[email protected]> Co-authored-by: Octi Zhang <[email protected]> (cherry picked from commit 2ed561d)
Summary
Newton 1.6 stores position targets in joint-coordinate layout: a floating root uses seven coordinates but six DOFs, and a ball joint uses four quaternion components but three DOFs. Reusing DOF indices for these targets can address the wrong entries.
Isaac Lab already supports the coordinate layout through #7520. This PR therefore no longer pins
newton.use_coord_layout_targets = Falseor changes Newton's process-wide settings. There are no production changes relative to develop.The existing coordinate test now uses a real Newton model instead of a mocked articulation view. Across two worlds, it checks that public joint positions remain DOF-shaped and command submission writes the correct coordinate targets, including ball-joint quaternions, without modifying floating-root targets. The separate pin-only test is removed.
Net diff: 45 additions, 53 deletions, plus a test-only changelog marker.
Validation
With Newton 1.6's default layout and neither package applying a pin:
uv run isaaclab -fpassed.Rollouts used GPU 0 and Isaac Sim 6.1.
Release backport
develop