Repository navigation
Fix AutoMate curr_yaw wrapping for signed Euler angles - #9312
Merged
Merged
Conversation
nfukuchi
requested review from
StafaH,
hujc7,
kellyguo11 and
ooctipus
as code owners
November 30, 2026 14:01
Contributor
There was a problem hiding this comment.
Isaac Lab Review Bot
All reviewed code categories look good.
- PR description: The title and scope match the diff; replace the unsupported claim that unit testing can only replay the expression with the actual validation limitation, and state whether Assembly exercised 180°–235° yaw.
- 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: Style consistency looks good.
- Test quality: Test quality looks good.
No blocking issues. No inline findings.
Automated review; human maintainers own approval decisions.
Contributor
[Low impact] The PR appears safe to merge. SummaryBoth AutoMate environments now request unsigned Euler angles before applying the existing yaw mapping.
nfukuchi explicitly chose not to add a unit test because calling these methods requires a simulated scene. Reviews (1) · Last reviewed commit: "Fix AutoMate curr_yaw wrapping for signe..." · Reviewed by Greptile |
kellyguo11
approved these changes
Nov 30, 2026
Contributor
|
run-ci |
Contributor
|
Backported to |
isaaclab-bot Bot
pushed a commit
that referenced
this pull request
Nov 30, 2026
# Description `euler_xyz_from_quat` returns angles in `(-pi, pi]` by default since #2365. `AssemblyEnv._apply_action()` and `DisassemblyEnv._apply_action()` compute the `curr_yaw` attribute with the Factory yaw mapping, which still assumes the former `[0, 2*pi)` range: yaws above 235 degrees are moved down by `2*pi`, so the span `[-125, 235]` degrees is not interrupted by the yaw joint limit. With signed input the mapping does nothing, and a yaw between 180 and 235 degrees comes out between -180 and -125 degrees. This PR requests `wrap_to_2pi=True` for these two calls, as #8804 did for FORGE. Nothing in the repository reads `curr_yaw` today, so there is no behavior change for the current tasks. The fix restores the attribute's intended range so that code reading it, such as a nut-thread style rotation check using `ee_success_yaw` from the AutoMate config, gets the expected value. Related: #8779, #8804 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Validation - AutoMate Assembly runs with the change (PhysX), and `curr_yaw` stays in `[-125, 235]` degrees. - Searched the repository: nothing reads `curr_yaw`, so the current tasks are unaffected. - `uv run isaaclab --format` passed every hook, including the ruff hooks, the license headers and the changelog fragment check. - No new unit test. The changed calls live inside `DirectRLEnv` methods that need a simulated scene, so the only way to unit-test them would be to replay the production expression. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation (not applicable: no public API change) - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit 87a150d)
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
euler_xyz_from_quatreturns angles in(-pi, pi]by default since #2365.AssemblyEnv._apply_action()andDisassemblyEnv._apply_action()compute thecurr_yawattribute with the Factory yaw mapping, which still assumes the former[0, 2*pi)range: yaws above 235 degrees are moved down by2*pi, so the span[-125, 235]degrees is not interrupted by the yaw joint limit. With signed input the mapping does nothing, and a yaw between 180 and 235 degrees comes out between -180 and -125 degrees.This PR requests
wrap_to_2pi=Truefor these two calls, as #8804 did for FORGE.Nothing in the repository reads
curr_yawtoday, so there is no behavior change for the current tasks. The fix restores the attribute's intended range so that code reading it, such as a nut-thread style rotation check usingee_success_yawfrom the AutoMate config, gets the expected value.Related: #8779, #8804
Type of change
Release backport
mainValidation
curr_yawstays in[-125, 235]degrees.curr_yaw, so the current tasks are unaffected.uv run isaaclab --formatpassed every hook, including the ruff hooks, the license headers and the changelog fragment check.DirectRLEnvmethods that need a simulated scene, so the only way to unit-test them would be to replay the production expression.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