Update cartpole golden images and clean up rendering correctness test#5169
Update cartpole golden images and clean up rendering correctness test#5169huidongc merged 3 commits intoisaac-sim:developfrom
Conversation
There was a problem hiding this comment.
Good cleanup. The docstring fixes are accurate (reset not step), and consolidating the failure path to use the comparison-images directory instead of polluting golden_images/ with timestamped debug artifacts is a clear improvement.
One minor inline comment below — otherwise LGTM.
Greptile SummaryThis PR updates 31 cartpole golden-image baselines (across physx/newton backends, isaacsim_rtx/newton_renderer renderers, and various AOVs) following a cartpole slider upscaling change that altered the rendered output. It also includes minor cleanup of Key changes:
Confidence Score: 5/5Safe to merge — golden image refresh following a confirmed rendering change, with no logic modifications to the test harness. All 31 updated golden images are a straightforward refresh caused by the cartpole slider upscaling change. The test file cleanup introduces no new logic. No P0 or P1 issues found. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["pytest parametrize\n(physics_backend, renderer, data_type)"] --> B["cartpole_env / shadow_hand_env fixture\nBuilds env with preset overrides\nnum_envs=4, seed=42"]
B --> C["env.reset()"]
C --> D["_validate_camera_outputs()"]
D --> E["For each data_type in sensor output"]
E --> F["_normalize_tensor() → [0,1] float32"]
F --> G["_make_grid() → tiled PIL Image"]
G --> H{"Golden image\nexists?"}
H -- No --> I["Save as new golden\npytest.fail()"]
H -- Yes --> J["_compare_images()\npixel L2 norm diff"]
J --> K{"diff_pct ≤\nthreshold?"}
K -- Yes --> L["_ssim() score\n(reference only)"]
K -- No --> M["pytest.fail()"]
L --> N["Append to _COMPARISON_SCORES"]
N --> O["Session end:\n_generate_html_report()"]
Greploops — Automatically fix all review issues by running Reviews (2): Last reviewed commit: "new golden image due to cartpole slider ..." | Re-trigger Greptile |
80dbcc2 to
6c0a17c
Compare
``` docs/source/policy_deployment/04_reach/reach_policy.rst:670: WARNING: undefined label: 'sim2real' [ref.ref] ```
Description
Type of change
Screenshots
See diff of the golden images.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there