Skip to content

Derive object geometry from native spawn settings - #1416

Closed
cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/object-config-sourcefrom
cvolkcvolk/refactor/object-geometry
Closed

cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/object-config-sourcefrom
cvolkcvolk/refactor/object-geometry

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Derive object bounds, collision meshes, and contact-body paths from native spawn configurations. Give ObjectGeometry responsibility for caching this derived geometry.

Why this change?

#1415 makes native configurations authoritative. Geometry still needs to follow their selected USD variants, scale, and primitive dimensions. For a rigid body nested beneath a translated or rotated USD root, placement also needs bounds in the body frame used by simulation pose writes.

What changes?

  • Make Object delegate geometry queries to ObjectGeometry and refresh cached geometry when native settings change.
  • Apply USD variant selections and native scale in an isolated stage. Return rigid geometry in its pose frame, retaining physical scale.
  • Support bounds and body paths for standard native primitive spawners.
  • Share collision-mesh extraction with placement consumers. Preserve subtree exclusions for background references and return independent mesh copies.
  • Keep the existing RigidObjectSet implementation working through the geometry changes.

Bounds and contact-sensor queries keep their existing methods. USDs declared as rigid objects must contain exactly one rigid body. Custom spawners need an explicit bounds override when automatic bounds are unavailable.

The RigidObjectSet constructor and object_sets YAML remain unchanged. #1417 uses this geometry layer to prepare incompatible USD hierarchies; scene export is reviewed separately.

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:

57 tests passed: 28 configuration/geometry/legacy-set checks (1 deselected) and 29 background-collision checks. pre-commit passed.

Part 2/7 · Stack overview · Based on #1415 · Next: #1417

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

Copy link
Copy Markdown
Collaborator Author

Superseded by #1430, which adds SpawnCfgGeometry. Body-frame bounds and moving collision-mesh extraction into it are left for separate follow-up PRs. Closing.

@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