Repository navigation
[release/0.4.0] Backport reset camera rendering (#1797) - #1817
Conversation
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` | |---|---| |  |  | | 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]>
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryEnables one reset render by default through Isaac Lab’s existing pipeline.
Reviews (1) · Last reviewed commit: "Render reset camera observations by defa..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis cherry-picks #1797 into 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🔵 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 VerdictShip it |
Cherry-pick #1797 (
79cbb89918a79dd2fe764368cdb8c85e111ea12a) intorelease/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=1for 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.