Skip to content

fix(frame-transformer): keep duplicate implicit offsets distinct - #7902

Merged
ooctipus merged 3 commits into
isaac-sim:developfrom
Xalzeroph:fix/frame-transformer-duplicate-offset
Sep 21, 2026
Merged

ooctipus merged 3 commits into
isaac-sim:developfrom
Xalzeroph:fix/frame-transformer-duplicate-offset

Conversation

@Xalzeroph

Copy link
Copy Markdown
Contributor

Description

This fixes duplicate implicit FrameTransformer names losing their per-body offsets.

When two distinct bodies share the same leaf name and both target frames omit name, the implicit frame name is identical for both entries. The PhysX and OVPhysX implementations previously keyed target_offsets only by that frame name, so the later configuration overwrote the earlier one. This can corrupt frame-relative observations used by embodied-control policies.

The offset map now keys each entry by (body_path, frame_name), preserving distinct offsets while retaining backward-compatible duplicate frame names.

Fixes #7830

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change
  • Documentation update

Tests

  • Extended the duplicate-body-name regression tests for PhysX and OVPhysX with distinct offsets.
  • git diff --check
  • python -m py_compile on the modified implementations and tests.
  • Full IsaacLab/Isaac Sim backend tests (not available in this environment because the simulator runtime is not installed).

@Xalzeroph
Xalzeroph requested a review from a team September 19, 2026 11:24
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 19, 2026
@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the body-specific key resolves the reported collision consistently across both implementations.

Summary

This PR fixes duplicate implicit FrameTransformer names overwriting offsets by keying each configured offset with both its normalized body path and frame name.

  • Applies the correction consistently to the PhysX and OVPhysX implementations.
  • Extends both backend regression tests with distinct per-body offsets.
  • Adds changelog entries for both backends.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Target frame configuration] --> B[Resolve normalized body path]
    A --> C[Resolve explicit or implicit frame name]
    B --> D["Offset key: body path, frame name"]
    C --> D
    D --> E[Build per-target offset tensors]
    E --> F[Apply each offset to its resolved body]
Loading

Reviews (1) · Last reviewed commit: "fix(frame-transformer): keep duplicate i..."

@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 patch changes the private offset-map key in both FrameTransformer backends from frame name alone to (relative_body_path, frame_name), preserving distinct offsets for bodies with duplicate implicit frame names. Matching regression coverage and package-specific changelog fragments are included.

  • Design and architecture: The change is narrowly scoped and symmetric across the PhysX and OVPhysX implementations. It uses the same relative body identity already shared by frame collection and target-frame reconstruction, keeping offset production and consumption aligned without changing the surrounding architecture.
  • API: No public API is changed. Duplicate implicit target-frame names remain supported for compatibility, while their internal offsets are now distinguished by body path. Both affected source packages include user-visible changelog fragments.
  • Implementation: The updated tuple key is used consistently at every changed write and read of target_offsets. The regression tests configure distinct positional offsets on same-named bodies and calculate expected world transforms with combine_frame_transforms. Simulator-backed execution was not reported, leaving runtime validation to CI, but the changed data flow is internally consistent.

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.

@ooctipus

Copy link
Copy Markdown
Collaborator

thanks for fixing the bug :D

@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 21, 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 21, 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 21, 2026
@ooctipus ooctipus added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Sep 21, 2026
@ooctipus
ooctipus merged commit f29bd84 into isaac-sim:develop Sep 21, 2026
95 of 146 checks passed
StafaH pushed a commit that referenced this pull request Sep 21, 2026
…7902) (#7930)

Backports #7902 to `release/3.0.0`.

When distinct target bodies share an implicit frame name,
`FrameTransformer` reused the last configured offset for both. This
preserves each body's offset in the PhysX and OVPhysX backends and
extends the existing duplicate-body-name tests with distinct offsets.

Clean cherry-pick of f29bd84, including
both changelog fragments. The backport validator confirms an exact
patch; all six files match the merged source commit.

Validation:
- 12 targeted regression cases passed: PhysX CPU (4), OVPhysX CPU (4),
and OVPhysX CUDA (4).
- Restoring the pre-fix initializer reproduced the expected offset
assertion failure in both backends.
- `uv run isaaclab -f` and `git diff --check` passed.

Local PhysX validation used Isaac Sim 6.0.1; CI covers the pinned 6.1
environment.

Co-authored-by: Zihan Xu <[email protected]>
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
@ooctipus ooctipus self-assigned this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci:run-docker Trigger the on-demand Docker and GPU CI workflow isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] FrameTransformer overwrites offsets for duplicate implicit frame names

2 participants