Skip to content

Update leapp documentation - #7050

Merged
kellyguo11 merged 4 commits into
isaac-sim:developfrom
frlai:frlai/consolidate_leapp_documentation
Sep 2, 2026
Merged

kellyguo11 merged 4 commits into
isaac-sim:developfrom
frlai:frlai/consolidate_leapp_documentation

Conversation

@frlai

@frlai frlai commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Updates leapp documentation as part of the doc overhaul effort. It simplifies some explanations and organizes all concepts into a self contained page with subpages under the sim2real section. Also adds tests to back claims about physics backend.

Type of change

  • Documentation update

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@frlai
frlai requested a review from a team August 12, 2026 21:41
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Aug 12, 2026
@greptile-apps

greptile-apps Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR reorganizes and expands the LEAPP export and deployment documentation while adding integration coverage for exporting Humanoid policies across three physics presets. The checkpoint helper’s new per-spec simulation lifecycle conflicts with its supported multi-spec batching.

  • Adds dedicated LEAPP deployment and API documentation.
  • Moves the Direct-workflow export guide into the policy-deployment section.
  • Documents manager-based workflow and physics-backend support.
  • Adds RSL-RL Humanoid export tests for Isaac Sim PhysX, OV PhysX, and Newton MJWarp.
  • Changes initialized-checkpoint generation to launch a simulation context for each specification.

Confidence Score: 4/5

The multi-spec checkpoint lifecycle needs to be fixed before merging because later Kit-backed specifications can fail after the first simulation application is closed.

The helper explicitly supports multiple specifications in one process, but the changed loop now tears down and recreates a process-scoped Kit simulation application for each specification.

Files Needing Attention: source/isaaclab_rl/test/export/leapp_initialized_checkpoints.py

Important Files Changed

Filename Overview
source/isaaclab_rl/test/export/leapp_initialized_checkpoints.py Replaces a shared application lifecycle with per-spec simulation contexts, breaking supported batches containing multiple Kit-backed specifications.
source/isaaclab_rl/test/export/test_leapp_export_flow.py Adds focused Humanoid export coverage for three physics presets and correctly forwards each selected preset through checkpoint creation and export.
docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst Expands the main LEAPP guide with supported workflows, backend configuration, quick-start commands, and links to deployment subpages.
docs/source/policy_deployment/05_leapp/deploying_exported_policies_with_leapp.rst Adds a self-contained deployment guide whose commands and visualizer options match the implementation.
docs/source/policy_deployment/05_leapp/exporting_direct_workflow_policies_with_leapp.rst Relocates and streamlines the Direct-workflow export tutorial while preserving its examples and deployment limitation.

Sequence Diagram

sequenceDiagram
    participant Test as LEAPP export test
    participant Helper as checkpoint helper
    participant Sim as simulation runtime
    participant Export as LEAPP export CLI
    Test->>Helper: request checkpoint for physics preset
    Helper->>Sim: launch_simulation(env_cfg)
    Sim-->>Helper: initialized environment
    Helper-->>Test: checkpoint path
    Test->>Export: checkpoint + matching preset
    Export-->>Test: LEAPP artifacts
Loading

Reviews (1): Last reviewed commit: "Docs: Consolidate LEAPP deployment guide..." | Re-trigger Greptile

task_dir,
)
resolved_path_file(task_dir).write_text(str(checkpoint_path))
with launch_simulation(env_cfg, vars(cli_args)):

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.

P1 Per-spec launch breaks Kit lifecycle

When one invocation contains multiple Kit-backed --spec entries, this loop closes the process-scoped SimulationApp after the first entry and attempts to initialize another one for the next entry, causing later checkpoints to fail and the helper to exit unsuccessfully.

@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 LEAPP documentation is reorganized into a connected policy-deployment section with dedicated deployment, Direct-workflow, and API pages, while export coverage is extended across three Humanoid physics presets. Two documentation issues need correction: the new deployment page lacks the module context needed to resolve its class reference, and the export CLI table no longer states the accepted --export_method values while mentioning PT2 without establishing its CLI token.

  • Design and architecture: The documentation split is structurally coherent: hidden toctree entries connect the new subpages, and the moved Direct-workflow tutorial retains appropriate relative includes. However, the deployment page references ~envs.LeappDeploymentEnv without the isaaclab current-module context used by sibling pages, leaving that API cross-reference unresolved.
  • API: The documented deployment and export commands otherwise preserve the existing CLI surface and preset forwarding. The --export_method table should restore the concrete accepted tokens (onnx-dynamo, onnx-torchscript, jit-script, and jit-trace) rather than replacing them with broad format families and an unsupported or unexplained PT2 reference.
  • Implementation: The added Humanoid tests pass each physics preset consistently through checkpoint creation and export, while existing _run_export callers retain task-derived preset behavior. The checkpoint helper now scopes initialization through launch_simulation; no concrete defect in that implementation is established by the supplied evidence.

Minor fixes needed. Posted 2 actionable findings inline.

Automated review; human maintainers own approval decisions.

Deploy Exported Policies with LEAPP
===================================

Isaac Lab provides :class:`~envs.LeappDeploymentEnv` for running exported policies back in

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.

🟡 Warning · Implementation — Missing currentmodule breaks class cross-reference

This page uses :class:~envs.LeappDeploymentEnv`` but, unlike the sibling exporting_policies_with_leapp.rst and the Direct-workflow page, declares no `.. currentmodule::`. Sphinx's Python domain resolves the non-refspecific target `envs.LeappDeploymentEnv` exactly, which matches no registered object, so the reference renders as plain text and emits a build warning. Add `.. currentmodule:: isaaclab` after the title, matching the sibling pages.

@@ -192,8 +202,9 @@ backend-specific and AppLauncher arguments:
- Name for the exported graph and output directory.
* - ``--export_method``
- ``onnx-dynamo``
- Export backend. Choices: ``onnx-dynamo``, ``onnx-torchscript``, ``jit-script``,
``jit-trace``.
- Export format. LEAPP supports ONNX, JIT, and PT2 export formats; see the

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.

🔵 Suggestion · Api — CLI option loses documented accepted values

The --export_method row previously listed the accepted tokens (onnx-dynamo, onnx-torchscript, jit-script, jit-trace). No export script changes here, so the accepted values are unchanged, yet the table now only mentions "ONNX, JIT, and PT2" and defers to external docs. Readers can no longer determine valid values, and PT2 is not among the documented choices. Restore the explicit choice list.

@frlai
frlai force-pushed the frlai/consolidate_leapp_documentation branch from 7d8e55d to b487646 Compare August 18, 2026 22:46
@frlai
frlai force-pushed the frlai/consolidate_leapp_documentation branch from b487646 to 8707d78 Compare August 24, 2026 22:12
@kellyguo11
kellyguo11 merged commit 89d3179 into isaac-sim:develop Sep 2, 2026
46 of 48 checks passed
@frlai
frlai deleted the frlai/consolidate_leapp_documentation branch September 2, 2026 21:59
kellyguo11 added a commit that referenced this pull request Sep 4, 2026
# Description

Backports the following merged `develop` PRs to `release/3.0.0`:

- #7220 — prune unused Docker volumes on package-test runners
- #7169 — cache the resolved OVRTX Warp device
- #6889 — move the OVPhysX collider cache out of the Python interpreter
directory
- #7345 — document the registered XR camera PiP tasks
- #7050 — update and reorganize the LEAPP documentation
- #7473 — register external RSL-RL tasks before agent discovery
- #7467 — update the China storage profile to Isaac Sim 6.1
- #7385 — accept legal float scale values when seeding Fabric frame
views from USD
- #7517 — use lazy exports in `isaaclab_rl`

The duplicate #7517 in the original request is included once.

Seven source commits replayed cleanly. Two required release-specific
reconciliation:

- #7169 retains the release branch's mapped OVRTX write path, which was
removed separately on `develop`, while resolving and caching one Warp
device for render-product IDs, mappings, and CUDA streams.
- #7050 preserves the #7494 export-backend clarification that is already
present on the release branch while applying the broader LEAPP
documentation overhaul.

No new dependencies are added.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Performance improvement
- Documentation update
- CI/infrastructure update

## Release backport

- [ ] <!-- backport-active-release --> This PR already targets the
active release branch; do not backport it again.

## Validation

- `uv run --no-project --with pytest python -m pytest -q
.github/actions/run-package-tests/test_cleanup_docker_storage.py` — 10
passed
- Nine isolated `isaaclab_rl` namespace/lazy-import regression cases
passed
- Resolved-device OVRTX mapping behavior check passed with Warp 1.16.0
- `uv run --no-project python -m compileall -q` on all changed Python
modules and tests
- `uv run --no-project python tools/changelog/cli.py check` against the
exact `upstream/release/3.0.0` base
- `pre-commit==4.6.2 run --all-files` passed all available hooks
- `git diff --check upstream/release/3.0.0..HEAD`

The full project test environment and documentation build cannot resolve
on this macOS/arm64 host because the release lockfile supports Linux and
Windows only. The Git LFS hook was also unavailable because `git-lfs` is
not installed; none of the changed paths are LFS-tracked. Linux CI
remains authoritative for simulator, OVRTX, Fabric, and full
documentation validation.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the available formatting and static checks
- [x] I have included the corresponding documentation changes
- [x] Each touched source package includes its original changelog
fragment
- [x] Every backported commit records its source commit with `cherry
picked from commit`
- [x] The original contributors are preserved as commit authors

---------

Signed-off-by: Zeng Qingcheng <[email protected]>
Co-authored-by: myurasov-nv <[email protected]>
Co-authored-by: Peter Verswyvelen <[email protected]>
Co-authored-by: pv-nvidia <[email protected]>
Co-authored-by: hujc <[email protected]>
Co-authored-by: hougantc-nvda <[email protected]>
Co-authored-by: Frank Lai NV <[email protected]>
Co-authored-by: peterd-NV <[email protected]>
Co-authored-by: Sheikh Dawood <[email protected]>
Co-authored-by: Zeng Qingcheng <[email protected]>
Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: Mustafa H <[email protected]>
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.

2 participants