Skip to content

Env Profile Design & Bin Stack Task for SkillGen - #38

Merged
njawale42 merged 9 commits into
mainfrom
neel/bin_stack
Jul 17, 2026
Merged

njawale42 merged 9 commits into
mainfrom
neel/bin_stack

Conversation

@njawale42

@njawale42 njawale42 commented Jul 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a declarative environment profile mechanism for creating task variants without new env ids, and uses it to enable SkillGen bin-stack data generation on the generic Franka cube-stack task.

Detailed description

Environment profiles (isaac_autodata_interfaces/env/env_profile.py)

  • EnvironmentProfile is a validated YAML schema describing a task variant: rigid objects to add (USD spawn, pose, scale, rigid props) or override, event terms to add/remove (e.g. reset randomizations), and the motion-planner profile matching the modified scene.
  • Profiles are overlaid on the parsed env config before gym.make (apply_env_profile in isaaclab_env_interface.py); the schema module itself has no isaaclab dependency and fails fast on invalid input.

Planner-profile registry (curobo_planner_cfg.py)

  • New module-level PLANNER_PROFILES registry and CuroboPlannerCfg.from_profile(), so env profiles select planner tuning by name instead of relying on task-id substring matching (which stays as the fallback).

CLI & Results (scripts/generate_dataset.py, generation_result.py)

  • New --env_profile <yaml> flag; when set, the profile is applied before env creation and its planner profile drives planner construction.
  • The applied profile (name, path, planner) is recorded in the generation-result JSON, since the output dataset stores only the base env id.

Bin-stack SkillGen example

  • env_profiles/franka_bin_stack.yaml: blue sorting bin fixed at table center with the blue cube pinned inside; red/green cubes randomize outside; stiffer contact solving for cubes settling against the bin walls.
  • tasks/franka_bin_stack_skillgen.yaml: SkillGen task descriptor for stacking into the bin.

Tests

  • Unit: profile schema validation, profile application onto env configs, planner-profile registry mapping.
  • E2E: SkillGen bin-stack generation (test_skillgen_bin_data_generation.py, single- and multi-env).

@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds YAML-driven environment profiles for Isaac Lab scene and event overlays, integrates profile-selected planners into dataset generation, records profile metadata, and adds bin-stack SkillGen configurations with unit and end-to-end tests.

Changes

Environment Profiled SkillGen Generation

Layer / File(s) Summary
Environment profile schema and parsing
isaac_autodata_interfaces/env/*, isaac_autodata_tests/interfaces/env/*, .gitignore
Adds typed profile specifications, YAML loading, validation, vector coercion, event parameter conversion, asset reference collection, and unit coverage.
Scene and event overlay application
isaac_autodata_interfaces/env/isaaclab_env_interface.py, isaac_autodata_examples/env_profiles/*, isaac_autodata_tests/interfaces/env/test_env_profile_apply.py
Applies profile-defined rigid-object and reset-event changes to parsed environments and validates successful and rejected overlays.
Profile-based SkillGen integration
scripts/generate_dataset.py, isaac_autodata_interfaces/motion_planners/*, isaac_autodata_examples/tasks/*, isaac_autodata_utils/generation_result.py
Adds profile CLI loading, planner selection, bin-stack task configuration, and profile metadata in generation results.
Generation validation
isaac_autodata_tests/e2e/*, isaac_autodata_tests/interfaces/motion_planners/*
Runs CUDA SkillGen generation for single and parallel environments and validates planner registration and output metadata.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant EnvironmentProfile
  participant setup_env_config
  participant apply_env_profile
  participant CuroboPlannerCfg
  participant GenerationResult
  CLI->>EnvironmentProfile: load profile YAML
  CLI->>setup_env_config: pass profile
  setup_env_config->>apply_env_profile: overlay scene and events
  CLI->>CuroboPlannerCfg: select profile planner
  CLI->>GenerationResult: record profile metadata
Loading

Possibly related PRs

Suggested reviewers: peterd-nv

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 21.74% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly reflects the main change: adding env profiles and a bin-stack SkillGen task.
Description check ✅ Passed The description follows the template with Summary and Detailed description sections and covers reason, changes, and impact.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch neel/bin_stack

Comment @coderabbitai help to get the list of available commands.

Comment thread scripts/annotate_demos.py Resolved
Comment thread isaac_autodata_tests/utils/constants.py Resolved
@njawale42
njawale42 marked this pull request as ready for review July 14, 2026 22:01

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@isaac_autodata_examples/generate_dataset.py`:
- Around line 223-239: Keep the existing planner-profile precedence and
task-name fallback in _build_motion_planners unchanged. Add focused unit
coverage for CuroboPlannerCfg.from_profile that verifies a known profile key
returns the expected configuration and an unknown profile raises the intended
assertion or error.

In `@isaac_autodata_interfaces/env/env_profile.py`:
- Around line 140-209: Update the public classmethod docstrings for
EnvironmentProfile.from_yaml and EnvironmentProfile.from_dict to include
Google-style Args sections documenting path and data respectively, with clear
descriptions of their expected inputs. Preserve the existing behavior and other
docstring content.
- Around line 248-288: Update _validate_scene_dict to validate vector-valued
fields on each rigid_objects.add entry, ensuring position, rotation, and scale
values are sequence-like with the expected vector length and rejecting strings
or malformed values before coercion. Validate rigid_props as a dict for both add
and override entries, while preserving the existing non-empty requirement for
override.rigid_props.

In `@isaac_autodata_tests/interfaces/env/test_env_profile.py`:
- Around line 93-97: Update the match pattern in
test_validate_unknown_rigid_objects_key_fails to escape the dot in
“scene.rigid_objects,” ensuring pytest’s regex matches the literal field path
and satisfies RUF043.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 39cf86ed-5ec5-4949-9026-d73626ca0213

📥 Commits

Reviewing files that changed from the base of the PR and between 0a70f01 and 33fe6e7.

📒 Files selected for processing (15)
  • .gitignore
  • isaac_autodata_examples/env_profiles/franka_bin_stack.yaml
  • isaac_autodata_examples/generate_dataset.py
  • isaac_autodata_examples/tasks/franka_bin_stack_skillgen.yaml
  • isaac_autodata_interfaces/env/__init__.py
  • isaac_autodata_interfaces/env/env_profile.py
  • isaac_autodata_interfaces/env/isaaclab_env_interface.py
  • isaac_autodata_interfaces/motion_planners/curobo/curobo_planner_cfg.py
  • isaac_autodata_tests/e2e/test_skillgen_bin_data_generation.py
  • isaac_autodata_tests/interfaces/env/__init__.py
  • isaac_autodata_tests/interfaces/env/test_env_profile.py
  • isaac_autodata_tests/interfaces/env/test_env_profile_apply.py
  • isaac_autodata_tests/utils/constants.py
  • isaac_autodata_tests/utils/test_generation_result.py
  • isaac_autodata_utils/generation_result.py

@peterd-NV peterd-NV 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. The additional set of schema checks suggested by bot review seems like a good idea to consider adding.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@isaac_autodata_tests/interfaces/env/test_env_profile.py`:
- Around line 128-133: Replace the manual case loop in
test_validate_added_rigid_object_bad_vector_shapes_fail with
pytest.mark.parametrize, passing each key and bad_value as a separate case while
retaining the existing assertion message matching and validation setup.

In `@isaac_autodata_tests/interfaces/motion_planners/test_curobo_planner_cfg.py`:
- Around line 26-30: Rename the unused first parameter in the lambda passed to
classmethod within test_from_profile_dispatches_to_registered_factories to an
underscore-prefixed name, preserving positional binding and the sentinel return
behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 8e78c1c2-ea3d-4320-934c-a5046ce6d1c2

📥 Commits

Reviewing files that changed from the base of the PR and between 6bb9488 and 18fcec3.

📒 Files selected for processing (4)
  • isaac_autodata_interfaces/env/env_profile.py
  • isaac_autodata_tests/interfaces/env/test_env_profile.py
  • isaac_autodata_tests/interfaces/motion_planners/__init__.py
  • isaac_autodata_tests/interfaces/motion_planners/test_curobo_planner_cfg.py

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@isaac_autodata_interfaces/motion_planners/curobo/curobo_planner_cfg.py`:
- Around line 460-463: Replace the assertion guarding the profile_name lookup in
the planner-profile factory with an explicit ValueError (or the project’s
configuration error) when profile_name is absent from PLANNER_PROFILES,
preserving the existing descriptive message and valid-profile return behavior.

In `@isaac_autodata_tests/interfaces/motion_planners/test_curobo_planner_cfg.py`:
- Around line 23-25: Extend test_planner_profile_registry_contents or add a
focused test that exercises from_profile() for every registered name, verifying
each dispatches to the expected profile-specific factory/configuration. Use
monkeypatching or lightweight configuration assertions so the test does not
download assets, while retaining the existing registry shape and callable
checks.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 4e807226-9251-4aa7-b5c9-f49fef351af1

📥 Commits

Reviewing files that changed from the base of the PR and between 18fcec3 and 539af47.

📒 Files selected for processing (2)
  • isaac_autodata_interfaces/motion_planners/curobo/curobo_planner_cfg.py
  • isaac_autodata_tests/interfaces/motion_planners/test_curobo_planner_cfg.py

@njawale42
njawale42 merged commit dec3182 into main Jul 17, 2026
2 checks passed
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