Skip to content

add physics population description for ovstage 0.4.0 - #8949

Merged
pbarejko merged 3 commits into
isaac-sim:mainfrom
r-schmitt:dev/rschmitt/ovstage040_fix_population_domains
Nov 5, 2026
Merged

pbarejko merged 3 commits into
isaac-sim:mainfrom
r-schmitt:dev/rschmitt/ovstage040_fix_population_domains

Conversation

@r-schmitt

@r-schmitt r-schmitt commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

OVStage changed its physics population API within the 0.4 release line. This PR preserves legacy domain-based population when PopulationDomain.PHYSICS exists and uses population descriptions/selectors otherwise.

OvstageBackendCfg.populate_physics explicitly controls physics population. OVRTX exports composed collider geometry whenever physics population is enabled, including isolated stages. Newton + OVRTX stages request rendering data only.

Adds compatibility-dispatch coverage and an isolated-physics export regression case. Native tests verify unit-scaled defaults, authored overrides, material bindings, and cloned joint relationships.

Repository dependency pins, uv.lock, CI configuration, and the default legacy population path remain unchanged.

Validation

Local validation: 270 passed, zero skipped.

Environment OVPhysX OVRTX OVStage Focused tests
Repository pins 0.7.0.74035321 0.6.0.1791947691 0.3.0.1791986420 88 passed
Older full stack 0.8.0.41761335733 0.7.0.dev1793362901+main.72a99e6e 0.4.0.1793320890 88 passed
Newer population/renderer contracts 0.8.0.41761335733 0.7.0.dev1793837579+main.39a7302f 0.4.0.dev1793837579+main.39a7302f 88 passed

Six additional end-to-end cases passed with OVStage enabled:

  • Older full stack, sharing disabled: synthetic rendering scene and cartpole.
  • Older full stack, sharing enabled: pose/scale and contact/gravity/rendering.
  • Newton + newer OVRTX/OVStage, sharing disabled: synthetic scene and cartpole.

The isolated-physics regression failed before the fix and passed afterward.

Newer OVPhysX end-to-end simulation remains unverified because the cached binary is incompatible with newer OVStage. Native selector population and renderer contracts passed independently.

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 uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump package versions — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@r-schmitt
r-schmitt requested a review from a team November 5, 2026 16:00
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Nov 5, 2026
@r-schmitt

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 Nov 5, 2026
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR changes how OVStage-based physics and rendering scenes are populated.

The PR appears safe to merge, with a non-blocking gap in coverage of the new OVStage 0.4 path.

Findings

  1. P2 New physics path goes unchecked ▶

Summary

Adds physics population descriptions for OVStage builds that removed physics domains, while retaining the older domain-based path.

  • OVStage keeps physics data available across both population APIs.
  • Shared OVRTX stages load composed collider assets.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Populate OVStage] --> B{Physics requested?}
    B -->|No| C[Populate requested domains]
    B -->|Yes| D{PHYSICS domain exists?}
    D -->|Yes| E[Add physics domain]
    E --> C
    D -->|No| F[Populate rendering and physics descriptions]
    C --> G[Clone and commit]
    F --> G
Loading

Reviews (1) · Last reviewed commit: "implement physics population descriptio..." · Reviewed by 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

Needs attention: Implementation (1), Style consistency (2), Test quality (1). Other reviewed categories look good.

  • PR description: The body omits the new config and export-policy changes, presents capability detection as a strict 0.4.0 cutoff, and provides no validation commands; describe both behaviors and list tested OVStage versions.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: The renderer infers physics population from scene_key, so isolated physics scenes can preserve references incorrectly; use self.scene.cfg.populate_physics as the owning contract.
  • Style consistency: The compatibility helper weakens the concrete population-domain type and misnames metersPerUnit; retain ovstage.PopulationDomain and rename the expression meters_per_unit.
  • Test quality: The population regression test protects distinct units, defaults, bindings, and clone relationships, but its docstring claims both API paths while only the installed runtime path executes; narrow the wording.

Minor fixes needed. Posted 4 inline findings.

Automated review; human maintainers own approval decisions.

@r-schmitt

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 Nov 5, 2026
@pbarejko
pbarejko merged commit eed2d28 into isaac-sim:main Nov 5, 2026
100 of 124 checks passed
AntoineRichard pushed a commit that referenced this pull request Nov 9, 2026
## Description

Scene initialization currently forces
`physxScene:envIdInBoundsBitCount=4` whenever clone recipes exist. The
population-description path added in #8949 forwards this setting, which
reduces throughput in the Franka reach workload with shared ground.

Remove the unconditional override so scenes use an explicitly authored
value or the runtime default. Clone environment IDs and collision-group
setup are unchanged. The [PhysX API
documentation](https://github.com/NVIDIA-Omniverse/PhysX/blob/main/physx/include/PxBroadPhase.h)
explains that environment bits can expand shared objects' search bounds
and increase collision-processing work.

A controlled diagnostic on `Isaac-Reach-Franka` (4,096 environments, 100
training iterations, seed 42) recovered approximately 8.3% collection
throughput by removing only this attribute. Adding only the attribute
back reproduced the slowdown. Reported final reward and episode length
matched.

## Type of change

- Bug fix

## Validation

- Full repository formatting, lint and changelog checks passed.
- 105 focused tests passed, covering CPU/GPU cloning, 2,048
overlapping-environment collision isolation, lifecycle/population
behavior, and shared-ground contacts.
- ANYmal D and G1 training completed with 4,096 environments and two
iterations each.
- Franka training completed 100 iterations with 4,096 environments on
this patch.
- The throughput result above is from single-setting isolation, not a
claim of improvement across all workloads.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran `uv run --no-sync isaaclab --format`.
- [x] Reviewed affected documentation; no API documentation changes are
needed.
- [x] Validated cloning, collision isolation and shared-ground contacts
with existing tests.
- [x] Added the required `isaaclab_ov` changelog fragment.
- [x] Contributor is already listed in `CONTRIBUTORS.md`.

Co-authored-by: marcodiiga <[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.

2 participants