Skip to content

Prepare compatible rigid-body paths for native spawning - #1417

Closed
cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/object-geometryfrom
cvolkcvolk/refactor/rigid-usd-preparation
Closed

cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/object-geometryfrom
cvolkcvolk/refactor/rigid-usd-preparation

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Add a utility that prepares rigid asset configurations with a common relative body path. Preserve compatible sources and normalize incompatible USD hierarchies into cached copies.

Why this change?

Isaac Lab discovers a rigid-body path from one environment and reuses it across environments. Assets whose bodies appear at different paths cannot share that view directly. #1416 provides geometry and body-path discovery; this PR isolates the required USD preparation from scene objects.

What changes?

  • Accept native spawn configurations and return independent configurations in the same order.
  • Leave compatible asset sources unchanged, including when their native scales differ.
  • For differing USD hierarchies, relocate the rigid body to a common path in a cached asset. Keep scale on the native configuration.
  • Preserve geometry transforms, selected USD variants, material bindings, shader connections, visibility, and supported physics overrides after relocation.
  • Require exactly one rigid body per asset. When hierarchy normalization is needed, reject animated ancestor transforms.

Preparation edits temporary stages and cached assets; it does not modify original USD files. Primitive spawners work when their body paths already agree; differing hierarchies require USD sources.

This is an internal utility with no user-facing migration. RigidObjectSet still uses the old helper, which remains until the runtime migration. Python and YAML APIs stay unchanged. #1418 addresses native scene export and previews.

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:

9 USD preparation tests passed. pre-commit passed.

Part 3/7 · Stack overview · Based on #1416 · Next: #1418

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

Copy link
Copy Markdown
Collaborator Author

The body-path preparation will come back in a reduced form in the PR after #1430: no remapping of path-keyed overrides, no extra transform handling. Closing in favour of that PR.

@cvolkcvolk cvolkcvolk closed this Oct 12, 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