Repository navigation
Unify object settings in the native spawn configuration - #1415
Closed
cvolkcvolk wants to merge 2 commits into
Closed
cvolkcvolk wants to merge 2 commits into
cvolkcvolk wants to merge 2 commits into
Conversation
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
This was referenced Oct 8, 2026
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make
Object.spawn_cfgthe source of asset settings and construct each native asset configuration once. Update library objects, references, and callers to use that configuration.Why this change?
Objectkeeps asset settings in several places and rebuilds its native configuration through separate factory methods. A change to scale or the USD source can leave consumers reading different values. The heterogeneous runtime needs independent member configurations that remain authoritative after construction.What changes?
spawn_cfgandobject_cfg.spawn.spawn_cfgconsistently as the constructor argument; migrate native-spawner defaults and callers fromspawner_cfg.ObjectReferenceresponsible for binding an existing prim..scaleand.usd_pathreads reflect those values; direct writes now raiseAttributeError. Change them throughobj.spawn_cfg.scaleandobj.spawn_cfg.usd_path.RigidObjectSetandobject_setsYAML remain available. Geometry caching and the heterogeneous spawning backend follow in separate PRs, starting with #1416.Usage example
Before:
After:
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:
58 tests passed: 30 configuration/scale/legacy-set checks (1 deselected) and 28 collision checks. pre-commit passed.
Review order: 1. Configuration → 2. Geometry → 3. USD preparation → 4. Export and previews → 5. Native runtime → 6. Python API → 7. YAML and authoring.
Each PR targets the preceding branch. Review and merge in order; the native backend lands in 5, followed by the Python and YAML migrations in 6–7.