Repository navigation
Fixes camera preset class for shadow hand - #4848
Conversation
Greptile SummaryThis PR fixes a bug introduced by an earlier change where
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
CLI["CLI presets argument\ne.g. presets=newton_renderer,rgb"]
CLI --> RCfg["tiled_camera.renderer_cfg\nMultiBackendRendererCfg"]
CLI --> CCfg["tiled_camera\nShadowHandVisionTiledCameraCfg"]
RCfg --> |"default / isaacsim_rtx_renderer"| RTX["IsaacRtxRendererCfg"]
RCfg --> |"newton_renderer"| Warp["NewtonWarpRendererCfg"]
RCfg --> |"ovrtx_renderer"| OVRTX["OVRTXRendererCfg (disabled)"]
CCfg --> |"rgb / albedo / shading..."| CamPreset["_ShadowHandBaseTiledCameraCfg\nwith data_types set"]
RTX --> Validate["_validate_cfg()"]
Warp --> Validate
OVRTX --> Validate
CamPreset --> Validate
Validate --> |"newton_warp + unsupported type"| Err["ValueError raised"]
Validate --> |"depth-only + CNN enabled"| Err
Validate --> |"valid combo"| Env["ShadowHandVisionEnv"]
|
| # ── PhysX physics + Warp: only rgb and depth are supported ── | ||
| pytest.param(("warp", "rgb", "physx"), id="physx-warp-rgb"), | ||
| pytest.param(("warp", "depth", "physx"), id="physx-warp-depth"), | ||
| pytest.param(("newton_renderer", "rgb", "physx"), id="physx-warp-rgb"), | ||
| pytest.param(("newton_renderer", "depth", "physx"), id="physx-warp-depth"), | ||
| # ── Newton physics + Warp: Warp renderer is physics-backend agnostic ── | ||
| pytest.param(("warp", "rgb", "newton"), id="newton-warp-rgb"), | ||
| pytest.param(("warp", "depth", "newton"), id="newton-warp-depth"), | ||
| pytest.param(("newton_renderer", "rgb", "newton"), id="newton-warp-rgb"), | ||
| pytest.param(("newton_renderer", "depth", "newton"), id="newton-warp-depth"), |
There was a problem hiding this comment.
Stale "Warp" labels in comments and test IDs
After renaming the preset from "warp" to "newton_renderer", the inline comments and id= strings in these test cases still reference the old "Warp" terminology. This creates a mismatch between the preset name used in the tuple ("newton_renderer") and the test ID/comment that says "warp". The test IDs are stable identifiers that appear in CI output and failure reports, so keeping them aligned with the current preset name avoids confusion.
| # ── PhysX physics + Warp: only rgb and depth are supported ── | |
| pytest.param(("warp", "rgb", "physx"), id="physx-warp-rgb"), | |
| pytest.param(("warp", "depth", "physx"), id="physx-warp-depth"), | |
| pytest.param(("newton_renderer", "rgb", "physx"), id="physx-warp-rgb"), | |
| pytest.param(("newton_renderer", "depth", "physx"), id="physx-warp-depth"), | |
| # ── Newton physics + Warp: Warp renderer is physics-backend agnostic ── | |
| pytest.param(("warp", "rgb", "newton"), id="newton-warp-rgb"), | |
| pytest.param(("warp", "depth", "newton"), id="newton-warp-depth"), | |
| pytest.param(("newton_renderer", "rgb", "newton"), id="newton-warp-rgb"), | |
| pytest.param(("newton_renderer", "depth", "newton"), id="newton-warp-depth"), | |
| # ── PhysX physics + Newton renderer: only rgb and depth are supported ── | |
| pytest.param(("newton_renderer", "rgb", "physx"), id="physx-newton_renderer-rgb"), | |
| pytest.param(("newton_renderer", "depth", "physx"), id="physx-newton_renderer-depth"), | |
| # ── Newton physics + Newton renderer: Newton renderer is physics-backend agnostic ── | |
| pytest.param(("newton_renderer", "rgb", "newton"), id="newton-newton_renderer-rgb"), | |
| pytest.param(("newton_renderer", "depth", "newton"), id="newton-newton_renderer-depth"), |
Description
Fixes an error in an earlier PR where the render preset class was not using the correct MultiBackendRendererCfg configuration
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there