Skip to content

[Newton] Verify coordinate-layout targets without a compatibility pin - #7449

Merged
kellyguo11 merged 3 commits into
isaac-sim:developfrom
camevor:newton-pin-use_coord_layout_targets
Sep 28, 2026
Merged

kellyguo11 merged 3 commits into
isaac-sim:developfrom
camevor:newton-pin-use_coord_layout_targets

Conversation

@camevor

@camevor camevor commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Backport this pull request to the active release branch after it merges into develop

@camevor
camevor requested a review from a team August 31, 2026 09:58
@camevor camevor self-assigned this Aug 31, 2026
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Aug 31, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.newton and isaaclab_newton is 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 .skip fragments 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_q remains 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-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Pins Newton’s joint-position target storage to the existing per-DOF layout before model construction, preserving compatibility when Newton 1.6 changes its default.

  • Applies the compatibility pin at both Newton integration entry points.
  • Adds a floating-base model test that distinguishes coordinate and DOF target layouts.
  • Adds skip changelog fragments for both touched packages.

Confidence Score: 5/5

The 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

Filename Overview
source/isaaclab/isaaclab/actuators/newton/init.py Applies the Newton target-layout compatibility pin when the shared Newton actuator integration is imported.
source/isaaclab_newton/isaaclab_newton/init.py Applies the compatibility pin at the Newton backend package entry point before backend model construction.
source/isaaclab_newton/test/physics/test_joint_target_layout.py Verifies that a floating-base articulation retains DOF-shaped joint-position targets after package import.

Reviews (1): Last reviewed commit: "[Newton] Pin `use_coord_layout_targets =..." | Re-trigger Greptile

@camevor
camevor enabled auto-merge (squash) September 1, 2026 14:42
@camevor
camevor force-pushed the newton-pin-use_coord_layout_targets branch from c8d4a82 to 56feebd Compare September 18, 2026 12:53
…o Newton 1.6

Joint dofs require a separate fix, as they don't convert to/from quaternions
@camevor
camevor force-pushed the newton-pin-use_coord_layout_targets branch from 56feebd to 245ff13 Compare September 28, 2026 14:23
@kellyguo11 kellyguo11 moved this to In review in Isaac Lab Sep 28, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 28, 2026
@ooctipus ooctipus changed the title [Newton] Pin use_coord_layout_targets = False [Newton] Verify coordinate-layout targets without a compatibility pin Sep 28, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 28, 2026
@kellyguo11
kellyguo11 disabled auto-merge September 28, 2026 21:30
@kellyguo11
kellyguo11 merged commit 2ed561d into isaac-sim:develop Sep 28, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 5f9985c.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 28, 2026
…#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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants