Skip to content

Enable OVPhysX hand camera presets - #6743

Merged
AntoineRichard merged 3 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/ovphysx-camera-presets
Jul 28, 2026
Merged

AntoineRichard merged 3 commits into
isaac-sim:developfrom
AntoineRichard:antoiner/ovphysx-camera-presets

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Jul 27, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds OVPhysX camera rendering coverage for Shadow Hand and Kuka Allegro, following the existing PhysX preset structure.

  • Adds a Kuka Allegro OVPhysX physics preset and selects the homogeneous cube configuration supported by OVPhysX cloning.
  • Omits Kuka gravity randomization/curriculum terms that require an unavailable runtime gravity setter, and uses whole-asset material randomization supported by OVPhysX.
  • Enables the Shadow Hand and homogeneous Kuka Allegro rendering matrices for OVPhysX.
  • Adds OVRTX and Newton renderer goldens, preset-resolution tests, a changelog fragment, and environment-browser documentation.

Built on the OVPhysX 0.5.9 and OVStage integration from #6660, which is now merged into develop.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Screenshots

The generated RGB goldens were inspected locally. Shadow Hand renders the tiled hands with the cyan cube; Kuka Allegro renders the tiled robot/table/cube scene consistently with the existing backend goldens.

Testing

  • ./isaaclab.sh -f
  • Preset and Kit-decision tests: 23 passed
  • Shadow Hand OVStage + OVPhysX + OVRTX RGB comparison: 1 passed
  • Kuka Allegro OVStage + OVPhysX + OVRTX RGB comparison: 1 passed
  • Legacy render matrices used to generate and verify all 21 goldens per task: 19 passed, 57 deselected for each task
  • ./isaaclab.sh -d

Checklist

  • 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 feature works
  • I have added a changelog fragment under source/isaaclab_tasks/changelog.d/
  • My name already exists in CONTRIBUTORS.md

@AntoineRichard
AntoineRichard requested a review from a team July 27, 2026 17:38
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Jul 27, 2026
@greptile-apps

greptile-apps Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Enables OVPhysX camera rendering coverage for Shadow Hand and homogeneous Kuka Allegro tasks.

  • Adds Kuka-specific OVPhysX physics and object presets while disabling unsupported gravity terms.
  • Migrates OVPhysX stage loading from temporary USD files to in-memory OVStage attachment.
  • Splits OV runtime extras, updates dependency pins and CI coverage, and adds rendering goldens and preset tests.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The OVPhysX preset, OVStage lifecycle, dependency, CI, and rendering changes are internally coordinated and covered by targeted configuration and rendering tests.

Important Files Changed

Filename Overview
source/isaaclab_ovphysx/isaaclab_ovphysx/physics/ovphysx_manager.py Replaces temporary-file USD ingestion with in-memory OVStage serialization, attachment, and lifecycle cleanup.
source/isaaclab_ovphysx/isaaclab_ovphysx/assets/articulation/articulation.py Updates tendon-name discovery to reconstruct the serialized in-memory USD stage.
source/isaaclab_tasks/isaaclab_tasks/core/dexsuite/config/kuka_allegro/dexsuite_kuka_allegro_env_cfg.py Adds Kuka Allegro OVPhysX presets and removes unsupported gravity behavior from that backend.
source/isaaclab_tasks/isaaclab_tasks/core/dexsuite/dexsuite_env_cfg.py Changes material randomization selectors to target whole assets across supported backends.
pyproject.toml Pins OVPhysX 0.5.9, separates OVPhysX and OVRTX extras, and routes public OV packages through PyPI.
.github/workflows/build.yaml Enables OVPhysX package and kitless rendering tests on public-package and wheelhouse paths.
source/isaaclab_tasks/test/rendering_test_utils.py Enables Shadow Hand and homogeneous Kuka rendering matrices for OVPhysX.
source/isaaclab_tasks/test/core/test_ovphysx_camera_presets.py Verifies kitless preset resolution and OVPhysX-compatible Kuka task configuration.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    Presets[Task preset resolution] --> Physics[OVPhysX physics configuration]
    Presets --> Renderer[OVRTX or Newton renderer]
    Physics --> Serialize[Flatten and serialize env_0 USD]
    Serialize --> OVStage[Populate and attach OVStage]
    OVStage --> Clone[Clone homogeneous environments]
    Clone --> Camera[Render tiled camera outputs]
    Renderer --> Camera
    Camera --> Golden[Compare against rendering goldens]
Loading

Reviews (1): Last reviewed commit: "Enable OVPhysX hand camera presets" | 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

Summary

