Repository navigation
[release/3.0.0] Fix stale and misplaced camera poses with PhysX Fabric - #8760
Merged
kellyguo11 merged 6 commits intoOct 26, 2026
Merged
kellyguo11 merged 6 commits into
kellyguo11 merged 6 commits into
Conversation
pv-nvidia
requested review from
AntoineRichard,
StafaH,
fatimaanes,
hujc7,
kellyguo11,
matthewtrepte,
ooctipus and
pbarejko
as code owners
October 20, 2026 20:47
Contributor
[Medium impact] The PR appears safe to merge; no new actionable defects were established. SummaryFixes camera poses at simulation startup and after environment resets.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["PhysxManager.play()"] --> B{"Timeline state"}
B -->|Stopped| C["Play and run two Kit updates"]
B -->|Paused| D["Play, run a Kit update, and refresh Fabric"]
E["Create FabricXformSelection"] --> F["Seed transforms from USD"]
F --> G["Update Fabric hierarchy"]
G --> H["Build transform selections"]
Reviews (3) · Last reviewed commit: "Match the Python pin in the published wh..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Test quality (1). Other reviewed categories look good.
- PR description: The body omits the initial-play app pump and nine refreshed task goldens; quantify the “FPS too high” claim with baseline/candidate revisions, command, workload, warmup, and FPS.
- 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: The reset event now asserts a post-event reset pose, so rename the test and initial_pose variable to describe that behavior accurately.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
pv-nvidia
marked this pull request as draft
October 20, 2026 20:53
ooctipus
approved these changes
Oct 20, 2026
On GPU PhysX, the first camera observation from `env.reset()` showed rigid bodies at their spawn pose. The state observations were correct. A physics step made the image correct. Fixes isaac-sim#8428. This PR includes the regression test from isaac-sim#8427 (commit by @Jean-Francois-Lafleche). The renderer is correct. Fabric is stale. After the first `env.reset()` on `cuda:0`, the cube has these x positions: | Source | x [m] | | --- | --- | | PhysX tensor view (`root_view.get_transforms()`) | -0.20 (reset pose) | | Fabric `omni:fabric:worldMatrix` | -0.35 (spawn pose) | | Rendered silhouette | spawn pose | The cause is the Fabric re-synchronization in `PhysxManager.play()` (isaac-sim#5178, isaac-sim#5610). The sequence is: 1. `SimulationContext.reset()` calls `PhysxManager.play()` on the initial stop-to-play transition. 2. `play()` calls `_sync_fabric_after_resume()`, which detaches and re-attaches the `omni.physx.fabric` stage. 3. After the re-attach, `force_update()` ignores poses written through the GPU tensor API until the next `simulate()`. 4. `ManagerBasedEnv.reset()` writes the reset pose through the GPU tensor API. `forward()` calls `force_update()`, but Fabric keeps the spawn pose. These checks confirm the sequence: * With `_re_sync_fabric()` disabled, the first reset frame shows the reset pose at step 0. * A raw `simulate()` before `env.reset()` also fixes the frame. The same call at the end of `PhysxManager.reset()`, before `play()`, does not. * `fabric.update()`, `fabricUseGPUInterop=false`, and an extra detach/attach with `force_update()` do not fix the frame. * The CPU pipeline is not affected. * After the first physics step, later resets publish correctly without a step. This is why the test from isaac-sim#7891 passes. `PhysxManager.play()` now re-syncs Fabric only when the timeline resumes from pause. A fresh stop-to-play transition does not need the isaac-sim#4279 workaround. The isaac-sim#4279 workaround is still necessary on Isaac Sim 6.1. With the re-sync removed completely, the Kit pause/resume test fails: the robot stays frozen after resume (12 changed pixels, at least 100 required). This PR avoids the defect at start-up only. The defect itself is in `omni.physx.fabric` 110.3.2. After `detach_stage()` and `attach_stage()`, `force_update()` does not publish GPU tensor API pose writes until the next `simulate()`. The `force_update()` docstring says that it updates Fabric "even if simulation did not run", so this behavior is a PhysX defect. Thus, this sequence still returns a stale first frame: ```python sim.pause() sim.play() # re-attaches Fabric env.reset() # reset poses do not reach Fabric before a physics step ``` A PhysX ticket for this defect will be filed and linked in isaac-sim#8428. When PhysX fixes it, Isaac Lab can remove the re-sync condition in `play()`. If PhysX also fixes the isaac-sim#4279 resume freeze, Isaac Lab can remove the detach/attach workaround. Isaac Sim 6.1.0.0, RTX A6000, driver 595.91.07: | Test | Before | After | | --- | --- | --- | | `test_first_frame_textured_rendering.py` | first-reset test failed (IoU 0.370) | 2 passed | | `test_visualizer_integration_physx.py` (Kit pause/resume, isaac-sim#4279) | — | passed | | `test_simulation_context.py` | — | 26 passed | | `test_simulation_context_kit.py` | — | 4 passed | `test_visualizer_tiled_integration_physx.py` fails in my container with `Canvas must be an instance of HeadlessCanvas` (pyglet). It fails the same way without this change. - Bug fix (non-breaking change which fixes an issue) - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [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 - [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/develop/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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Conflict: source/isaaclab_visualizers/test/golden_images/anymal_d/physx-kit-tiled.png keeps the release version. The release refreshed this golden for the published 6.2 checkerboard (isaac-sim#8685), and the version from PR 8433 predates that refresh. The test test_visualizer_golden[physx-anymal_d-kit-tiled] passes with the kept golden. --------- Signed-off-by: JF Lafleche <[email protected]> Co-authored-by: JF Lafleche <[email protected]> Co-authored-by: pv-nvidia <[email protected]> Co-authored-by: Octi Zhang <[email protected]> (cherry picked from commit 4eccae0)
usdrt's *XformFromUsd helpers write legacy transform attributes. Only the host Fabric Hierarchy update converts them into the omni:fabric matrices, and Kit runs that update per frame only with the Fabric Scene Delegate. Without it, PhysX's GPU hierarchy update recomposed the environment prims from identity local matrices, so cameras of reset environments moved to their env-local pose. Release counterpart of isaac-sim#8739.
… seed test A scale along x commutes with a rotation about x, so the parent's scale and rotation order did not change the expected camera position.
With the play() change from isaac-sim#8433, the PhysX ANYmal-D Kit tiled capture shows the robots after the reset events instead of in their default pose. The release golden shows the default pose and fails in CI with SSIM 0.82. The golden on main includes both the play() change and the 6.2 checkerboard refresh (isaac-sim#8684). The CI capture differs from it in 1.3 % of the pixels.
With the play() change from isaac-sim#8433, the Kit update at simulation start runs one more physics step on CPU before the first test step. The cubes then fall faster, and the finite-difference acceleration from float32 velocities misses 9.81 by 2.7e-5, just over the default tolerance.
isaac-sim#8738 pinned Python 3.12 in the release uvx commands, but the test still looked for the unpinned command.
pv-nvidia
force-pushed
the
pv/release-3.0.0-fabric-camera-fixes
branch
from
October 22, 2026 21:45
9823505 to
e2b3dd7
Compare
Contributor
Author
|
run-ci |
pv-nvidia
marked this pull request as ready for review
October 26, 2026 14:36
AntoineRichard
approved these changes
Oct 26, 2026
AntoineRichard
left a comment
Collaborator
There was a problem hiding this comment.
A bit verbosy and some tests could be cut short, but if this is already in main and needed and needs to get in, then let's get it in.
kellyguo11
approved these changes
Oct 26, 2026
Yanbo-Zhu
pushed a commit
to Yanbo-Zhu/IsaacLab
that referenced
this pull request
Nov 6, 2026
isaac-sim#8760) # Description This is the release counterpart to isaac-sim#8433 and isaac-sim#8739. On `release/3.0.0`, PhysX camera tasks have two camera pose problems: - When the benchmark loads the RTX renderer at runtime (`summary` or `omniperf` formatter), cameras with the Newton Warp renderer sit at the world origin and render empty images. Benchmark FPS for these tasks is therefore too high. With 8192 environments, the render step takes 12.6 ms instead of about 140 ms. - The first camera observation after a reset shows the poses from before the reset (isaac-sim#8428). Both come from the Fabric re-attach in `PhysxManager.play()` at simulation start. This PR: - Backports isaac-sim#8433: `play()` re-attaches Fabric only after a timeline resume (isaac-sim#4279), not at simulation start. At simulation start, it runs one extra Kit update instead. isaac-sim#8433 also refreshes nine task rendering goldens (cartpole, Cartpole-Camera-Direct, Reorient-Cube-Shadow-Camera-Direct, and shadow hand) and the cartpole `physx-kit-tiled` visualizer golden. - Backports isaac-sim#8739: Fabric frame views run the host Fabric Hierarchy update once after they seed their transforms. Without it, removing the re-attach makes every camera of a reset environment move to its env-local pose when the Fabric Scene Delegate is off. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation Tested on an RTX A6000 with `Isaac-Lift-KukaAllegro-Camera`, PhysX, the Newton Warp renderer, and 8192 environments: - After all environments reset, all 8192 cameras are correct in training. - In the `summary` benchmark mode, all 8192 cameras are correct. On the unchanged release, all 8192 sit at the world origin. - The new test `test_hierarchy_update_keeps_seeded_world_poses` fails without the fix and passes with it. - The Fabric frame view tests, the RTX rigid object rendering tests, the isaac-sim#8428 first-frame tests, the simulation context tests, and the Kit pause/resume tests pass. The play() change makes two release tests need an update: - `test_visualizer_golden[physx-anymal_d-kit-tiled]` now captures the robots after the reset events. This PR uses the golden from `main`, which also has the 6.2 checkerboard refresh (isaac-sim#8684). - On CPU, the Kit update at simulation start runs one more physics step before the first test step. The finite-difference acceleration in the PhysX `test_gravity_vec_w` tests then misses 9.81 by 2.7e-5. These tests now allow `atol=1e-4`. GPU runs the same number of steps as before. This PR also updates `test_published_wheel_docs_cover_one_off_and_managed_uv_workflows`. isaac-sim#8738 pinned Python 3.12 in the release `uvx` commands, but not in this test, so the core tests failed for every release PR. isaac-sim#8739 is still open on `main`. This PR carries its final change. ## 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 - [ ] 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/develop/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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: JF Lafleche <[email protected]> Co-authored-by: JF Lafleche <[email protected]> Co-authored-by: pv-nvidia <[email protected]> Co-authored-by: Octi Zhang <[email protected]>
Yanbo-Zhu
pushed a commit
to Yanbo-Zhu/IsaacLab
that referenced
this pull request
Nov 7, 2026
isaac-sim#8760) # Description This is the release counterpart to isaac-sim#8433 and isaac-sim#8739. On `release/3.0.0`, PhysX camera tasks have two camera pose problems: - When the benchmark loads the RTX renderer at runtime (`summary` or `omniperf` formatter), cameras with the Newton Warp renderer sit at the world origin and render empty images. Benchmark FPS for these tasks is therefore too high. With 8192 environments, the render step takes 12.6 ms instead of about 140 ms. - The first camera observation after a reset shows the poses from before the reset (isaac-sim#8428). Both come from the Fabric re-attach in `PhysxManager.play()` at simulation start. This PR: - Backports isaac-sim#8433: `play()` re-attaches Fabric only after a timeline resume (isaac-sim#4279), not at simulation start. At simulation start, it runs one extra Kit update instead. isaac-sim#8433 also refreshes nine task rendering goldens (cartpole, Cartpole-Camera-Direct, Reorient-Cube-Shadow-Camera-Direct, and shadow hand) and the cartpole `physx-kit-tiled` visualizer golden. - Backports isaac-sim#8739: Fabric frame views run the host Fabric Hierarchy update once after they seed their transforms. Without it, removing the re-attach makes every camera of a reset environment move to its env-local pose when the Fabric Scene Delegate is off. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation Tested on an RTX A6000 with `Isaac-Lift-KukaAllegro-Camera`, PhysX, the Newton Warp renderer, and 8192 environments: - After all environments reset, all 8192 cameras are correct in training. - In the `summary` benchmark mode, all 8192 cameras are correct. On the unchanged release, all 8192 sit at the world origin. - The new test `test_hierarchy_update_keeps_seeded_world_poses` fails without the fix and passes with it. - The Fabric frame view tests, the RTX rigid object rendering tests, the isaac-sim#8428 first-frame tests, the simulation context tests, and the Kit pause/resume tests pass. The play() change makes two release tests need an update: - `test_visualizer_golden[physx-anymal_d-kit-tiled]` now captures the robots after the reset events. This PR uses the golden from `main`, which also has the 6.2 checkerboard refresh (isaac-sim#8684). - On CPU, the Kit update at simulation start runs one more physics step before the first test step. The finite-difference acceleration in the PhysX `test_gravity_vec_w` tests then misses 9.81 by 2.7e-5. These tests now allow `atol=1e-4`. GPU runs the same number of steps as before. This PR also updates `test_published_wheel_docs_cover_one_off_and_managed_uv_workflows`. isaac-sim#8738 pinned Python 3.12 in the release `uvx` commands, but not in this test, so the core tests failed for every release PR. isaac-sim#8739 is still open on `main`. This PR carries its final change. ## 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 - [ ] 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/develop/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) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: JF Lafleche <[email protected]> Co-authored-by: JF Lafleche <[email protected]> Co-authored-by: pv-nvidia <[email protected]> Co-authored-by: Octi Zhang <[email protected]>
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
This is the release counterpart to #8433 and #8739.
On
release/3.0.0, PhysX camera tasks have two camera pose problems:summaryoromniperfformatter), cameras with the Newton Warp renderer sit at the world origin and render empty images. Benchmark FPS for these tasks is therefore too high. With 8192 environments, the render step takes 12.6 ms instead of about 140 ms.Both come from the Fabric re-attach in
PhysxManager.play()at simulation start. This PR:play()re-attaches Fabric only after a timeline resume ([Bug Report] Robot visualization freeze when resume sim in IsaacSim5.1 #4279), not at simulation start. At simulation start, it runs one extra Kit update instead. Fix/first reset camera stale 8428 #8433 also refreshes nine task rendering goldens (cartpole, Cartpole-Camera-Direct, Reorient-Cube-Shadow-Camera-Direct, and shadow hand) and the cartpolephysx-kit-tiledvisualizer golden.Type of change
Validation
Tested on an RTX A6000 with
Isaac-Lift-KukaAllegro-Camera, PhysX, the Newton Warp renderer, and 8192 environments:summarybenchmark mode, all 8192 cameras are correct. On the unchanged release, all 8192 sit at the world origin.test_hierarchy_update_keeps_seeded_world_posesfails without the fix and passes with it.The play() change makes two release tests need an update:
test_visualizer_golden[physx-anymal_d-kit-tiled]now captures the robots after the reset events. This PR uses the golden frommain, which also has the 6.2 checkerboard refresh (Refresh rendering references for the published 6.2 checkerboard #8684).test_gravity_vec_wtests then misses 9.81 by 2.7e-5. These tests now allowatol=1e-4. GPU runs the same number of steps as before.This PR also updates
test_published_wheel_docs_cover_one_off_and_managed_uv_workflows. #8738 pinned Python 3.12 in the releaseuvxcommands, but not in this test, so the core tests failed for every release PR.#8739 is still open on
main. This PR carries its final change.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