Skip to content

Remove camera_path_relative_to_env_0 - #7983

Merged
pbarejko merged 1 commit into
isaac-sim:developfrom
pbarejko:pbarejko/remove-rel-camera-path
Sep 24, 2026
Merged

pbarejko merged 1 commit into
isaac-sim:developfrom
pbarejko:pbarejko/remove-rel-camera-path

Conversation

@pbarejko

Copy link
Copy Markdown
Collaborator

(cherry picked from commit e5f1bdbe917af29e70fd9fa0c6b24344465285a0)

Description

Remove confusing field from Camera spec

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

(cherry picked from commit e5f1bdbe917af29e70fd9fa0c6b24344465285a0)
@pbarejko pbarejko self-assigned this Sep 23, 2026
@pbarejko
pbarejko requested a review from a team September 23, 2026 21:59
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Sep 23, 2026

@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 OVRTX path derivation is consistently moved from the shared camera spec into the backend, but the PR removes a public CameraRenderSpec field outright, violating the repository requirement for prior deprecation and a migration path.

  • Design and architecture: Deriving cloned camera paths inside OVRTX cleanly localizes the backend-specific env_0 assumption. The legacy and ovstage paths consistently derive their logical per-environment paths from the authored source camera.
  • API: CameraRenderSpec.camera_path_relative_to_env_0 is a documented public dataclass field. Removing it immediately breaks keyword and positional construction as well as external backends that read it. Retain it as a deprecated, optional, ignored field for a deprecation cycle before removal.
  • Implementation: The changed OVRTX consumers, scene-partition updates, transform filtering, USD scope generation, and tests consistently use camera_prim_paths[0]; no separate material implementation defect is established beyond the unsupported public API removal.

Significant concerns. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

view_count: Number of camera prims (must match ``len(camera_prim_paths)``).
camera_path_relative_to_env_0: Camera prim path with ``/World/envs/env_0/`` prefix
stripped; required by OVRTX. Empty string if the first camera is not under env 0.
camera_prim_paths: Absolute paths of the authored camera prims. When the 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.

🟡 Warning · Api — Public spec field removed without deprecation

CameraRenderSpec is a public dataclass consumed by render backends, so deleting camera_path_relative_to_env_0 immediately breaks keyword constructors (TypeError) and any backend reading the attribute, and shifts the positional signature. Repository policy forbids removing a public API without a prior deprecation and migration path. Keep the field as an optional, ignored deprecated member (default "") while OVRTX derives paths from camera_prim_paths, and remove it after the deprecation cycle.

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the removed field was redundant, and all affected callers and OVRTX consumers consistently derive the same paths from the absolute source camera path.

Summary

This PR removes the redundant CameraRenderSpec.camera_path_relative_to_env_0 field and makes OVRTX derive cloned camera paths directly from the authored absolute source path.

  • Updates camera render-spec construction and OVRTX registration.
  • Preserves validation that the source camera is beneath /World/envs/env_0/.
  • Updates OVRTX tests and adds coverage for invalid source-camera paths.
  • Adds changelog fragments for both affected packages.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Camera sensor] --> B[CameraRenderSpec]
    B --> C[Absolute env_0 source path]
    C --> D[OVRTX path validation]
    D --> E[Derive env_0 through env_N paths]
    E --> F[Register render product and bindings]
Loading

Reviews (1) · Last reviewed commit: "Remove camera_path_relative_to_env_0"

@pbarejko

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 23, 2026
@pbarejko
pbarejko merged commit ef821d9 into isaac-sim:develop Sep 24, 2026
54 checks passed
StafaH added a commit to StafaH/IsaacLab that referenced this pull request Sep 24, 2026
StafaH added a commit that referenced this pull request Sep 24, 2026
…#7941, #7977, #7983, #7991, #8003) (#8002)

## Description

Backports the rendering changes and related release fixes:

- #7941 — routes rigid rendering transforms through `SceneDataProvider`
and preserves shared Fabric bindings.
- #7977 — batches due camera captures by renderer and fixes moving and
cloned camera updates. This supersedes #8001.
- #7983 — removes `CameraRenderSpec.camera_path_relative_to_env_0` and
derives and validates the OVRTX source camera path from
`camera_prim_paths`. The rendering changes were developed with this
interface, so it is required by their OVRTX tests.
- #7991 — fixes Newton's deprecated joint friction writers and the PhysX
rigid object collection `body_mask` writer signatures.
- #8003 — consolidates redundant Newton tests to shorten the Newton CI
job without changing runtime code.

#7941 required conflict resolution in the OVRTX legacy and OvStage
transform binding functions: the release branch's Newton model path
collection was replaced by SDP-published paths. #7983 was then
integrated with those SDP paths. Each added commit records its source
commit.

Custom scene-data backends must follow the `transforms_version`
publication contract described in the included migration documentation.
Direct callers of `BaseRenderer.render()` must pass a sequence, for
example `render([data])`. Callers constructing `CameraRenderSpec` must
remove the `camera_path_relative_to_env_0` argument; OVRTX now derives
it from `camera_prim_paths`.

## Validation

- Rendering and scene-data focused tests from the original backport
passed locally: 27 renderer tests and 50 scene-data / PhysX renderer
tests. OVRTX runtime cases were skipped locally because the optional
`ovrtx` module is unavailable.
- #7991: the Newton deprecated friction writer test passed, and 72 rigid
object collection mask writer cases passed. The new friction test fails
without the fix and passes with it.
- #8003: all 8 revised contact lifecycle cases passed. Kit-based Newton
asset tests remain for CI.
- `uv run isaaclab -f` passed after all additions with the changelog
base set to `release/3.0.0`, as did `git diff --check`.
- The original backport's documentation build passed with warnings
treated as errors. Full GPU and Kit CI is running on the updated PR.

## Type of change

- Rendering bug fixes and performance improvement
- Backend API bug fixes and breaking renderer / scene-data interface
changes with migration guidance
- Newton test consolidation
- Documentation and changelog fragments for affected source packages

## Release backport

This PR targets `release/3.0.0`; no further backport is needed.

## Checklist

- [x] Contribution guidance reviewed
- [x] Focused local tests and formatting checks passed
- [x] Public documentation and package changelog fragments included
- [ ] Full GPU and Kit CI passed

---------

Co-authored-by: ooctipus <[email protected]>
Co-authored-by: Piotr Barejko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants