Skip to content

Fix/first reset camera stale 8428 - #8433

Merged
ooctipus merged 6 commits into
isaac-sim:developfrom
pv-nvidia:fix/first-reset-camera-stale-8428
Oct 12, 2026
Merged

ooctipus merged 6 commits into
isaac-sim:developfrom
pv-nvidia:fix/first-reset-camera-stale-8428

Conversation

@pv-nvidia

@pv-nvidia pv-nvidia commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

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 #8428. This PR includes the regression test from #8427 (commit by @Jean-Francois-Lafleche).

Root cause

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() (#5178, #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 Add reset tests #7891 passes.

Change

PhysxManager.play() now re-syncs Fabric only when the timeline resumes from pause. A fresh stop-to-play transition does not need the #4279 workaround.

The #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).

Remaining PhysX defect

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:

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 #8428. When PhysX fixes it, Isaac Lab can remove the re-sync condition in play(). If PhysX also fixes the #4279 resume freeze, Isaac Lab can remove the detach/attach workaround.

Validation

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, #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.

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 develop

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • 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
  • 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

Jean-Francois-Lafleche and others added 2 commits October 9, 2026 18:56
PhysxManager.play() re-attached the PhysX Fabric stage on every call,
including the initial stop-to-play transition in SimulationContext.reset().
After a re-attach, omni.physx.fabric force_update() ignores poses written
through the GPU tensor API until the next simulate() call. Reset events
before the first physics step therefore rendered bodies at their spawn
pose.

Re-sync Fabric only when the timeline resumes from pause, which is the
case that the isaac-sim#4279 workaround targets.

Fixes isaac-sim#8428
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Oct 9, 2026
@ooctipus
ooctipus marked this pull request as ready for review October 11, 2026 22:55
@ooctipus
ooctipus requested a review from a team October 11, 2026 22:55
@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 Oct 11, 2026
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

PhysxManager.play() now re-attaches Fabric only when resuming from pause.

  • Fresh GPU starts show reset poses in the first camera frame.
  • The contributor list now includes JF Lafleche.

pv-nvidia explicitly acknowledges that a camera frame immediately after pause/resume can still be stale because of the remaining PhysX defect. This fix is limited to startup.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A["PhysxManager.play()"] --> B{"Timeline was paused?"}
  B -->|No| C["Start timeline without re-attaching Fabric"]
  B -->|Yes| D["Start timeline and re-sync Fabric"]
  C --> E["env.reset() writes reset poses"]
  E --> F["Camera test checks first frame before physics steps"]
Loading

Reviews (1) · Last reviewed commit: "Clarify Fabric resume workaround and con..." · Reviewed by Greptile

@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

Needs attention: Implementation (1), Style consistency (1). Other reviewed categories look good.

  • PR description: Replace “includes the regression test” with “extends the existing regression test,” and condense the failed-experiment list while retaining the root cause, remaining limitation, and validation results.
  • 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: wait_for_playing() still re-syncs Fabric after a stop-to-play transition, preserving the stale first-reset frame on that path; apply the same resume-only guard used by play().
  • Style consistency: initial_pose, initial_depth, and initial_mask now represent the event-modified reset pose, obscuring the spawn-versus-reset distinction; rename them with reset-pose vocabulary.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 2 inline findings.

Automated review; human maintainers own approval decisions.

cube = env.scene["cube"]
initial_pose = cube.data.default_root_pose.torch.clone()
initial_pose[:, :3] += env.scene.env_origins
initial_pose[:, 0] += reset_x_offset

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 · Style Consistency — Stale initial_pose name after reset offset

initial_pose now holds the post-event reset pose, not the spawn pose the test deliberately distinguishes from it. Rename it and the derived initial_depth/initial_mask to reset-pose vocabulary so the names match the asserted contract.

# Pump events so timeline callbacks fire synchronously
omni.kit.app.get_app().update()
cls._sync_fabric_after_resume()
if resuming:

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 — wait_for_playing still re-syncs on stop-to-play

wait_for_playing (line 621) calls _sync_fabric_after_resume() unconditionally, including the stop-to-play transition it blocks on in GUI runs, so the stale first-reset frame persists on that path. Apply the same resume-only guard there.

@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 Oct 11, 2026
@ooctipus ooctipus added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Oct 11, 2026
@ooctipus ooctipus removed the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Oct 12, 2026
@ooctipus
ooctipus merged commit 4eccae0 into isaac-sim:develop Oct 12, 2026
59 checks passed
kellyguo11 added a commit that referenced this pull request Oct 12, 2026
# Description

Refreshes the PhysX ANYmal-D Kit tiled golden image after #8457 changed
tiled-camera convergence to advance Kit on every warmup frame. The
previous golden was captured by #8433 before those changes were
combined, so it retained temporal blur while the current capture is
sharp.

The first observed failure after the merge started at 2026-10-12 03:37
UTC in run
https://github.com/isaac-sim/IsaacLab/actions/runs/38200234944. The old
baseline fails with a 13.19% pixel difference against the 12% limit.
Four independent post-merge captures agree within 0.018-0.019% and SSIM
0.99878-0.99880.

This replaces only the affected golden and adds a skip changelog
fragment. It does not relax comparison thresholds.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Validation

- Regression comparison: old golden fails at 13.19%; replacement passes
at 0%.
- Cross-run comparison: three other CI captures pass at 0.018-0.019%,
SSIM 0.99878-0.99880.
- `uv run python tools/changelog/cli.py check upstream/develop
--include-worktree`
- `uv run isaaclab -f` (all applicable hooks passed; the changelog hook
was also run separately against the actual upstream base because the
fork tracking ref is stale)

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab --format`
- [x] Documentation changes are not applicable to this test-only
baseline update
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the test-audit criteria
- [x] I have added a changelog fragment under
`source/isaaclab_visualizers/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 19, 2026
Add a Cartpole first-reset test whose joint offsets move links through
forward kinematics, which follows a different Fabric path than rigid
root pose writes. The test fails with the PhysxManager.play() code from
before isaac-sim#8433 (IoU 0.400) and passes with the fix.

Add a strict xfail test for a reset directly after pause and resume.
omni.physx.fabric force_update() ignores GPU tensor pose writes after the
resume re-attach until the next simulate() call. Only a dedicated stale
frame error counts as the expected failure, so pose and step-count
regressions still fail the test. The test flags when a PhysX update
fixes this limitation.

Restore the check that the cube holds the reset pose while the reference
frame stabilizes. Share the scene setup, step, pose, and silhouette
helpers between the reset tests, use the core Cartpole test scene, and
scope the tests to the default CUDA device through test_devices().
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 21, 2026
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.
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 21, 2026
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.
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 22, 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)
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 22, 2026
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.
pv-nvidia added a commit to pv-nvidia/pv-isaac-lab that referenced this pull request Oct 22, 2026
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.
kellyguo11 pushed a commit that referenced this pull request Oct 26, 2026
#8760)

# Description

This is the release counterpart to #8433 and #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 (#8428).

Both come from the Fabric re-attach in `PhysxManager.play()` at
simulation start. This PR:

- Backports #8433: `play()` re-attaches Fabric only after a timeline
resume (#4279), not at simulation start. At simulation start, it runs
one extra Kit update instead. #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 #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
#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 (#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`.
#8738 pinned Python 3.12 in the release `uvx` commands, 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

- [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 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]>
maxkra15 pushed a commit that referenced this pull request Nov 11, 2026
# Description

Extend the existing reset camera test with checks of the Fabric world
transforms. Tests only, no production change.

Fixes the remaining test gap of #8428. #8433 fixed the defect.

## What changed

`test_env_reset_restores_initial_pose_in_camera_observation` in
`source/isaaclab/test/sensors/test_first_frame_textured_rendering.py`
now also reads `omni:fabric:worldMatrix` of the cube:

- after the first reset,
- after the cube moves, so that a stale Fabric cannot match the later
reset pose,
- after the later reset.

RTX renders from these matrices. The Fabric checks show if a failure
comes from the Fabric publication or from the render path. The depth
image checks stay unchanged.

## Validation

Mutation checks. Each change was applied temporarily, and the file was
run:

| Mutation | Result |
| --- | --- |
| `PhysxManager.play()` re-syncs Fabric on the first start (code before
#8433) | Fails at the first-reset Fabric check (0.15 m off) |
| `num_rerenders_on_reset = 0` | Fabric checks pass, only the image
check fails (IoU 0.370) |

## CI cost

No new test file, so no additional Kit start-up. Local timing of the
file with warm caches (pytest time, two runs each):

| Branch | `test_first_frame_textured_rendering.py` |
| --- | --- |
| `develop` | 18.0 s, 18.2 s |
| This PR | 17.6 s, 18.2 s |

The added cost is below the run-to-run variation.

## 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
- [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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: pv-nvidia <[email protected]>
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.

First reset camera observation remains stale on Isaac Sim 6.1

3 participants