Skip to content

[release/0.4.0] Backport reset camera rendering (#1797) - #1817

Merged
qianl-nv merged 1 commit into
release/0.4.0from
qianl/fix/reset-camera-render-release-0.4.0
Dec 3, 2026
Merged

qianl-nv merged 1 commit into
release/0.4.0from
qianl/fix/reset-camera-render-release-0.4.0

Conversation

@qianl-nv

@qianl-nv qianl-nv commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Cherry-pick #1797 (79cbb89918a79dd2fe764368cdb8c85e111ea12a) into release/0.4.0. Render camera observations on reset by default, while suppressing unnecessary reset renders after an episode-limited evaluation has assigned all its episodes.

Addresses NVBug 7141102.

What changes?

Set num_rerenders_on_reset=1 for Arena environments using Lab's existing rendering pipeline. Restore the configured value after each step, including exceptions. Include the source PR's episode-limit and camera reset regression coverage.

The cherry-pick applies without conflicts and has the same patch as the merged commit.

Validation and remaining limitation

The original visual comparisons and reset-render latency measurements are in #1797. Its headless Newton recording validation reduced black first camera images from 9/9 to 0/9.

This backport retains the known PhysX frame-zero pose limitation and its test skips. The underlying geometry/transform publication issue remains tracked in NVBug 7183639.

Set `num_rerenders_on_reset=1` by default for Newton and PhysX so
policies and recorders receive a rendered reset observation. Suppress
reset renders once an episode-limited run has assigned all its episodes.

## Why this change?

Headless Newton recording can store a black first camera frame after a
hard simulation reset. Reset observations can also retain pixels from
the previous scene state. See [NVBug
7141102](https://nvbugs.nvidia.com/7141102).

## What changes?

- Use Lab's existing reset-render pipeline, before recorder hooks and
observation consumption. Lab gates rendering on RTX sensors; explicit
environment overrides remain available.
- Avoid extra reset renders during the idle tail of finite evaluations,
restoring the configured setting even if stepping fails.
- Test camera positions across two episodes: construction at image
center, first reset at bottom left, second reset at top right. Each
episode's end frame must match its reset position. Run camera collection
in the test call phase so failures work with the existing pytest
shutdown hook.

## Validation

### Newton deformable recording

Earlier headless DROID HDF5 captures on Lab `e3f7d9ff`, changing only
the reset-render setting. Episode 1, external camera, frame 0:

| Before: `num_rerenders_on_reset=0` | After: `num_rerenders_on_reset=1`
|
|---|---|
| ![Black first
frame](https://github.com/user-attachments/assets/40ec306f-f17d-4792-9e25-bff489873cb0)
| ![Rendered first
frame](https://github.com/user-attachments/assets/d81974da-fdc9-464d-8911-43f0abbde23b)
|
| Mean RGB **0.000** | Mean RGB **218.260** |

Across three episodes and three cameras, black first images dropped from
**9/9 to 0/9**. [Recording and policy-observation
comparisons](https://docs.google.com/document/d/123n9w86Wte7-zsUjBbii2lCur7w-Ebcl0N2xnGBvrK4).

### Remaining PhysX pose issue

Fresh diagnostic captures with the updated positions, one reset render,
headless Isaac RTX, and pinned Lab `e3f7d9ff`. Entries show **episode 1
/ episode 2 frame 0**:

| Backend/object | Ordinary reset | Hard simulation reset |
|---|---|---|
| Newton rigid | Pass / Pass | Pass / Pass |
| Newton deformable | Pass / Pass | Pass / Pass |
| PhysX rigid | **Fail** / Pass | **Fail / Fail** |
| PhysX deformable | **Fail / Fail** | **Fail / Fail** |

All frame-1 and episode-end images show the correct position. PhysX
physics positions are correct before rendering catches up; the remaining
geometry/transform publication issue requires a Lab fix ([NVBug
7183639](https://nvbugs.nvidia.com/7183639)). Affected ordinary-reset
checks are skipped with a TODO; redundant PhysX hard-reset builds are
omitted from the normal suite.

Run the camera tests:

```bash
env OMNI_KIT_ACCEPT_EULA=YES ACCEPT_EULA=Y \
  PYTHONPATH="$PWD:$PWD/isaaclab_arena_embodiments:$PWD/isaaclab_arena_policies" \
  .venv/bin/python -m pytest -sv isaaclab_arena/tests/test_camera_reset_object_pose.py
```

#### Test results before
Red: rendered pose; blue: expected pose based on reset
<img width="1304" height="307" alt="image"
src="https://github.com/user-attachments/assets/8784889c-4468-436c-ac72-4039a90a79ac"
/>
<img width="1300" height="256" alt="image"
src="https://github.com/user-attachments/assets/7f44be24-31a6-42d8-8959-d387222cd426"
/>

#### Test results after
<img width="1305" height="299" alt="image"
src="https://github.com/user-attachments/assets/a050e129-2286-43e4-bf40-e73a7bf8413a"
/>
<img width="1300" height="256" alt="image"
src="https://github.com/user-attachments/assets/dd2fe76a-f049-42b3-b429-b1379b374a4a"
/>

### Reset-render cost

At **96 environments**, measured additional render latency was **122.5
ms** for one environment resetting and **152.4 ms total** for all 96
resetting together, excluding policy inference and placement-pool
refills. For **960 episodes / 864 replacement resets**, the estimated
added latency is **1.37 s best case** (nine synchronized batches) to
**105.8 s worst case** (864 separate reset steps), excluding the initial
reset.

---------

(cherry picked from commit 79cbb89)
Signed-off-by: Qian Lin <[email protected]>
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

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

Summary

Enables one reset render by default through Isaac Lab’s existing pipeline.

  • Camera observations show the reset pose from their first frame.
  • Episode-limited runs stop rendering resets for idle environments.

qianl-nv explicitly identifies the PhysX frame-zero pose mismatch as a known limitation tracked separately.

Reviews (1) · Last reviewed commit: "Render reset camera observations by defa..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This cherry-picks #1797 into release/0.4.0. It makes num_rerenders_on_reset = 1 the default in IsaacLabArenaManagerBasedRLEnvCfg. It also changes IsaacLabArenaManagerBasedRLEnv.step() to skip reset renders once an episode-limited run has assigned all its episodes, and brings along the source PR's tests. The patch matches the merged commit 79cbb89, and this branch pins the same Isaac Lab commit (e3f7d9ff), so I have no concerns specific to the backport. The review points raised on #1797 were handled there before merge.

One question for the release: this changes what camera policies see on the first step of every episode, so camera-based success rates from v0.4.0 may not match earlier runs. Is a line planned for the "Bug fixes → Rendering and interop" section of the v0.4.0 release notes on this branch?

Test Coverage and CI Cost

🔵 isaaclab_arena/tests/test_episode_limit.py:315: The num_rerenders_on_reset=0 cases pass with or without the step() change, because Isaac Lab never renders on reset at 0. Values 1 and 2 run the same Arena code. Keeping only 2 still covers suppression, the unbounded case, and restoring the value, and cuts this test from 9 environment builds to 3. Since this is a straight cherry-pick, it's probably simpler to make this change on main and pick it up here.

Limitation: CI on this head hadn't started its test jobs when I wrote this review (pre-commit was still queued). So I couldn't confirm the new tests pass on release/0.4.0. The source PR's CI passed on main.

Verdict

Ship it

@qianl-nv
qianl-nv merged commit 9515688 into release/0.4.0 Dec 3, 2026
11 checks passed
@qianl-nv
qianl-nv deleted the qianl/fix/reset-camera-render-release-0.4.0 branch December 3, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants