Repository navigation
Render reset camera observations by default - #1797
Conversation
Signed-off-by: Qian Lin <[email protected]>
Signed-off-by: Qian Lin <[email protected]>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummarySets
No actionable issues were found. Tests were not run; the pinned Lab source and native simulation runtime were unavailable locally. Reviews (1) · Last reviewed commit: "Add reset camera frame regression tests" · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR sets
This change also alters what camera policies see on the first step of every episode, so camera-based evaluation results can move. The PR's own OpenPI run went from 48.9% to 56.1% success. A line in the release notes would help, so nobody compares results from before and after this change directly. Findings🟡 Warning: 🟡 Warning: 🔵 Improvement: 🔵 Improvement: Test Coverage and CI Cost🔵 🔵 Limitation: the GPU test jobs hadn't run when this review was written (the image build was still in progress), so I couldn't check test results or durations. VerdictMinor fixes needed |
Signed-off-by: Qian Lin <[email protected]>
Signed-off-by: Qian Lin <[email protected]>
Signed-off-by: Qian Lin <[email protected]>
Signed-off-by: Qian Lin <[email protected]>
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](https://nvbugs.nvidia.com/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](https://nvbugs.nvidia.com/7183639). Signed-off-by: Qian Lin <[email protected]>
Set
num_rerenders_on_reset=1by 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.
What changes?
Validation
Newton deformable recording
Earlier headless DROID HDF5 captures on Lab
e3f7d9ff, changing only the reset-render setting. Episode 1, external camera, frame 0:num_rerenders_on_reset=0num_rerenders_on_reset=1Across three episodes and three cameras, black first images dropped from 9/9 to 0/9. Recording and policy-observation comparisons.
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: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). Affected ordinary-reset checks are skipped with a TODO; redundant PhysX hard-reset builds are omitted from the normal suite.
Run the camera tests:
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.pyTest results before
Red: rendered pose; blue: expected pose based on reset


Test results after
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.