Repository navigation
Replace rigid object sets with PerEnvironmentObject - #1408
Closed
cvolkcvolk wants to merge 7 commits into
Closed
cvolkcvolk wants to merge 7 commits into
cvolkcvolk wants to merge 7 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>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
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.
Superseded by smaller draft PRs with separate review scopes:
The complete seven-PR review order is in #1415. The original branch and commits remain available.
Replace
RigidObjectSetwithPerEnvironmentObjectand make environment assignment explicit. Migrate Python callers, YAML, environment generation, previews, and documentation to the new API.Why this change?
An
Objectdescribes one concrete asset used across environments.PerEnvironmentObjectdescribes a named scene role, such asfruit, whose asset can differ between environments. Tasks and relations address that role once.The underlying concept remains the same. The switch from
MultiUsdFileCfgtoMultiAssetSpawnerCfg, native cloning, and USD preparation is in #1407; this PR changes the public API and authoring format.Stack: #1406 → #1407 → #1408. Review this PR against #1407.
What changes?
PerEnvironmentObject(objects=..., assign_to_environments=...)and removeRigidObjectSet. Member spawn settings are copied; names, poses, and relations belong to the parent scene role.sequentialcycles through members in order;randomsamples independently and allows repeats. Arena assigns once before placement and preserves the assignment across resets. These strings are Arena settings, not Lab's scene-wide clone-strategy API.per_environment_objects, with constructorparamsfor each member. Update generation and GUI previews together so repeated registry names with different settings remain distinct.spawn_cfg,has_multiple_assets, andasset_indices_by_envconsistently. The capability counts configured alternatives, not observed differences between environments.--object_setbecomes--object_variants). Reject the removedobject_setsandobjects[].variantsYAML forms.This diff also contains the configuration regression fix from the review: instance
.scaleand.usd_pathreads follow the current native configuration without changing library class declarations. That fix and thespawn_cfgconstructor naming belong with #1406 when the stack is reorganized.Constraints: members must be concrete rigid assets. Nested choices and member bounds overrides are rejected. Multiple members require per-environment bounds; changing assignment or environment count requires a new
PerEnvironmentObject.Usage example
With
bananaandorangeinstantiated from the asset library:Environments receive banana, orange, banana, orange. Set shared poses and relations on
fruit. For the same asset in every environment, use the libraryObjectdirectly.Ordinary assets remain under
objects. Each member accepts its ownparams, such asscale. Relations and task parameters continue to referencefruit.Review the Python class, then YAML schema and its generation/GUI consumers.
Validation
198 focused tests passed: 109 YAML/GUI checks (one subprocess test deselected), 37 placement/environment-configuration checks, and 52 configuration/geometry/assignment/native-scene/export checks.
pre-commit run --all-filesand commit hooks passed.Simulation checks used
OPENBLAS_NUM_THREADS=1after an Isaac Sim startup crash in OpenBLAS. The complete suite was not run. Remote kitchen/reference integration and full GUI video preview remain unverified; thumbnail and camera checks do not establish video-preview coverage.