Skip to content

Add a reset curriculum for Franka cube stacking - #9072

Open
maxkra15 wants to merge 25 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/stack-success-height
Open

maxkra15 wants to merge 25 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/stack-success-height

Conversation

@maxkra15

@maxkra15 maxkra15 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add the Franka cube-stack reset catalog and curriculum. The event owns state restoration, including actuator targets. The curriculum credits the previous row before updating the distribution for the next reset. The catalog covers nine recipes from table starts through final release.

The event gathers snapshots with ResetStateBuffer from #8872. The ResetStateSampler tracks outcomes and normalizes the task’s table and layout weighting. The final draw uses Torch to preserve seeded manager resets.

This is part 1 of the combined draft #7735. #9073 connects the catalog to the Franka PPO task.

Validation

A CPU check through the event and curriculum managers matched all 6,786 authored rows and fixed-recipe partial-reset writes against the archived implementation. It also checked prior-row attribution, 35% table sampling probability, partial reset isolation, and exclusion of manual and zero-step resets. Thirteen focused tests passed, including a kitless manager regression for prior-row credit, live table weighting, and selected base poses. Formatting, changelog, and whitespace checks passed.

Review follow-up adds a regression for a noisy held cube overlapping its support and one for the configured arm workspace.

@maxkra15
maxkra15 requested a review from a team November 17, 2026 22:38
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Nov 17, 2026
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Adds a Franka cube-stacking reset catalog and a curriculum that adjusts starting states using episode outcomes.

  • Franka stack resets can start from authored points across the task.
  • Completed stack episodes now shape which reset states come next.
  • Stack success can require cubes to match the expected vertical gap.

No new actionable issues found. The earlier held-cube overlap finding is addressed.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Episode ends] --> B[Credit the previous reset row]
    B --> C[Update reset probabilities]
    C --> D[Sample a reset row]
    D --> E[Apply bounded arm noise]
    E --> F{Held cube overlaps a support or table?}
    F -->|Yes| G[Restore the authored arm and cube together]
    F -->|No| H[Keep the proposed state]
    G --> I[Write robot targets and physical state]
    H --> I
    I --> J[Save the new reset row]
Loading

Reviews (4) · Last reviewed commit: "Honor the configured Franka reset worksp..." · Reviewed by Greptile

@isaaclab-review-bot isaaclab-review-bot 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.

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (1), Style consistency (2), Test quality (1). Other reviewed categories look good.

  • PR description: The title and body match the spacing fix, two-cube regression, and changelog; reported validation is relevant, and the diff introduces neither a measurable performance claim nor material runtime costs requiring benchmarks.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: height_threshold changes from upper-only to symmetric tolerance, rejecting previously accepted gaps; retain legacy behavior through deprecation with targeted warnings, migration and removal guidance, and transition coverage.
  • Implementation: Implementation looks good.
  • Style consistency: The internal pair predicate has a public name and precedes cubes_stacked; prefix it with an underscore and move it below the public function.
  • Test quality: The distinct adjacent-pair and two-cube regression lacks the required kitless marker, excluding it from text-selected kitless CI runs; add a file-level pytestmark.

Significant concerns. Posted 4 inline findings.

Automated review; human maintainers own approval decisions.

@isaaclab-review-bot isaaclab-review-bot 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.

Isaac Lab Review Bot

Needs attention: API (1), Compatibility and deprecation (1), Style consistency (2). Other reviewed categories look good.

  • PR description: The title and body match the termination fix, regression, and changelog; reported baseline failure and candidate validation are relevant, with no measurable performance claim or material cost change requiring benchmarks.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: The pair predicate has only an internal caller; its public name unnecessarily expands the API surface, so prefix it with _ and place it after cubes_stacked.
  • Compatibility and deprecation: Breaking changes: height_threshold changes from documented upper-only tolerance to symmetric tolerance without a functional legacy path; provide a warned transition, migration and removal guidance, and coverage for both paths.
  • Implementation: Implementation looks good.
  • Style consistency: The new predicate docstring omits the displacement frame and tensor shape; document world-frame displacement in meters with shape [N, 3] and use double backticks for parameter names.
  • Test quality: Test quality looks good.

Significant concerns. Posted 4 inline findings.

Automated review; human maintainers own approval decisions.

@maxkra15 maxkra15 changed the title Require the expected height between stacked cubes Add an opt-in height check for stacked cubes Nov 17, 2026
@maxkra15

Copy link
Copy Markdown
Contributor Author

The shared cubes_stacked term keeps the documented upper-only default. The new Franka PPO task in #9073 enables the symmetric check. The kitless regression covers both behaviors and the two-cube path. The pair helper is private and documents its world-frame displacement and tensor shapes. The test now has a return annotation, and the changelog documents how to opt in.

@greptileai

@maxkra15 maxkra15 changed the title Add an opt-in height check for stacked cubes Add a reset curriculum for Franka cube stacking Nov 17, 2026
@maxkra15

Copy link
Copy Markdown
Contributor Author

The revised scope contains the full Franka reset catalog and curriculum. This is part 1 of #7735, with state PPO in #9073 and camera training in #9075.

@greptileai

@maxkra15

Copy link
Copy Markdown
Contributor Author

Fixed the held-cube overlap before any simulator or target write. When a proposed perturbation intersects either other cube or the table, the reset restores the validated arm and held-cube pose together. The new test reproduces the short vertical gap on the old code. Default catalog parity and all nine zero-intermediate-noise partial-reset replays still pass.

The event now uses the configured arm workspace, builds rows on the CPU before transferring the assembled tensors, and reports a single attempt count per recipe.

@greptileai

maxkra15 added a commit to maxkra15/IsaacLab that referenced this pull request Nov 30, 2026
Integrate IsaacLab main at ed56359 while preserving the existing PR changes.
maxkra15 added a commit to maxkra15/IsaacLab that referenced this pull request Dec 1, 2026
Integrate upstream IsaacLab main at ed56359 through the existing parent branch.
Integrate IsaacLab main at 6b20eac while preserving the existing PR changes.
maxkra15 added a commit to maxkra15/IsaacLab that referenced this pull request Dec 2, 2026
Integrate upstream IsaacLab main at 6b20eac through the existing parent branch.

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

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant