Skip to content

Add state-based Franka cube stacking with PPO - #9073

Open
maxkra15 wants to merge 54 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/franka-stack-ppo
Open

maxkra15 wants to merge 54 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/franka-stack-ppo

Conversation

@maxkra15

@maxkra15 maxkra15 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add IsaacContrib-Stack-Cube-Franka-RL with the archived 100-input state policy, Newton MJWarp dynamics, residual arm action, passive mimic finger, stable released-stack success, and the reset curriculum from #9072. Play starts from randomized table rows. The invisible table contact surface uses the standard shape visibility setting.

This is part 2 of #7735. Review the state-task changes alone.

In-tree scope

This example exercises phase-authored multi-object resets before and after each placement, with stable role labels and distinct progress and full-task outcomes. Existing Lift and NIST examples cover related reset sampling paths. Maintainer review of contrib placement and support ownership is requested.

Validation

The registered task completed one Newton PPO update with four environments and finite losses. A four-environment final-release probe activated termination, reward, and reported success on the same step. State and reset CPU tests passed.

@maxkra15
maxkra15 requested a review from a team November 17, 2026 22:44
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels 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 state-based Franka cube-stacking task with PPO, Newton physics, and phase-based resets.

  • Franka PPO learns cube stacking from a fixed state input.
  • Training mixes table starts with practice states from the stacking sequence.
  • A stack counts as success after it stays released and still.
  • Cube stacking can require the full vertical gap to match the expected spacing.

No actionable new issues found in the changes since the previous review.

Reviews (4) · Last reviewed commit: "Include the reviewed Franka reset fixes" · 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), Implementation (1), Style consistency (2), Test quality (1). Other reviewed categories look good.

  • PR description: The title matches the PPO addition and reported smoke validation distinguishes integration from convergence; explicitly name the shared height-tolerance correction included in the final diff while preserving the prerequisite link.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: cubes_stacked rejects positive gaps previously accepted by its documented upper-tolerance contract; preserve legacy behavior through a targeted warned transition, document migration and removal timing, and cover both modes.
  • Implementation: stack_progress indexes optional success parameters unconditionally, causing KeyError for valid termination configurations using function defaults; resolve omitted thresholds and height from the termination defaults.
  • Style consistency: The public reward docstring omits required scene and termination inputs, coordinate frame, and output shape; document those contracts so callers need not inspect the implementation.
  • Test quality: The distinct height-separation and two-cube regressions earn retention, but the sim-free file lacks the required kitless marker and is omitted from that CI selection; add a file-level marker.

Significant concerns. Posted 5 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: Compatibility and deprecation (1), Style consistency (5). Other reviewed categories look good.

  • PR description: The title matches the PPO addition and validation limits are explicit; mention the included shared height-tolerance change and report its regression-test result alongside the Newton smoke and documentation checks.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: cubes_stacked replaces its documented upper-only height tolerance with a symmetric tolerance; preserve the old path during deprecation and add targeted warnings, migration and removal guidance, and transition coverage.
  • Implementation: Implementation looks good.
  • Style consistency: The new public reward and alignment functions omit input dependencies and tensor shapes; document their contracts concisely so callers need not inspect their implementations.
  • Test quality: Test quality looks good.

Significant concerns. Posted 6 inline findings.

Automated review; human maintainers own approval decisions.

@maxkra15

Copy link
Copy Markdown
Contributor Author

The included height change now preserves the shared default and opts in only for the new Franka PPO task. The kitless regression covers both modes and exercises the actual PPO config. The description identifies the dependency and validation, and the reward docstring records its scene inputs, frame, and output shape.

The termination manager fills omitted callable defaults during setup, before reward initialization. A probe with an otherwise default-configured success term confirmed that the reward receives the resolved values. It continues to use the manager's thresholds, and cube order, so reward staging and termination geometry use the same settings.

@greptileai

@maxkra15

Copy link
Copy Markdown
Contributor Author

The state slice now resolves gripper selections and workspace bounds once, batches pair observations in the existing checkpoint order, reads velocities only for stability, and computes reset potential only for the selected environments. The robot configuration is colocated with the task and resolves identically. The shared timeout/drop terms retain explicit context-before-success ordering and the configured success horizon.

@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.
Integrate upstream IsaacLab main at ed56359 through the existing parent branch.
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.
Integrate upstream IsaacLab main at 6b20eac through the existing parent branch.
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

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant