Skip to content

Franka cube stacking combined reference - #7735

Draft
maxkra15 wants to merge 64 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/franka-newton-stack
Draft

maxkra15 wants to merge 64 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/franka-newton-stack

Conversation

@maxkra15

@maxkra15 maxkra15 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Combined draft for the complete Franka cube-stacking simulator feature.

  1. Add a reset curriculum for Franka cube stacking #9072 adds the validated reset catalog and adaptive curriculum.
  2. Add state-based Franka cube stacking with PPO #9073 adds Franka state PPO, physical success, and table-start playback.
  3. Add RGB PPO and distillation for Franka cube stacking #9075 adds RGB PPO and state-teacher distillation.

Validation

All 6,786 authored Franka reset rows matched the archive. The state, camera PPO, and camera distillation tasks each completed one Newton update. A physical release and first-frame camera reset probe passed. The 21 focused tests, format and changelog checks, and strict docs build passed.

@maxkra15
maxkra15 requested a review from a team September 10, 2026 14:51
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Sep 10, 2026
@greptile-apps

greptile-apps Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no actionable new defect or outstanding repository-rule violation was identified.

Summary

This PR adds Newton MJWarp cube-stacking environments for Franka and KUKA-Allegro, including a Franka RGB camera/distillation path, checkpoint-compatible observation contracts, reset-authored task state, and documentation/previews. It also extends LEAPP deployment with camera input semantics, repeated-reset support, play-mode configuration, and fail-closed controller-owned write metadata.

  • Registers state and camera stacking tasks with RSL-RL agent configurations.
  • Preserves the published Franka 100-input and KUKA 171-input state-policy contracts.
  • Adds reset, reward, observation, curriculum, termination, and success-monitor logic for stacking.
  • Adds LEAPP input transforms and controller-owned articulation-write handling.
  • Adds focused task, deployment, exporter, camera-contract, and success-monitor tests.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Reset[Reset events author cube and robot state] --> Scene[Newton MJWarp scene]
  Scene --> Obs[Manager-based observations]
  Camera[RGB camera] --> ActorObs[Camera actor observations]
  Obs --> StatePolicy[State policy / privileged teacher]
  ActorObs --> CameraPolicy[Camera student policy]
  StatePolicy --> Actions[Arm and gripper actions]
  CameraPolicy --> Actions
  Actions --> Scene
  Scene --> Rewards[Rewards, terminations, and success monitor]
  Export[LEAPP export] --> Metadata[Input semantics and controller-owned-write metadata]
  Metadata --> Deploy[Fail-closed deployment validation]
  Deploy --> Scene
Loading

Reviews (2) · Last reviewed commit: "Restore stack checkpoint compatibility a..."

@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

The new Newton stack tasks and supporting LEAPP/export surfaces are broadly coherent, but release metadata does not fully describe the changed RSL-RL resume behavior or correctly classify the added Gaussian configuration field, and one KUKA helper documents an invalid grasp-pair range.

  • Design and architecture: The task architecture centralizes reset metadata in StackResetRuntimeState, shares canonical state observations across policy, critic, and teacher paths, and uses an opt-in controller-owned write hook for LEAPP. No architectural blocker was identified; the remaining concerns are release-contract accuracy and a helper contract mismatch.
  • API: The training entrypoint now honors agent_cfg.resume for all runner classes, while the changelog describes this only as a distillation fix. GaussianDistributionCfg.std_range is a new public configuration field but is recorded in a patch fragment rather than a minor fragment. The KUKA grasp-pair helper also documents IDs in [0, 2] although validation derives the accepted range from the supplied offset table, which currently permits only ID 0.
  • Implementation: The RGB semantic path, joint-name preservation, controller-owned effort-write exclusion, procedural visibility handling, and resume loading path were traced through their producers and consumers. The implementation paths are internally consistent, but the broader resume behavior needs release-note coverage, the public field needs correct release classification, and the grasp-pair docstring must match its length-based validation.

Minor fixes needed. Posted 3 actionable findings inline.

Automated review; human maintainers own approval decisions.

@maxkra15

Copy link
Copy Markdown
Contributor Author

Local deployment validation on current PR runtime code completed successfully:

  • Fresh RSL-RL camera-distillation export on an RTX 4090 with ONNX Runtime 1.26.0 CUDA EP preflighted and active.
  • LEAPP replay passed all 5 captured examples with rtol=1e-3, atol=1e-3. The measured real-sample drift before calibration was 2.47e-5 for arm targets and 4.94e-4 for the recurrent clipped action; the byte-identical ONNX separately passes strict CPU/CPU parity (4.11e-6 max over 887 steps).
  • ONNX SHA256: 896ed48b338728d08300d59c8303fcf76c1cd934153e91fac212df148b7cfeb9.
  • Feedback-state SHA256: eb90ba3c2bc58561450c34df99c105813d3f04038e4c331c5f6de99f0e1ae718.
  • Schema-v1 controller-owned gravity contract and last_action feedback edge matched exactly.
  • The freshly generated bundle then completed 64 steps through the stock headless isaaclab leapp deploy command with Newton/MJWarp and the native Newton renderer.
  • The project environment was restored to the locked CPU ONNX Runtime package afterward.

Follow-up commit bda0707 clarifies that PyTorch/ORT kernel selection can require a measured end-to-end tolerance even on the same device, while retaining a strict target-runtime parity gate and bounded closed-loop canary.

@maxkra15
maxkra15 marked this pull request as draft September 14, 2026 18:52
@maxkra15
maxkra15 marked this pull request as ready for review September 24, 2026 10:22
@maxkra15

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 28, 2026
@kellyguo11 kellyguo11 moved this to In review in Isaac Lab Sep 28, 2026
@maxkra15

maxkra15 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 1, 2026
@maxkra15

maxkra15 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

run-ci

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

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants