Repository navigation
Add dictionary and single-tensor processors for cameras and observations - #8571
mataylor-nvidia wants to merge 23 commits into
Conversation
Expose scene-linear RGB before camera exposure and response as a camera output on Isaac RTX, OVRTX, and Newton Warp, without changing CameraCfg.isp_cfg or the renderer-owned PPISP path. Isaac RTX and OVRTX read it from the HdrColor source and neutralize exposure on the camera prim, using the exposure override now shared from isaaclab.renderers. Newton applies no exposure, so it matches rgb_hdr. When both HDR outputs are requested they share one buffer. OVRTX also disables Gaussian skip-tonemapping on HDR-consuming render products so Gaussian pixels reach HdrColor. Signed-off-by: Alexander Temirov <[email protected]>
Renderers import apply_rtx_exposure_overrides from isaaclab.renderers.rtx_camera_overrides, so isaaclab_ppisp no longer re-exports it. Signed-off-by: Alexander Temirov <[email protected]>
Camera no longer branches on the renderer type. IsaacRtxRendererCfg sets the RTX sensor and Gaussian HDR routing settings in a new RendererCfg.apply_pre_reset_settings hook, which cameras call before sim.reset(). Signed-off-by: Alexander Temirov <[email protected]>
OVRTX exports the stage once, when the first camera initializes, so overrides authored later by other cameras, such as the neutral exposure for rgb_radiance, never reached it. Cameras now apply their renderer overrides in a PHYSICS_READY callback that runs before any sensor initializes. Also address review comments: map the exposure attribute types explicitly, merge the HDR case into the existing OVRTX render-var test, state the expected HDR routing per test row, and point the rtx_sensors comment at IsaacRtxRendererCfg.apply_pre_reset_settings. Signed-off-by: Alexander Temirov <[email protected]>
…upport in the matrix SensorBase registers a PHYSICS_READY callback that runs every sensor's _prepare_initialize_impl() before any sensor initializes, through its existing weak reference. Camera overrides the hook to apply its renderer overrides, so it no longer registers its own callback or imports weakref. The rgb_radiance enum docstring keeps only the definition. The camera documentation's renderer support matrix now lists rgb_radiance as derived on Isaac RTX and OVRTX, with the note below it. Signed-off-by: Alexander Temirov <[email protected]>
Replace RendererCfg.apply_pre_reset_settings() with BaseRenderer.apply_camera_settings(), which cameras call right after creating their renderer in __init__, still before sim.reset(). Renderer configurations stay data only. IsaacRtxRenderer implements the hook. Signed-off-by: Alexander Temirov <[email protected]>
The neutral-exposure override is a temporary workaround until RTX provides a native radiance output (NVBug 6858736), so it is not public API: rename it to _apply_rtx_exposure_overrides, document the module as internal, and drop it from the changelog. Signed-off-by: Alexander Temirov <[email protected]>
…ethod Isaac RTX marks RTX sensor rendering when it is created, which cameras do during scene construction, and enables Gaussian HDR routing in prepare_cameras for cameras that read HDR color. BaseRenderer.apply_camera_settings() and the Camera call to it are removed. Signed-off-by: Alexander Temirov <[email protected]>
# Conflicts: # source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_usd.py # source/isaaclab_ov/test/test_ovrtx_usd.py
Restore the em dash in two Camera comments, mark the exposure-override removal as breaking, and drop a fragment that described review iterations rather than a change against develop.
isaaclab_ppisp.apply_rtx_exposure_overrides shipped as public API. Keep it, and its submodule path, as a wrapper that raises a DeprecationWarning and applies the renderers' override, which now runs automatically for cameras with PPISP or rgb_radiance.
This reverts commit bcb22ec. Reviewers asked for a clean break without compatibility shims; the changelog marks the removal as breaking with its migration.
|
Design proposal: Move image processing into RenderBufferPipe. Renderers supply raw buffers; cameras and observations decide when to process them and how to expose the results. Draft: #8571 Buffers are output_specs tells the pipe what to allocate. apply(inputs, outputs) writes into those allocations. Optional reset and close callbacks manage operation state and resources. Then map buffer names to operation roles. mechanism supports an operation with multiple inputs. Preparation happens once then execution loop looks like The consumers have control over delivery
The current form used is a list: |
| from isaaclab.envs import ManagerBasedEnv | ||
|
|
||
|
|
||
| class processed_sensor(ManagerTermBase): |
There was a problem hiding this comment.
Isaac Lab’s existing convention for callable MDP terms: classes such as image_depth, image_features, and stacked_image also use snake_case. They’re configured through the same func field as ordinary functions:
ObservationTermCfg(func=mdp.processed_sensor, ...)
| for _cfg, renderer in self._renderer_entries: | ||
| renderer.initialize() | ||
|
|
||
| def register_camera(self, camera: Camera) -> None: |
There was a problem hiding this comment.
are you sure this is needed for this pr?
## Description Rename `modifiers` to `tensor_processors` and unify tensor and structured-data processing under `TensorProcessor` / `TensorProcessorCfg`. `TensorProcessorData` accepts Torch tensors, `ProxyArray`, and recursively nested lists, tuples, and string-keyed dictionaries. Each implementation defines its input and output structures; built-in filters retain their single-tensor behavior. Custom processors can accept input buffers in their constructor and call `super().__init__(cfg)`. Existing `(cfg, data_dim, device)` construction remains supported, and `reset()` and `close()` default to no-ops. Configurations use `func` for functions, classes, or lazy import strings; `inputs` and `outputs` provide optional named-key metadata. Managers resolve nested scene entities and manager terms in processor parameters. Observation terms remain tensor-valued and shape-preserving. Groups retain their concatenated-tensor or dictionary-of-tensors output. Processing order, noise, clipping, scaling, delay, and history retain their existing behavior. Legacy `isaaclab.utils.modifiers` and `isaaclab_experimental.utils.modifiers` imports remain supported with an import-time `DeprecationWarning`, including old class names, submodule paths, wildcard imports, and serialized callable paths. `ObservationTermCfg.modifiers` also remains supported: both observation managers emit a targeted `FutureWarning` and forward it to `tensor_processors` during initialization. Constructor arguments and later assignments work; setting both fields raises `ValueError`, including empty lists. Migrate imports and configurations to `tensor_processors` before the deprecated names are removed in a future release. Camera attachment and Physically Plausible Image Signal Processing (PPISP) integration remain separate follow-up work. This PR establishes their shared processor interface and replaces the lower portion of #8571. ## Validation - `uv run python -m pytest source/isaaclab/test/managers/test_observation_manager.py -q` — 42 passed, including deprecated constructor/assignment use, serialized configurations, Warp manager integration, caller-directed warnings, and conflicting-field rejection. - `uv run --no-sync python -m pytest source/isaaclab/test/utils/test_tensor_processors.py -q` — 11 passed. - `uv run --no-sync python -m pytest source/isaaclab/test/managers/test_manager_base.py -q` — 8 passed; PyTorch emitted its existing `torch.jit.script` deprecation warnings. - Before the compatibility fix, the four new regression cases failed for the intended reasons: the constructor rejected `modifiers`, both managers ignored assigned legacy fields without warning, and conflicting fields were accepted. - `uv run --extra dev isaaclab --docs` — clean full HTML build with warnings treated as errors. - `uv run isaaclab --format` — repository formatting and lint checks. - `uv run python tools/changelog/cli.py check upstream/main --include-worktree` — changelog validation. - `git diff --check` — clean. ## Type of change - Tensor processor API addition with deprecated modifier aliases - Unified tensor and structured-data processor interface - Documentation update ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: ooctipus <[email protected]>
Superseded by two stacked draft PRs:
develop.developand submitted upstream.The cleanup defers the observation dictionary adapters, removes their preparation/teardown machinery, consolidates camera setup and duplicate tests, and retains deprecated modifier imports/configuration during migration. PPISP production changes are +627 / -629; tests and documentation account for the remaining net growth.
Both replacement branches are based on current
developand have passed focused tests, formatting/lint, changelog checks, and focused Sphinx validation. Full documentation is blocked by the installed Omniverse Kit EULA requirement; live OVRTX/Isaac RTX and remote GPU CI remain unrun. The original branch and review history are preserved.