Skip to content

Raise on unsupported camera renderer outputs - #7175

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-camera-renderer-unsupported-output
Aug 20, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-camera-renderer-unsupported-output

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Summary

  • Raise clear errors when a camera requests unknown data types or outputs unsupported by its active renderer.
  • Raise instead of silently dropping Isaac RTX albedo and simple-shading outputs on Isaac Sim versions before 6.0.
  • Replace the warning regression test with error coverage for renderer-capability and typo paths.

Breaking change

Camera configurations that previously ran while silently omitting unsupported data types now fail at camera initialization. Remove unsupported types from CameraCfg.data_types or select a compatible renderer.

Validation

  • uv run --extra test --frozen isaaclab -f
  • Runtime-free smoke test of Camera._create_buffers for both error paths.
  • The Isaac Sim integration test could not run in this environment because the full Isaac Sim runtime is not installed.

In-tree configuration finding

Cartpole simple-shading presets default to newton_renderer, which cannot produce those outputs and will now raise. Kuka Allegro already rejects the equivalent Newton combinations in its existing task-level compatibility validation.

Out of scope

Teaching task discovery about renderer capabilities remains follow-up work because renderer capability is currently per-instance.

@AntoineRichard
AntoineRichard requested a review from a team August 19, 2026 16:36
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Aug 19, 2026
@greptile-apps

greptile-apps Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR replaces silent omission of invalid or renderer-incompatible camera outputs with explicit initialization errors.

  • Separates unknown camera data-type names from known outputs unsupported by the active renderer.
  • Rejects albedo and simple-shading outputs on Isaac Sim versions before 6.0.
  • Replaces warning-and-filtering regression coverage with error-path coverage and documents the breaking change.

Confidence Score: 5/5

The PR appears safe to merge, with the newly raised failures matching the renderer capability contract and the explicitly documented breaking behavior.

Renderer capability information is fully initialized before camera buffer validation, and the changed tests cover both unsupported known outputs and misspelled output names without revealing a contradictory supported configuration.

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/sensors/camera/camera.py Adds authoritative validation against renderer output capabilities and clear errors for unknown or unsupported requested data types.
source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py Converts legacy-version warnings for unavailable albedo and simple-shading outputs into explicit configuration errors.
source/isaaclab/test/sensors/test_camera.py Updates regression coverage to verify renderer-capability and unknown-data-type failures during camera initialization.
source/isaaclab/changelog.d/camera-renderer-unsupported-data-types.rst Documents the core camera validation behavior as a breaking change.
source/isaaclab_physx/changelog.d/camera-renderer-unsupported-data-types.rst Documents the legacy Isaac RTX albedo and simple-shading rejection behavior.

Reviews (1): Last reviewed commit: "Raise on unsupported camera renderer out..." | Re-trigger Greptile

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

The renderer-capability error is implemented as intended, but the updated constructor documentation assigns that deferred failure to the wrong lifecycle stage.

  • Design and architecture: Renderer capability validation remains part of deferred sensor initialization through _create_buffers; the documentation should preserve that lifecycle distinction.
  • API: The Camera.__init__ Raises: entry says renderer-unsupported data types raise during construction, while the regression test demonstrates that construction succeeds and the error surfaces during sim.reset(). Document the deferred initialization failure separately and limit the constructor entry to exceptions it can directly raise.
  • Implementation: The implementation and test consistently place renderer-capability validation during buffer creation at sensor initialization; the required fix is to align the public exception documentation with that behavior.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

Raises:
RuntimeError: If no camera prim is found at the given path.
ValueError: If the provided data types are not supported by the camera.
ValueError: If the provided data types are not supported by the camera or active renderer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Suggestion · Api — Raises entry documents wrong lifecycle stage

The renderer-capability check lives in _create_buffers, which runs during deferred sensor initialization, not in __init__: the accompanying test constructs Camera(camera_cfg) successfully and only observes the ValueError from sim.reset(). Listing it in the constructor's Raises: section misleads callers who guard construction with try/except. State that renderer-unsupported data types are rejected at sensor initialization, keeping the constructor entry limited to the checks performed there.

@kellyguo11
kellyguo11 merged commit 1499a77 into isaac-sim:develop Aug 20, 2026
46 of 48 checks passed
kellyguo11 added a commit that referenced this pull request Aug 21, 2026
## Summary

Cherry-picks the following merged PRs from `develop` onto
`release/3.0.0`, preserving each as an individual commit with `-x`
provenance:

- #7193 — Bake CI pytest deps into the built Docker image
- #7077 — Add OVPhysX support to Franka deformable lift tasks
- #7175 — Raise on unsupported camera renderer outputs
- #7174 — Fix benchmark play inference scope
- #7173 — Report resolved backend for play benchmarks
- #7172 — Add video recording to play benchmarks
- #7215 — Reduce GearAssembly default environment count
- #7214 — Remove Kamino preset from open drawer
- #7213 — Fix OvPhysX scene gravity randomization
- #7212 — Fix OVPhysX material binding device selection
- #7189 — Make preview surfaces renderer agnostic
- #7206 — Fix OVPhysX benchmark articulation setup

All cherry-picks and the final rebase onto the latest `release/3.0.0`
tip completed without conflicts.

## Validation

- Verified all 12 backported commits have patch IDs identical to their
source squash commits and retain their `cherry picked from` footers.
- `git diff --check upstream/release/3.0.0..HEAD`
- Bash syntax validation for the modified CI shell scripts.
- YAML parsing for the modified composite actions.
- Changelog validation against `release/3.0.0`.
- Targeted pytest coverage for benchmark APIs/play, video recording,
GearAssembly defaults, OVPhysX presets and runtime semantics, and
renderer-agnostic materials: **81 passed, 4 skipped, 1 deselected**.
- The deselected case is an unchanged test that hard-codes a POSIX
`/tmp` path and fails on Windows path normalization.
- `uv run isaaclab -f` passed all hooks except the changelog hook's
known release-branch baseline finding for
`source/isaaclab/changelog.d/core-test-config-fixtures.skip`; the
targeted release-base changelog check passed.

---------

Co-authored-by: Matthew Taylor <[email protected]>
Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: Mike Yan Michelis <[email protected]>
Co-authored-by: Maximilian Krause <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
Co-authored-by: Mustafa H <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants