Skip to content

Fix AutoMate curr_yaw wrapping for signed Euler angles - #9312

Merged
kellyguo11 merged 1 commit into
isaac-sim:mainfrom
nfukuchi:fix/automate-curr-yaw-wrap
Nov 30, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:mainfrom
nfukuchi:fix/automate-curr-yaw-wrap

Conversation

@nfukuchi

Copy link
Copy Markdown
Contributor

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

  • 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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation (not applicable: no public API change)
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • 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

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

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.

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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

[Low impact] The PR appears safe to merge.

Summary

Both AutoMate environments now request unsigned Euler angles before applying the existing yaw mapping.

  • AutoMate assembly and disassembly keep current yaw in the expected range.

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

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 Nov 30, 2026
@kellyguo11
kellyguo11 merged commit 87a150d into isaac-sim:main Nov 30, 2026
62 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.1.0 as 02d74e5.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants