Skip to content

Add G1 whole-body motion tracking with Newton - #8878

Merged
ooctipus merged 9 commits into
isaac-sim:mainfrom
Double7sBurger:feat/mimic-core
Nov 18, 2026
Merged

ooctipus merged 9 commits into
isaac-sim:mainfrom
Double7sBurger:feat/mimic-core

Conversation

@Double7sBurger

@Double7sBurger Double7sBurger commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds Isaac-Motion-Tracking-G1, a whole-body motion-tracking task using Newton and RSL-RL. Supports six server-hosted reference motions, separate actor and critic observations, adaptive motion sampling, and domain randomization.

Also adds a reusable self-collision reward to the shared MDP rewards.

All six reference clips are available from the production asset server under IsaacLab/Motions/G1/v1/. The loader downloads and caches the selected clip automatically; joint and body names are embedded in each NPZ. See the data format and provenance and SHA-256 checksums.

Setup

Train the default spin-kick motion:

uv run --extra rsl-rl isaaclab train --rl_library rsl_rl \
  --task Isaac-Motion-Tracking-G1 --num_envs 4096

To select another clip, append env.commands.motion.motion_file=<full NPZ URL> using the prefix https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.2/Isaac/IsaacLab/Motions/G1/v1/. Available files: g1_spinkick.npz, g1_walk.npz, g1_run.npz, g1_cartwheel.npz, g1_speed_vault.npz, and g1_cr7_grounded.npz.

Sim-to-real scope

Deployment work is maintained separately in g1_deploy. This PR covers the Isaac Lab simulation task, reference-data loading, and training/playback. Robot-side deployment and validation on hardware are outside this PR; the simulation checks below do not establish hardware validation of this revision.

Validation

  • Full formatting and lint checks (uv run isaaclab --format).
  • Current revision: a two-iteration, 16-environment RSL-RL/Newton spin-kick smoke run passed using the production motion URL and a cached official G1 USD. Earlier smoke runs also covered walk.
  • Forward-kinematics checks for all six motions and physics-step contact-history checks.
  • All six production-server clips downloaded successfully, matched the published SHA-256 checksums, and loaded identically through MotionLoader from the production URL and local copies.
  • Newton G1 regression checks with two environments reproduce both reported issues before the fix and pass after it: clip ends truncate episodes through the normal reset path, and relative rewards stay invariant to horizontal translation/yaw without advancing reference time.
  • Completed clips hold their final frame if clip-expiry termination is disabled.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR adds a new G1 training workflow and an optional shared reward.

End episodes at clip boundaries before merging so training does not continue across robot teleports.

Findings

  1. P1 Episodes continue across teleports ▶
  2. P2 Relative rewards use stale alignment ▶

Summary

Adds Isaac-Motion-Tracking-G1 for whole-body motion tracking with Newton and RSL-RL.

  • The G1 task trains against named whole-body motion clips.
  • Failed motion phases are sampled more often on later resets.
  • Self-collision frames now add a reusable penalty to training rewards.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Named motion data] --> B[Motion command]
    B --> C[Policy observations]
    C --> D[RSL-RL action]
    D --> E[Four Newton physics steps]
    E --> F[Contact history]
    E --> G[Tracking rewards and episode checks]
    F --> G
    G --> H[Reset finished episodes]
    H --> B
Loading

Reviews (1) · Last reviewed commit: "Add G1 whole-body motion tracking with N..." · 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: API (1), Style consistency (4). Other reviewed categories look good.

  • PR description: Body matches scope but omits physics-rate scene updates and exact validation commands; add reproducible baseline/candidate throughput with revisions, workload, hardware, backend, environment count, warmup, and steps/second.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: The public self_collision_cost alone bypasses the established SceneEntityCfg contact-term contract, losing manager entity resolution and body selection; accept sensor_cfg instead of sensor_name.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: MotionCommandCfg eagerly binds its runtime class, making configuration imports load implementation dependencies; move it to a config-only module and use a resolvable class_type string.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 5 inline findings.

Automated review; human maintainers own approval decisions.

@StafaH StafaH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Double7sBurger, please move all the data to the server and fetch it like how other assets are fetched, that will avoid having the data in the repository directly.

@Double7sBurger

Copy link
Copy Markdown
Contributor Author

Hi @Double7sBurger, please move all the data to the server and fetch it like how other assets are fetched, that will avoid having the data in the repository directly.

Yes! That's what I was thinking. Doing it now.

@ooctipus ooctipus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the tracking_env.py is needed

@ooctipus
ooctipus requested a review from StafaH November 17, 2026 05:33

@maxkra15 maxkra15 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.

All six motion clips are available from the asset server now. Could you update the setup notes and run Docker CI once the clip-boundary and alignment issues are addressed? Please clarify where sim-to-real is tracked.

@Double7sBurger

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 Nov 18, 2026
@Double7sBurger

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 Nov 18, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator

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 Nov 18, 2026
@ooctipus ooctipus added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Nov 18, 2026
@ooctipus
ooctipus merged commit dadafc6 into isaac-sim:main Nov 18, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run-docker Trigger the on-demand Docker and GPU CI workflow infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants