Skip to content

Added windows instructions to leapp docs - #5789

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
frlai:frlai/add_windows_installation_commands_for_leapp
May 27, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
frlai:frlai/add_windows_installation_commands_for_leapp

Conversation

@frlai

@frlai frlai commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Fixes # (issue)
Adds windows documentation for leapp export. builds on top of #5726 where some changes were forgotten

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 updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 26, 2026

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

Thanks for adding Windows instructions for the LEAPP documentation! This is a valuable addition for Windows users.

Overall Impression

Clean and well-structured changes that correctly add tabbed code blocks for Windows alongside the existing Linux commands.

Minor Observations

Inconsistent placeholder formatting (very minor):

In exporting_policies_with_leapp.rst, the Windows example uses <date timestamp> (no spaces) while the Linux example uses < date timestamp > (with spaces). Consider using consistent formatting for placeholders across both tabs.

# Linux:
--checkpoint logs/rsl_rl/ur10_reach/< date timestamp >/model_4999.pt

# Windows:
--checkpoint logs\rsl_rl\ur10_reach\<date timestamp>\model_4999.pt

This is cosmetic only and does not affect functionality.

Verification

✅ Windows batch syntax is correct (^ for line continuation, isaaclab.bat instead of ./isaaclab.sh)
✅ Path separators are properly converted to backslashes for Windows
✅ RST tab-set structure with sync-group is correct
✅ copy command correctly used instead of cp for Windows

CI Note

The "Check for Broken Links" failure appears to be a pre-existing issue with external URL redirects (tensorflow.org, etc.) and is unrelated to this PR.

LGTM pending the optional consistency fix above.

@greptile-apps

greptile-apps Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds Windows-specific instructions to two LEAPP export documentation pages by wrapping existing Linux bash code blocks in tab-set / tab-item structures that expose both a Linux and a Windows tab, consistent with the tab-set pattern already used for the pip install leapp step introduced in #5726.

  • exporting_policies_with_leapp.rst: The "Exporting a Policy" section and the UR10 example now each have a Windows tab using isaaclab.bat, backslash path separators, and ^ batch line continuation.
  • exporting_direct_workflow_policies_with_leapp.rst: The file-copy step and the policy export command both gain Windows tabs; the copy step uses the CMD copy command and the export step uses isaaclab.bat with batch syntax.

Confidence Score: 4/5

Documentation-only change; no runtime code is affected and the batch syntax used is correct.

The Windows instructions are well-formed and use the correct isaaclab.bat, backslash paths, and ^ line continuation. Two minor polish issues exist: the placeholder spacing is inconsistent between Linux and Windows tabs, and the copy command is missing /Y which could surprise users on repeat runs.

Both changed files are worth a quick pass; the copy /Y flag in exporting_direct_workflow_policies_with_leapp.rst and the placeholder spacing in exporting_policies_with_leapp.rst are the only items to revisit.

Important Files Changed

Filename Overview
docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst Two plain bash code blocks in the Exporting a Policy section are wrapped in tab-sets with Linux and Windows variants; the Windows variant uses correct batch syntax and isaaclab.bat, but has a minor placeholder spacing inconsistency vs the Linux tab.
docs/source/tutorials/06_exporting/exporting_direct_workflow_policies_with_leapp.rst Two bash code blocks are wrapped in OS tab-sets; the Windows cp equivalent uses copy without /Y, which may prompt for overwrite confirmation on repeat runs, unlike the Linux cp counterpart.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User reads LEAPP export docs] --> B{OS tab selected}
    B -->|Linux| C[bash code block
./isaaclab.sh ...]
    B -->|Windows| D[batch code block
isaaclab.bat ...]
    C --> E[Export policy]
    D --> E
    E --> F[Exported artifacts
.onnx / .pt / metadata]
Loading

Reviews (1): Last reviewed commit: "added more windows tabs" | Re-trigger Greptile

Comment on lines +115 to +117
isaaclab.bat -p scripts\reinforcement_learning\leapp\rsl_rl\export.py ^
--task Isaac-Reach-UR10-v0 ^
--checkpoint logs\rsl_rl\ur10_reach\<date timestamp>\model_4999.pt

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.

P2 The placeholder format for the Windows example omits the spaces that appear in the Linux version (< date timestamp > vs <date timestamp>), making the two tabs inconsistent. Since this is a placeholder, both should match the same convention so readers see a uniform pattern when they switch tabs.

Suggested change
isaaclab.bat -p scripts\reinforcement_learning\leapp\rsl_rl\export.py ^
--task Isaac-Reach-UR10-v0 ^
--checkpoint logs\rsl_rl\ur10_reach\<date timestamp>\model_4999.pt
isaaclab.bat -p scripts\reinforcement_learning\leapp\rsl_rl\export.py ^
--task Isaac-Reach-UR10-v0 ^
--checkpoint logs\rsl_rl\ur10_reach\< date timestamp >\model_4999.pt

Comment on lines +65 to +66
copy scripts\tutorials\06_deploy\anymal_c_env.py ^
source\isaaclab_tasks\isaaclab_tasks\direct\anymal_c\anymal_c_env.py

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.

P2 The Windows copy command, unlike Linux cp, will interactively prompt "Overwrite? (Yes/No/All):" if the destination file already exists. Users following this tutorial a second time (e.g., after re-annotating) will see an unexpected interactive prompt. Adding the /Y flag suppresses this and makes the Windows tab behave like its Linux counterpart.

Suggested change
copy scripts\tutorials\06_deploy\anymal_c_env.py ^
source\isaaclab_tasks\isaaclab_tasks\direct\anymal_c\anymal_c_env.py
copy /Y scripts\tutorials\06_deploy\anymal_c_env.py ^
source\isaaclab_tasks\isaaclab_tasks\direct\anymal_c\anymal_c_env.py

@kellyguo11
kellyguo11 merged commit 1b4627e into isaac-sim:develop May 27, 2026
36 of 37 checks passed
@kellyguo11

Copy link
Copy Markdown
Contributor

pls also create a cherry-pick PR for the release branch

@kellyguo11 kellyguo11 mentioned this pull request May 27, 2026
7 tasks done
kellyguo11 pushed a commit that referenced this pull request May 27, 2026
cherry pick of #5789

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants