Skip to content

Add native RSL-RL SuperMimic support - #8867

Draft
rafaelcathomen wants to merge 19 commits into
isaac-sim:mainfrom
rafaelcathomen:review/supermimic-integration
Draft

rafaelcathomen wants to merge 19 commits into
isaac-sim:mainfrom
rafaelcathomen:review/supermimic-integration

Conversation

@rafaelcathomen

@rafaelcathomen rafaelcathomen commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds RSL-RL SuperMimic support:

  • An opt-in flag that captures the pre-reset observation on every step, so interval events such as pushes are not treated as robot dynamics.
  • A state_obs preset on the velocity tasks with noise-free state, command and contact groups. The default observations are unchanged.
  • A differentiable velocity task with per-term reward parity tests, and a G1 SuperMimic config.
  • An optional actor_ema_halflife in the SuperMimic algorithm config, for exporting a deployment-only moving average of the actor. Off by default.

Requires an rsl-rl-lib release with SuperMimic (leggedrobotics/rsl_rl#255). Until then the rsl_rl pin stays at its current commit, so CI cannot import SuperMimic yet.

Size, SuperMimic part only: about 1.35k lines.

  • About 500 lines are tests.
  • About 530 lines are in isaaclab_tasks, mostly the differentiable velocity task the algorithm trains through.
  • About 200 lines are configs in isaaclab_rl.
  • About 70 lines are in core isaaclab, for the opt-in every-step capture.

Part of #8863

Type of change

  • New feature (non-breaking change which adds functionality)

Screenshots

G1 velocity learning curves and evaluation can be attached on request.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Oct 28, 2026
@rafaelcathomen
rafaelcathomen force-pushed the review/supermimic-integration branch from 4946b57 to e30aae2 Compare October 28, 2026 10:19
@maxkra15

maxkra15 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Could you also set env.cfg.possible_agents in this fixture? All three MARL cases currently fail in DirectMARLEnv.step() with AttributeError: 'types.SimpleNamespace' object has no attribute 'possible_agents', before checking observation capture. Using env.possible_agents = env.cfg.possible_agents = ["a", "b"] makes all three cases pass.

Fixture.

rafaelcathomen and others added 12 commits November 21, 2026 16:16
RSL-RL aligned SuperMimic's parameter names with SAC and PPO and added
CUDA graph capture. The replay capacity key also has to match, since
RSL-RL consumes it while building the replay buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lgulich
lgulich force-pushed the review/supermimic-integration branch from fa47afe to 67d85ec Compare November 21, 2026 15:23
@lgulich

lgulich commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Rebased onto main (now that #8866 and #9103 are in) and onto the rebased leggedrobotics/rsl_rl#255.

lgulich and others added 2 commits November 22, 2026 15:35
Per-term joint and body indices are device tensors built once, and
products over feet and contact bodies multiply explicitly, since the
backward of prod synchronizes with the host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The velocity task's heads now run inside captured graphs, and graphed
learner iterations match eager ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lgulich

lgulich commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Pushed two commits: the velocity task's SuperMimic heads now run inside CUDA graphs (device-tensor indices, no prod() backward sync), and the flat G1 agent captures its learner in graphs by default. Tested against the current leggedrobotics/rsl_rl#255, which now also graphs SuperMimic's collection calls. The G1 motion tracking agent is stacked on this as #9151.

lgulich and others added 2 commits November 23, 2026 08:12
The every-step extras key is now cleared beside the final_obs key it
pairs with in reset and reset_to. The physical observation groups rely
on the group default for corruption, the velocity task resolves its
contact sensor name once, and the docs and docstrings drop references to
the parity test and to G1 being the first consumer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The typed SuperMimic configurations covered only part of the RSL-RL
constructor options, so the constructor-tracking test failed against
the current SuperMimic. Add the remaining actor, world-model and
algorithm options: the BlinkMimic settings (reference-action actor,
mirrored world-model batches, Muon and the actor learning-rate
multiplier with its decay triggers), the reference recipe's schedule,
replay-window and critic switches, and the actor and world-model
network options. The environment's maximum episode length is injected
by construct_algorithm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lgulich

lgulich commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Pushed one commit: the SuperMimic configs now track every constructor option of leggedrobotics/rsl_rl#255, including the BlinkMimic settings (moved here from #9151) and the options for the official SuperMimic recipe. The G1 velocity agents are stacked on top as #9173.

The use_cuda_graph docstring named only learner iterations, while RSL-RL
also captures the collection calls act and process_env_step. It now says
so, and notes that Python values read inside the captured calls, such as
the reward weights the differentiable velocity task reads from the
reward manager, are fixed at capture time.

Signed-off-by: Rafael Cathomen <[email protected]>
RSL-RL's SuperMimic now passes the applied policy actions and the
privileged context to post_dynamics, and the actor observation history
to critic_obs, for tasks whose analytic state or critic depends on
them. The differentiable velocity task needs neither: its contact
clocks advance from the predicted contact events alone and its critic
keeps its privileged inputs. It accepts the new arguments so that the
learner can call it.

Signed-off-by: Rafael Cathomen <[email protected]>

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 infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants