Skip to content

Support registered environment placement recording - #1386

Open
qianl-nv wants to merge 5 commits into
mainfrom
qianl/feature/registered-placement-recording
Open

qianl-nv wants to merge 5 commits into
mainfrom
qianl/feature/registered-placement-recording

Conversation

@qianl-nv

@qianl-nv qianl-nv commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Add registered and external Python environments as input sources for offline placement recording. Preserve graph-YAML and in-memory environment inputs.

Why this change?

record_placement_layouts.py only accepted an environment graph YAML. Python environment factories, including factories defined in downstream packages, could not use the recording workflow directly.

What changes?

  • Add environment_name as an alternative to env_spec for bundled registered factories.
  • Add --external_environment_class_path with environment-specific CLI options for downstream factories.
  • Resolve external factories only after SimulationApp starts, allowing their modules to import pxr or omni safely.
  • Keep graph-YAML and in-memory environment inputs unchanged.
  • Document all supported environment sources and retain placement-pool validation.

Usage example

Registered environment:

python isaaclab_arena/scripts/record_placement_layouts.py \
  environment_name=droid_table_multi_object_placement \
  output=placements.jsonl

External environment:

python isaaclab_arena/scripts/record_placement_layouts.py \
  --external_environment_class_path package.module:EnvironmentClass \
  environment_name [environment-specific options] \
  output=placements.jsonl

Validation

  • Pre-commit hooks on the changed files
  • Real droid_table_multi_object_placement factory through the recording CLI
  • Existing graph-YAML PhysX recording test
  • External factory loading and recording smoke test

Allow the offline placement recorder to build registered Python environments by name using their typed default configuration. Keep graph YAML and in-memory environment sources supported, and document the source selection behavior.

Signed-off-by: Qian Lin <[email protected]>
@qianl-nv
qianl-nv marked this pull request as ready for review October 6, 2026 11:49
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium risk] Adds support for registered Python environments in placement recording.

The PR should address external registered-environment loading before merging, since those names cannot be resolved by the recording command.

Findings

  1. P1 External factories cannot load ▶
  2. P2 Registered factory path untested ▶

Summary

The PR lets offline placement recording build a named, registered environment with its typed default configuration while retaining graph-YAML and in-memory inputs.

  • Adds mutually exclusive source settings and documents the placement-pool requirement.
  • Adds a registered-source recording test, though it does not exercise a real factory through the CLI.
  • External environment packages supported by the existing environment CLI cannot currently be loaded by the new recording command.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  C[Recording configuration] --> S{Environment source}
  S -->|env_spec| Y[Load graph YAML]
  S -->|environment_name| R[Register bundled factories and look up name]
  Y --> E[Arena environment description]
  R --> E
  E --> P[Build placement pool]
  P --> V[Settle and validate candidates]
  V --> J[Write accepted layouts to JSONL]
Loading

Reviews (1) · Last reviewed commit: "Simplify registered recording validation"

@qianl-nv qianl-nv changed the title Support registered placement recording Support registered environment placement recording Oct 7, 2026

@zhx06 zhx06 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Leave some comments about readability.

This branch has not been deployed

No deployments
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.

2 participants