This PR enables OVPhysX camera rendering coverage for Shadow Hand and Kuka Allegro by adding an OVPhysX physics preset, a homogeneous-cube object preset, gravity-term omissions, new goldens, preset-resolution tests, and docs. The mechanical parts (goldens, docs tables, environment-browser data, changelog fragments) look consistent, and removing the blanket ovphysx skips in rendering_test_utils.py makes the existing rendering matrices genuinely sensitive to the new backend support. The main concerns are (a) an unconditional change to the shared dexsuite material-randomization terms that affects PhysX/Newton as well, (b) the way OVPhysX-safe object/event/curriculum variants are keyed by a preset name that may not follow the documented physics=ovphysx selector, and (c) an imperative pytest.xfail() that silently removes a rendering combination from execution. Note that several diff hunks (pyproject extras rename, OVStage migration in isaaclab_ovphysx) come from the stacked dependency change; comments on them are included since they appear in this diff.

Architecture impact

Follows the established preset structure: a task-local PhysicsCfg/ObjectCfg subclass adds an ovphysx variant, and per-backend event/curriculum variants are wired through preset(...). That pattern is fine, but it introduces a cross-group naming dependency — the object/event/curriculum variants are only correct if the ovphysx name is selected in every group simultaneously, which is not enforced anywhere in config validation. The extras rename in the root pyproject.toml changes public installation entry points (--extra ov/--extra rtx) with no compatibility aliases, which conflicts with the repository's deprecation-before-removal rule for public API.

Test coverage

New coverage is reasonable in shape: test_ovphysx_camera_presets.py pins kitless physics/renderer resolution and the Kuka-specific object/event/curriculum selections, the OVStage manager tests cover serialization and attach/release lifecycle, and 42 new golden images back the enabled rendering matrices. Sensitivity is weaker than it looks in two places: the Kuka preset test only resolves the ovphysx branch, so it cannot distinguish per-preset gating from an unconditional change, and the new Cartpole motion_vectors case is disabled imperatively rather than marked xfail, so it never runs. The ovstage variant of the newly enabled Shadow Hand and Kuka homogeneous matrices appears unverified given the PR notes the goldens were produced with the legacy matrices.

Implementation verdict

Minor fixes needed. Posted 7 actionable findings inline.

The PR exceeded the automated context budget, so some file content was truncated.

Automated comment-only review; human maintainers own approval decisions.

Comment thread .github/workflows/arm-ci.yml Resolved
Comment thread pyproject.toml Resolved
Add a Kuka Allegro OVPhysX configuration while excluding gravity and heterogeneous-object paths unsupported by the backend.

Enable Shadow Hand and Kuka Allegro render coverage with golden images for OVRTX and Newton renderers.
@AntoineRichard
AntoineRichard force-pushed the antoiner/ovphysx-camera-presets branch from 83f261c to a758743 Compare July 28, 2026 07:43
Treat explicit selectors covering every body as whole-asset selection while continuing to reject true subsets.

Restore the Dexsuite regex selectors so existing PhysX and Newton configurations remain unchanged.
"""Camera output must match golden images (Dexsuite KukaAllegro Lift, single camera)."""
if physics_backend == "ovphysx":
pytest.skip(
"The OVPhysX preset selects the homogeneous cube because heterogeneous multi-asset scenes are unsupported."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is the plan to add heterogeneous support after GA?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I need to check with Octi and look more into the cloner, but we may need to post-pone it yes

Comment thread docs/source/overview/environments.rst Resolved
Co-authored-by: Kelly Guo <[email protected]>
Signed-off-by: Antoine RICHARD <[email protected]>
@AntoineRichard
AntoineRichard merged commit 358ef1d into isaac-sim:develop Jul 28, 2026
42 of 43 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Adds OVPhysX camera rendering coverage for Shadow Hand and Kuka Allegro,
following the existing PhysX preset structure.

- Adds a Kuka Allegro OVPhysX physics preset and selects the homogeneous
cube configuration supported by OVPhysX cloning.
- Omits Kuka gravity randomization/curriculum terms that require an
unavailable runtime gravity setter, and uses whole-asset material
randomization supported by OVPhysX.
- Enables the Shadow Hand and homogeneous Kuka Allegro rendering
matrices for OVPhysX.
- Adds OVRTX and Newton renderer goldens, preset-resolution tests, a
changelog fragment, and environment-browser documentation.

Built on the OVPhysX 0.5.9 and OVStage integration from isaac-sim#6660, which is
now merged into develop.

## Type of change

- New feature (non-breaking change which adds functionality)
- Documentation update

## Screenshots

The generated RGB goldens were inspected locally. Shadow Hand renders
the tiled hands with the cyan cube; Kuka Allegro renders the tiled
robot/table/cube scene consistently with the existing backend goldens.

## Testing

- ./isaaclab.sh -f
- Preset and Kit-decision tests: 23 passed
- Shadow Hand OVStage + OVPhysX + OVRTX RGB comparison: 1 passed
- Kuka Allegro OVStage + OVPhysX + OVRTX RGB comparison: 1 passed
- Legacy render matrices used to generate and verify all 21 goldens per
task: 19 passed, 57 deselected for each task
- ./isaaclab.sh -d

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with ./isaaclab.sh --format
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my feature works
- [x] I have added a changelog fragment under
source/isaaclab_tasks/changelog.d/
- [x] My name already exists in CONTRIBUTORS.md

---------

Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants