Skip to content

[Backport release/3.0.0] Mirror Newton frame-view pose writes onto Fabric transforms (#7691) - #7935

Merged
StafaH merged 1 commit into
isaac-sim:release/3.0.0from
mataylor-nvidia:mataylor/backport-7691-release-3.0.0
Sep 22, 2026
Merged

StafaH merged 1 commit into
isaac-sim:release/3.0.0from
mataylor-nvidia:mataylor/backport-7691-release-3.0.0

Conversation

@mataylor-nvidia

Copy link
Copy Markdown
Contributor

Description

Backports #7691 to release/3.0.0. Fixes Newton camera/frame pose writes updating physics state without moving the rendered image, and preserves the Fabric body synchronization and visualizer changes from the original PR.

Applied merge commit 7c59a04270e9401e7405b7549c7245c2a952563e without conflicts or changes. The backport patch ID matches the original, including its tests, golden images, and changelog fragments.

Type of change

  • Bug fix / release backport

Validation

  • uv run isaaclab -f: passed, with the changelog base set to the fetched release/3.0.0 tip.
  • Newton frame-view suite: 28 passed; all 25 CUDA cases failed at initialization because this host's NVIDIA driver is too old for the pinned CUDA runtime.
  • Git LFS integrity and diff whitespace checks passed.
  • Installed the isaacsim extra and attempted the camera, Fabric body-sync, and PhysX frame-view tests. Collection stopped at Omniverse Kit's interactive EULA prompt; no rendering tests ran. These tests still need an environment with the license accepted and a compatible GPU driver.

Checklist

  • Read the contribution guidelines
  • Ran formatting and pre-commit checks
  • Preserved the original regression tests and changelog fragments
  • Contributor is already listed in CONTRIBUTORS.md
  • GPU/rendering tests pass on the release branch
  • No new runtime warnings

No further release backport requested; this PR targets release/3.0.0 directly.

Backport isaac-sim#7691 without changes.\n\n(cherry picked from commit 7c59a04)
@greptile-apps

greptile-apps Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The PR appears safe to merge after correcting the non-blocking deprecation-version documentation.

Findings

  1. P2 Incorrect deprecation version ▶

Summary

This backport mirrors Newton frame-view pose writes into Fabric so renderer-visible transforms remain synchronized, factors Fabric selection bookkeeping into a shared helper, and removes the visualizer’s redundant USD camera-pose workaround.

  • Adds renderer-facing Newton site transform mirroring on writer-scope exit.
  • Shares tagged Fabric selections and live slot mapping between Newton and PhysX frame views.
  • Renames Newton body synchronization to reflect its Fabric destination while retaining a deprecated compatibility alias.
  • Adds camera, body synchronization, frame-view, and visualizer regression coverage.
  • The implementation appears behaviorally sound, but the alias records the wrong deprecation version for this release branch.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    C[Camera or FrameView caller] --> W[Newton writer scope]
    W --> N[Update Newton site-local state]
    W -->|scope exit| M[Mirror current site world poses]
    B[Newton body state] --> S[Sync body world matrices to Fabric]
    S --> M
    M --> F[Write child Fabric worldMatrix]
    F --> L[Derive localMatrix from parent worldMatrix]
    L --> R[RTX / Kit renderer]
Loading

Reviews (1) · Last reviewed commit: "Backport Newton frame-view Fabric mirror..."

def sync_transforms_to_usd(cls) -> None:
"""Write Newton body_q to Fabric world matrices for Kit viewport / RTX rendering.

.. deprecated:: v6.3.0

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.

P2 Incorrect deprecation version

This directive says the alias was deprecated in v6.3.0, but the deprecation is being introduced on the release/3.0.0 branch. This will publish an incorrect future version in the generated documentation; it should name the release that introduces the deprecation.

Suggested change
.. deprecated:: v6.3.0
.. deprecated:: v3.0.0

@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 backport cleanly centralizes Fabric transform selection and mirrors Newton frame-view pose writes into renderer-visible Fabric state, but it introduces a regression for Newton frame prims directly beneath the stage pseudoroot: mirror initialization raises after the Newton pose write has already committed.

  • Design and architecture: Sharing Fabric tagging, selections, slot mapping, and cleanup through the private FabricXformSelection helper reduces duplication between PhysX and Newton. However, the Newton mirror must remain an optional synchronization path; unsupported Fabric topology such as a prim at /Camera should disable mirroring rather than turn a previously valid Newton pose write into an exception.
  • API: The sync_transforms_to_fabric rename retains the existing sync_transforms_to_usd entry point as a deprecated forwarding alias with migration guidance, and the changed internal FabricFrameView consumers were updated consistently. No incompatible public API removal is evident.
  • Implementation: FabricXformSelection rejects stage-root children because they have no usable parent matrix. NewtonSiteFrameView catches only ImportError during mirror setup, so this deterministic RuntimeError escapes from writer-scope exit after the Newton state was modified. Handle this unsupported mirror setup as a logged, sticky mirror-disable condition so the original pose-write behavior is preserved.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

seed_from_usd=False,
skip_missing_prims=True,
)
except ImportError:

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.

🟡 Warning · Implementation — Mirror setup failure escapes through pose writes

Only ImportError is tolerated here. FabricXformSelection raises RuntimeError for a frame directly under the stage root (_parent_path rejects the pseudoroot), so a Newton view over e.g. /Camera now commits the Newton pose write and then raises from _exit_impl, where such writes previously succeeded. Catch the setup failure, log it, and set _mirror_disabled so the write contract is preserved.

@StafaH

StafaH commented Sep 22, 2026

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 22, 2026
@StafaH
StafaH merged commit ca8cb07 into isaac-sim:release/3.0.0 Sep 22, 2026
53 of 54 checks passed
qianl-nv added a commit to isaac-sim/IsaacLab-Arena that referenced this pull request Oct 23, 2026
Update Arena to the Isaac Lab 3.0.0 GA pin and Isaac Sim 6.2. Keep the
Isaac Sim base image while installing the pinned Lab and Arena source
trees from their frozen uv locks.

## Why this change?

Arena was on Lab 3.0 EA and Isaac Sim 6.1. Update to the [Isaac Lab
v3.0.0
release](https://github.com/isaac-sim/IsaacLab/releases/tag/v3.0.0),
pinned at
[`e3f7d9ff1f5d7f8280de3ece9000b7117f66bcf4`](isaac-sim/IsaacLab@e3f7d9f),
and adapt Arena to its released APIs and dependencies.

## What changes?

### Docker and uv workflow

- Follow the uv-based Docker installation introduced by Isaac Lab [PR
#7405](isaac-sim/IsaacLab#7405) and [commit
`eed50f77c53`](isaac-sim/IsaacLab@eed50f77c53),
while retaining Arena's Isaac Sim base-image stages and editable Lab
source.
- Interactive container shells alias `python` and `python3` to
`isaaclab.sh -p`, and `pytest` to `isaaclab.sh -p -m pytest`, so
commands initialize Isaac Sim and execute from `/opt/isaaclab-venv`.
- Non-interactive runtime and CI commands invoke `isaaclab.sh -p`
explicitly; build-time package operations use `uv pip` or
`/opt/isaaclab-venv/bin/python`. `/isaac-sim/python.sh` is no longer a
supported Arena entry point because it bypasses the Lab launcher and the
locked Lab virtual environment.
- Continue building from the Isaac Sim 6.2 image. Copy in uv 0.12.9 and
create `/opt/isaaclab-venv` with Isaac Sim's Kit Python.
- Sync third-party dependencies from the pinned Isaac Lab submodule's
frozen `uv.lock`. The metadata-only stage skips all local path packages;
after the complete submodule is copied, a second sync installs its
editable packages.
- Overlay Arena's non-Lab dependencies from Arena's frozen lock with `uv
sync --inexact`, then install Arena editable into the same environment.
- Pin uv 0.12.9 in Docker and native CI. Regenerating the lockfile with
the newer serializer puts Arena's Linux x86_64 constraint in top-level
`resolution-markers` and `supported-markers` and remove it from uv lock
edges.

### Torch 2.11 and CUDA 13 handling

- Isaac Lab [PR #8372](isaac-sim/IsaacLab#8372)
deliberately selects Torch 2.11.0 on CUDA 13.0. Torch 2.12's CUDA 13
NCCL 2.29 can fail beside Kit RTX or OVRTX on Blackwell because of a
driver shared-memory accounting issue. Torch 2.11 uses NCCL 2.28.9 and
avoids that failure while retaining Isaac Lab's
deferred-CUDA-initialization workaround.
- Native uv routes `torch==2.11.0` and `torchvision==0.26.0` to the
`cu130` PyTorch index. Docker takes those versions from Lab's frozen
lock instead of duplicating them in a hand-written constraint list.
Arena drops its direct `torchaudio` dependency, matching Lab.
- Build cuRobo with the CUDA 13.0 toolkit and
`CUDA_HOME=/usr/local/cuda-13.0`, matching PyTorch's CUDA major version.

### Other API and released-stack changes

- **Environment reset selectors — Lab [PR
#8030](isaac-sim/IsaacLab#8030) and [PR
#8015](isaac-sim/IsaacLab#8015 accept Lab's
tensor, slice, and `None` environment selections in Arena's environment
and recorder reset paths. This is API compatibility, no behavior change.
- **Camera observations — Lab [PR
#8051](isaac-sim/IsaacLab#8051 replace the
removed generic `mdp.image` term with the RGB, depth, normals, or
segmentation observation function selected for each modality.
Unsupported data types now fail explicitly.
- **Newton camera pose propagation — Lab [issue
#7676](isaac-sim/IsaacLab#7676), [PR
#7691](isaac-sim/IsaacLab#7691), and release
backport [PR #7935](isaac-sim/IsaacLab#7935
Lab 3.0 now mirrors Newton `FrameView` pose writes into Fabric so RTX
sees camera movement. Remove Arena [PR
#1196](#1196) and its
`CameraPoseWriter` USD workaround. Camera-extrinsics variations now use
Lab `set_local_poses()` directly; retained tests cover rendered images
and reported poses under PhysX and Newton with Fabric enabled and
disabled.
- **Runtime camera intrinsics — Lab [PR
#7916](isaac-sim/IsaacLab#7916 replace
private USD sensor access and `_update_intrinsic_matrices()` with
`Camera.set_intrinsic_matrices()`. Lab's ordinary pinhole runtime API
enforces square pixels, so Arena now samples one focal-length delta and
applies it to both `fx` and `fy`. **Note:** intrinsics variation has an
pre-existing bug before this Lab upgrade which results in env_0 camera
params being used for all parallel envs. Fix will go in a separate PR.
- **Clone-plan topology — Lab [PR
#8045](isaac-sim/IsaacLab#8045), backported in
[PR #8073](isaac-sim/IsaacLab#8073 resolve
representative scene geometry through asset-prototype IDs, prototype
paths, and clone-plan topology instead of the removed
`cloner.query.iter_sources()` helper. arena_world_scene_access.py was
updated to essentially re-implement the removed helper.
- **Franka presets — Lab [PR
#8169](isaac-sim/IsaacLab#8169) and [PR
#8170](isaac-sim/IsaacLab#8170 select
`FRANKA_PANDA_LEGACY_CFG` and `FRANKA_PANDA_LEGACY_HIGH_PD_CFG`
explicitly after Lab made the flat Franka asset the default and
introduced shared minimal presets. This keeps Arena's nested `/panda`
hierarchy, legacy joint names, and existing actuator grouping.
- **Replicator kitchen USD — Isaac Sim 6.2 asset update:** update tests
for `kitchen_peninsula.usda`, which now exposes 50 physics roots instead
of 56. Its `_OnlineVisual` physics roots decrease from 24 to 18, and the
previously discovered `_OnlineVisual` articulation is no longer present.
- Unit test pick and place success speed thresholds were relax due to
large observed residual speed. Root cause unknown yet.

## Validation

Passing local checks:

- `uv lock --check --no-python-downloads` with uv 0.12.9
- Docker build and Isaac Sim startup/import smoke checks with Torch
2.11.0+cu130 and NCCL 2.28.9
- All RL and IL sample workflow replay and inference commands are
validated and producing expected success rate.

---------

Signed-off-by: Qian Lin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants