Repository navigation
[Backport release/3.0.0] Mirror Newton frame-view pose writes onto Fabric transforms (#7691) - #7935
Conversation
Backport isaac-sim#7691 without changes.\n\n(cherry picked from commit 7c59a04)
|
| def sync_transforms_to_usd(cls) -> None: | ||
| """Write Newton body_q to Fabric world matrices for Kit viewport / RTX rendering. | ||
|
|
||
| .. deprecated:: v6.3.0 |
There was a problem hiding this comment.
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.
| .. deprecated:: v6.3.0 | |
| .. deprecated:: v3.0.0 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
🟡 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.
|
run-ci |
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]>
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
7c59a04270e9401e7405b7549c7245c2a952563ewithout conflicts or changes. The backport patch ID matches the original, including its tests, golden images, and changelog fragments.Type of change
Validation
uv run isaaclab -f: passed, with the changelog base set to the fetchedrelease/3.0.0tip.isaacsimextra 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
No further release backport requested; this PR targets
release/3.0.0directly.