Skip to content

Add per-environment objects to YAML and authoring tools - #1421

Closed
cvolkcvolk wants to merge 3 commits into
cvolkcvolk/refactor/per-environment-object-apifrom
cvolkcvolk/refactor/per-environment-object-yaml
Closed

cvolkcvolk wants to merge 3 commits into
cvolkcvolk/refactor/per-environment-object-apifrom
cvolkcvolk/refactor/per-environment-object-yaml

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Add per_environment_objects to environment YAML, with constructor parameters for each member. Update generation, review previews, shipped scenes, and documentation to use the same schema.

Why this change?

#1420 introduces the Python PerEnvironmentObject API. The old YAML object_sets format only lists registry names, so it cannot express two differently scaled instances of the same asset or a SimReady member requiring its own USD path.

What changes?

  • Keep concrete assets under objects; declare alternatives under per_environment_objects. Each member has a registry_name and optional params.
  • Use assign_to_environments: sequential or random, matching the Python API. Relations and tasks continue to address the enclosing entry's id.
  • Generate and validate the new schema throughout the authoring workflow. Reserve constructor fields to reject ambiguous declarations early.
  • Identify review cards and previews by member index, so members using the same registry asset retain separate configurations and thumbnails.
  • Remove the temporary YAML converter and migrate examples and documentation. Old object_sets declarations are rejected.

This PR changes authoring and serialization. Asset assignment, geometry, and simulation remain owned by the earlier runtime PRs.

Usage example

Before:

object_sets:
  - id: fruit
    members:
      - banana_ycb_robolab
      - orange_01_fruits_veggies_robolab
    random_choice: false

After:

per_environment_objects:
  - id: fruit
    objects:
      - registry_name: banana_ycb_robolab
      - registry_name: orange_01_fruits_veggies_robolab
    assign_to_environments: sequential

Add params: {scale: [0.8, 0.8, 0.8]} to a member to configure only that asset. Entry-level params configure the shared scene object, such as its initial pose. Ordinary assets remain under objects.

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:

132 tests passed: 125 schema/offline-generation/review-GUI checks (4 live-service/subprocess cases deselected), and 7 scene-conversion checks. pre-commit passed. Live generation endpoints, full GUI rendering/video, and the full test suite were not run.

Part 7/7 · Stack overview · Based on #1420

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

Copy link
Copy Markdown
Collaborator Author

Closing this draft because its YAML and authoring support is built around PerEnvironmentObject from #1420. We are proceeding with Object plus AssetSelectionVariation in #1424 and #1425. YAML and authoring support remains follow-up work and should construct that same API; it is not implemented by #1425.

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