Repository navigation
Recognize both quaternion signs for identity poses - #9283
Conversation
Signed-off-by: Sylvester Kaczmarek <[email protected]>
There was a problem hiding this comment.
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.
[Medium impact] The PR appears safe to merge. Summary
Reviews (1) · Last reviewed commit: "Recognize both quaternion signs for iden..." · Reviewed by Greptile |
|
run-ci |
|
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. |
|
run-ci |
|
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. |
|
Backported to |
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)
…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.
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
mainReview 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.