Skip to content

Add RGB PPO and distillation for Franka cube stacking - #9075

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

maxkra15 wants to merge 59 commits into
isaac-sim:mainfrom
maxkra15:maximiliank/franka-stack-camera

Conversation

@maxkra15

@maxkra15 maxkra15 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add IsaacContrib-Stack-Cube-Franka-RL-Camera for RGB PPO and IsaacContrib-Stack-Cube-Franka-RL-Camera-Distillation for a camera student trained from the state teacher in #9073. Both actors use a single fixed RGB camera and robot signals. The camera PPO critic and distillation teacher use privileged state. Training includes startup calibration variation and episode-consistent image noise.

This is part 3 of #7735 and builds on the reset curriculum in #9072 and state PPO task in #9073. GitHub includes the dependency commits in the main-based view. Review the camera changes alone.

Validation

Both registered tasks completed one training update with Newton Warp rendering. Distillation loaded the state smoke run's checkpoint. After changing reset recipes with image noise disabled, the first returned RGB image changed with the scene. The teacher/student and image-noise tests passed. Isaac Sim RTX and OVRTX selectors were configuration-validated.

@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: Design and architecture (2), Scope and over-engineering (1), Implementation (5), Style consistency (6), Test quality (1). Other reviewed categories look good.

  • PR description: Include state PPO/reset curriculum in title/body; preserve validation sections and substantiate the eight-times-faster collection claim with baseline/candidate revisions, workload command, hardware, backend, environment count, warmup, throughput, and peak memory.
  • Design and architecture: Held-cube placement duplicates Franka kinematics, creating a second geometry owner that can diverge from the robot asset; derive reset tool poses from the configured articulation.
  • Scope and over-engineering: Minimal implementation: extend observations.py and terminations.py; remove duplicate attempt metrics, not lifecycle owners. Keep distillation.py, rsl_rl_camera_ppo_cfg.py, rsl_rl_distillation_cfg.py, rsl_rl_ppo_cfg.py, franka_robot_cfg.py, stack_camera_rl_env_cfg.py, stack_rl_env_cfg.py, constants.py, actions.py, actions_cfg.py, camera.py, curriculums.py, goal_context.py, reset_events.py, rewards.py, robot_state.py, runtime_state.py, and spawners.py for configuration contracts, reset state, rendering, and training; separate camera noise configuration. Suggested PR breakdown: state PPO/reset curriculum with action/reset validation; camera PPO with image/reset validation; distillation with checkpoint/clipping validation.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: The reset-row builder performs thousands of small device operations during initialization; construct rows on CPU or batch their construction before transferring the completed table.
  • Style consistency: EpisodeCameraNoiseCfg shares its implementation module and directly references the runtime class, violating the required configuration split; separate it and use a resolvable class_type.
  • Test quality: The curriculum fixture omits four parameters required by StackResetStateTable construction, so its assertions are unreachable; clone the registered event configuration and override fixed_recipe.

Significant concerns. Posted 15 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: Design and architecture (4), Scope and over-engineering (5), Implementation (5), Style consistency (6). Other reviewed categories look good.

  • PR description: Describe state PPO/curriculum scope and remove unsupported “seeded” wording; substantiate throughput and RGB-memory costs with baseline/candidate revisions, command/workload, hardware, backend, environment count, warmup, throughput, and peak memory.
  • Design and architecture: Reset placement duplicates configured robot geometry and workspace bounds, allowing configuration and reset behavior to disagree; derive transforms and limits from their configured owners.
  • Scope and over-engineering: Minimal implementation: Extend StackEnvCfg, observations, and TerminationsCfg; merge franka_robot_cfg→stack_rl_env_cfg, robot_state→observations, runtime_state→reset_events; keep constants, spawners, reset_events, rewards, goal_context, curriculums, camera, actions/actions_cfg, stack_rl_env_cfg, stack_camera_rl_env_cfg, distillation, rsl_rl_ppo_cfg, rsl_rl_camera_ppo_cfg, and rsl_rl_distillation_cfg for configuration, cloning, manager lifecycle, and checkpoint contracts; delete redundant gates/metrics. Essential flow: reset, observe, train. Suggested PR breakdown: 1) state PPO/curriculum, registered-task validation; 2) camera PPO, rendering/noise validation; 3) distillation, checkpoint/clipping validation.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: StackResetStateTable indexes four optional parameters during construction, so the added curriculum fixture raises KeyError before its assertions; use the defaults declared by call.
  • Style consistency: Added prose misstates base-role placement and photometric noise, retains obsolete algorithm history, and omits observation frames and units; correct the contracts and remove stale comparisons.
  • Test quality: Test quality looks good.

Significant concerns. Posted 20 inline findings.

Automated review; human maintainers own approval decisions.

@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no new blocking issues were found.

Summary

Adds RGB-based Franka cube stacking with PPO and distillation from a state-based teacher, alongside shared reset and success checks.

  • Franka stacking policies can learn from saved task states.
  • Franka stacking can also train from camera images and a state-policy teacher.
  • Cube-stack checks can require a minimum as well as a maximum height gap.

No new actionable issues were found in the changes since the previous review. This review used source inspection; training and tests were not run.

Reviews (2) · Last reviewed commit: "Synchronize all stacking review follow-u..." · Reviewed by Greptile

@maxkra15

Copy link
Copy Markdown
Contributor Author

The first-round review fixes are on this branch with both prerequisite slices. Reset perturbations are checked before restoration, and valid rows use the configured arm workspace. Camera calibration derives its nominal view from the sensor config, the noise configuration is separate from its runtime, and the joint-target observation lives with the other observations. We removed the stale speed and memory comments and verified observation layout, selected-reset potential, and post-reset RGB.

The fixture with omitted reset parameters passes through the actual EventManager. ManagerBase resolves the declared callable defaults before creating the reset term, so adding fallback defaults in the constructor would create a second source. The reset event owns every write to the typed metadata. The nominal FK is specific to the stock authored Franka asset, where live Newton tool positions agreed within 0.6 µm across eight held resets. The explicit terminal order and time gate prevent the confirmed lifecycle mismatch and retain the configured horizon.

@greptileai

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