Skip to content

Recognize both quaternion signs for identity poses - #9283

Merged
kellyguo11 merged 5 commits into
isaac-sim:mainfrom
sylvesterkaczmarek:fix/identity-quaternion-sign
Dec 1, 2026
Merged

kellyguo11 merged 5 commits into
isaac-sim:mainfrom
sylvesterkaczmarek:fix/identity-quaternion-sign

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

is_identity_pose rejects [0, 0, 0, -1], although it represents the same rotation as [0, 0, 0, 1]. Canonicalize quaternion signs before comparing with the identity. Keep the existing tolerance and reject nonunit or nonidentity rotations.

Validation: reproduced on main. The original and new identity-pose assertions passed on CPU in an isolated harness. Full pytest collection is blocked by missing SciPy in the local environment.

Release backport

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

Review follow-up

Removed the unused identity-rotation clone and reused the tensor before its subsequent reassignment. All identity and nonidentity assertions are retained. The full test_math.py file now runs in an isolated macOS arm64 Python 3.12 environment with PyTorch 2.11.0, NumPy 2.5.5 and SciPy 1.18.1: 123 passed, 3 skipped, 337 dependency deprecation warnings. Ruff 0.14.10 formatting/lint and diff checks passed. CUDA and hosted CI remain outstanding.

@sylvesterkaczmarek
sylvesterkaczmarek requested a review from a team November 28, 2026 13:32
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Nov 28, 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

Needs attention: Scope and over-engineering (1). Other reviewed categories look good.

  • PR description: The title and body match the three-file diff, and validation reports CPU-harness success while explicitly disclosing that missing SciPy blocked pytest collection.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: Minimal implementation: Keep the change in math.py:is_identity_pose, extend test_math.py:test_is_identity_pose, and retain the changelog fragment; delete the unnecessary clone and mutate identity_rot directly for rejection cases because it is subsequently reassigned; no source modules were added and no layers need merging; Scope is cohesive; no split recommended.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 1 inline finding.

Automated review; human maintainers own approval decisions.

Comment thread source/isaaclab/test/utils/test_math.py Resolved
@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

is_identity_pose now accepts both quaternion signs for an identity rotation.

  • Identity-pose checks accept either sign of the unit quaternion.

Reviews (1) · Last reviewed commit: "Recognize both quaternion signs for iden..." · Reviewed by Greptile

@pbarejko

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 Nov 30, 2026
@kellyguo11
kellyguo11 enabled auto-merge (squash) November 30, 2026 20:29
@sylvesterkaczmarek

sylvesterkaczmarek commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the approvals. I checked the red jobs at 8d3bbeb: the earlier Docker + Tests run was cancelled during initialization, and the four package summaries reported cancellation rather than a test failure. The subsequent run 46505136665 succeeded at the same commit. The earlier documentation job encountered a 403 fetching the external Omniverse intersphinx inventory; its rerun was underway at the last check. The focused math suite passed locally (123 passed, 3 skipped). No code changes are indicated.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 30, 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 Dec 1, 2026
@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Thanks, Kelly, for kicking off CI again. I checked the four red package summaries from run 46552269622: each reported RESULT: cancelled. All four (mimic, experimental, contrib and teleop) are green on the subsequent run 46552305766, along with the core test shards. The non-Kit headless demo was the only job still running at my last check. Leaving the approved branch unchanged.

@kellyguo11
kellyguo11 merged commit 3898754 into isaac-sim:main Dec 1, 2026
128 of 163 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.1.0 as 8cec147.

isaaclab-bot Bot pushed a commit that referenced this pull request Dec 1, 2026
is_identity_pose rejects [0, 0, 0, -1], although it represents the same
rotation as [0, 0, 0, 1]. Canonicalize quaternion signs before comparing
with the identity. Keep the existing tolerance and reject nonunit or
nonidentity rotations.

Validation: reproduced on main. The original and new identity-pose
assertions passed on CPU in an isolated harness. Full pytest collection
is blocked by missing SciPy in the local environment.

## Review follow-up

Removed the unused identity-rotation clone and reused the tensor before
its subsequent reassignment. All identity and nonidentity assertions are
retained. The full test_math.py file now runs in an isolated macOS arm64
Python 3.12 environment with PyTorch 2.11.0, NumPy 2.5.5 and SciPy
1.18.1: 123 passed, 3 skipped, 337 dependency deprecation warnings. Ruff
0.14.10 formatting/lint and diff checks passed. CUDA and hosted CI
remain outstanding.

---------

Signed-off-by: Sylvester Kaczmarek <[email protected]>

(cherry picked from commit 3898754)
@sylvesterkaczmarek
sylvesterkaczmarek deleted the fix/identity-quaternion-sign branch December 2, 2026 15:46
AntoineRichard added a commit to AntoineRichard/IsaacLab that referenced this pull request Dec 3, 2026
…ates

Move the PR description evidence rules into the contribution guide and route
the PR workflow skill to them. The SPRI skill now scales with the change,
keeps the number or name that is the point, keeps per-section openings for
long documents only, treats inferences as invented facts, and uses merged PR
descriptions (isaac-sim#9283, isaac-sim#9297, isaac-sim#9167) as examples. The issue skill stops when
issues are disabled or a duplicate exists, and checks permalinks instead of
every link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants