Repository navigation
Replace RigidObjectSet with PerEnvironmentObject - #1420
Closed
cvolkcvolk wants to merge 3 commits into
Closed
cvolkcvolk wants to merge 3 commits into
cvolkcvolk wants to merge 3 commits into
Conversation
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
This was referenced Oct 8, 2026
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Collaborator
Author
|
Closing this draft because we are proceeding with Object plus AssetSelectionVariation in #1424 and #1425. That API supports both fixed assets and per-environment asset selection, so the separate PerEnvironmentObject class and rename are no longer needed. RigidObjectSet migration and deprecation remain follow-up work. |
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.
Replace the Python
RigidObjectSetAPI withPerEnvironmentObjectand explicit assignment settings. Migrate Python environments, CLI options, and examples while preserving the existingobject_setsYAML format.Why this change?
RigidObjectSetrepresents one named scene object whose asset can differ between environments.PerEnvironmentObjectmakes that role explicit;assign_to_environmentsdescribes how its alternatives are distributed.The native spawning and placement changes are in #1419. This PR changes the Python API on top of that runtime. The YAML and authoring migration follows in #1421.
What changes?
Objectfor one concrete asset; usePerEnvironmentObjectfor rigid alternatives assigned across environments.random_choicewithassign_to_environments="sequential"or"random". Sequential assignment repeats the declared order; random assignment samples each environment independently. Assignments stay fixed across resets.Objectinstances or native spawn configurations. Copy member asset settings; configure the scene name, pose, and relations on the enclosing object.--object_setto--object_variants.TODO(migration). It translatesrandom_choiceto the Python assignment setting until Add per-environment objects to YAML and authoring tools #1421.The old Python class and constructor are removed without a compatibility alias.
Usage example
Before:
After:
Both examples assign banana, orange, banana, orange across four environments. For the same banana in every environment, use
bananadirectly.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:
93 tests passed: 38 Python API/integration/assignment/old-YAML conversion checks, 49 schema/CLI checks, and 6 native/singleton export checks. pre-commit passed. Camera integration and the full test suite were not run.
Part 6/7 · Stack overview · Based on #1419 · Next: #1421