Skip to content

Use native spawning and cloning for rigid object sets - #1419

Closed
cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/native-object-exportfrom
cvolkcvolk/refactor/native-heterogeneous-spawning
Closed

cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/native-object-exportfrom
cvolkcvolk/refactor/native-heterogeneous-spawning

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Move RigidObjectSet to independent native asset configurations and share one assignment between placement and Isaac Lab spawning. Keep the Python class and existing YAML format.

Why this change?

RigidObjectSet already uses Isaac Lab's MultiUsdFileCfg. Its path-based representation still requires Arena to expand asset paths per environment and prepare assets around shared settings. MultiAssetSpawnerCfg can retain each member's configuration, including its own scale and physics.

#1418 supplies native export and preview support; earlier PRs supply configuration ownership, geometry, and USD preparation. This PR connects them to heterogeneous environments.

What changes?

  • Copy member configurations into a native multi-spawner. Prepare USD hierarchies only when their relative rigid-body paths differ.
  • Assign one asset per environment before placement. Retain those assignments across resets and use them in Isaac Lab's clone strategy.
  • Snapshot configurations and reject changes that would make placement disagree with spawning.
  • Query the selected asset's bounds for each environment. Preserve heterogeneous collision placement and contact-sensor paths.
  • Render member previews from their effective native settings. Allow single-member sets in export and layout recording; reject unresolved heterogeneous assets.
  • Delete the old object-set USD helper and its replaced tests.

RigidObjectSet(objects=[...], random_choice=...) and object_sets YAML remain supported. Native scales stay in configurations; source USD files remain unchanged. Heterogeneous placement uses per-environment bounding boxes, while simulation uses each asset's collision geometry.

The Python API rename follows in #1420; it is not required to use this backend.

Validation

After syncing with main (2cc9e9766f): all-files pre-commit passed on this branch. At stack tip #1421, 168 CPU-compatible replay, inference, schema, and GUI tests passed (5 live-service/subprocess cases deselected). GPU simulation checks could not start because the existing container lost CUDA access.

Earlier validation:

82 focused checks passed across runs: 55 assignment/placement, 7 native scene/legacy API, 7 graph conversion, 5 export, and 8 recording/layout checks. A stale light-setting name in the intermediate test fixture was corrected and graph conversion rerun successfully. pre-commit passed. Camera and subprocess phases were not run.

Part 5/7 · Stack overview · Based on #1418 · Next: #1420

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
@cvolkcvolk

Copy link
Copy Markdown
Collaborator Author

Replaced by #1434 (merged). The per-environment assignment part is parked in #1454.

@cvolkcvolk cvolkcvolk closed this Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant