Skip to content

Fixes the running cmd and rlinf env installation - #5670

Merged
kellyguo11 merged 8 commits into
isaac-sim:developfrom
mingxueg-nv:mingxue/fixed_rlinf_install
May 19, 2026
Merged

kellyguo11 merged 8 commits into
isaac-sim:developfrom
mingxueg-nv:mingxue/fixed_rlinf_install

Conversation

@mingxueg-nv

@mingxueg-nv mingxueg-nv commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

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 bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels May 18, 2026
@greptile-apps

greptile-apps Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two issues in the assemble_trocar experimental feature: the --config_path CLI argument in the docs is corrected from a relative path (which broke when the command was run outside the repo root) to an absolute-path placeholder, and missing Python package infrastructure is added.

  • Docs fix (bleeding-edge.rst): Both the training and evaluation command examples now use /path/to/IsaacLab/... instead of a bare relative path, eliminating a subtle CWD dependency.
  • New gym registration (config/g129_dex3/__init__.py): Registers Isaac-Assemble-Trocar-G129-Dex3-v0 and its eval variant; entry points correctly reference the existing g129_dex3_env_cfg module, and the file will be discovered by import_packages at package load time.
  • New type stub (mdp/__init__.pyi): Provides static type information for the mdp sub-package; from isaaclab.envs.mdp import * is included but those symbols are absent from __all__, so they won't be re-exported to type-checkers.

Confidence Score: 4/5

Safe to merge; changes are additive (new registration file, new stub, doc clarification) with no modifications to existing runtime logic.

All three changes are either new files or documentation edits. The gym registrations point to existing, verified classes. The only imperfection is in the .pyi stub, where from isaaclab.envs.mdp import * symbols are excluded from all, so they won't surface as re-exports in IDEs or strict type-checkers — a quality gap that doesn't affect runtime behavior.

mdp/init.pyi — the all / wildcard-import mismatch is worth a second look before the feature is promoted out of experimental.

Important Files Changed

Filename Overview
docs/source/experimental-features/bleeding-edge.rst Fixed --config_path from a relative path (assumes CWD is repo root) to an absolute-path placeholder /path/to/IsaacLab/..., making it clear users must supply a fully-qualified path.
source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/assemble_trocar/config/g129_dex3/init.py New file that registers the Isaac-Assemble-Trocar-G129-Dex3-v0 and -Eval-v0 gym environments; entry points correctly reference the existing g129_dex3_env_cfg module and its classes.
source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/assemble_trocar/mdp/init.pyi New type-stub for the MDP module; wildcard import from isaaclab.envs.mdp conflicts with the explicit all definition, meaning those symbols won't be re-exported to type-checkers.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["isaaclab_tasks.__init__\nimport_packages()"] -->|discovers sub-packages| B["config/g129_dex3/__init__.py"]
    B -->|gym.register| C["Isaac-Assemble-Trocar-G129-Dex3-v0"]
    B -->|gym.register| D["Isaac-Assemble-Trocar-G129-Dex3-Eval-v0"]
    C -->|entry_point| E["isaaclab.envs:ManagerBasedRLEnv"]
    D -->|entry_point| E
    C -->|env_cfg_entry_point| F["g129_dex3_env_cfg:G1AssembleTrocarEnvCfg"]
    D -->|env_cfg_entry_point| G["g129_dex3_env_cfg:G1AssembleTrocarEvalEnvCfg"]

    H["mdp/__init__.py\nlazy_export()"] -.->|type stubs| I["mdp/__init__.pyi"]
    I -->|explicit exports| J["__all__ symbols\nevents / observations\nrewards / terminations"]
    I -->|wildcard import\nnot in __all__| K["isaaclab.envs.mdp.*\nnot re-exported to type-checkers"]
Loading

Reviews (1): Last reviewed commit: "fixed the running cmd and env import" | Re-trigger Greptile

update_task_stage,
)
from .terminations import object_drop_termination, task_success_termination
from isaaclab.envs.mdp import *

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 Wildcard import conflicts with explicit __all__ in stub

from isaaclab.envs.mdp import * is at the bottom of the stub, but __all__ is explicitly defined at the top without any of those mdp symbols. Per PEP 484, when __all__ is present in a .pyi file, only the names listed there are considered exported — the wildcard import adds the names to the local namespace but they will not be re-exported to downstream type-checkers. If the intent is for users to access isaaclab.envs.mdp symbols through this module (e.g. from isaaclab_tasks...mdp import SomeEventTerm), those symbols need to be added to __all__ as well.

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

Code Review: PR #5670

Thanks for the contribution @mingxueg-nv! This PR adds gymnasium environment registrations for the G1 assemble-trocar task and includes a type stub for the MDP module.

Summary

The changes look good overall. The gym registrations follow Isaac Lab conventions, and the type stub file correctly provides explicit type hints for the lazy_export() pattern used in the MDP module.

Findings

📝 Documentation (Minor)

File: docs/source/experimental-features/bleeding-edge.rst

The change from relative paths to absolute placeholder paths (/path/to/IsaacLab/...) may reduce usability compared to the original relative paths which would work when running from the repository root. Consider either:

  • Keeping relative paths with a note to run from repo root
  • Using a shell expansion like $(pwd)/source/isaaclab_tasks/...
  • Adding a comment explaining the placeholder needs to be replaced

✅ Gym Registration (Looks Good)

File: config/g129_dex3/__init__.py

The environment registrations are correctly structured:

  • Entry point isaaclab.envs:ManagerBasedRLEnv is appropriate for manager-based tasks
  • The env_cfg_entry_point paths correctly reference g129_dex3_env_cfg.py at the parent level
  • Both training (v0) and evaluation (Eval-v0) variants are registered

Optional enhancement: Consider adding agent config entry points (rsl_rl, skrl, etc.) if training configurations exist for this task.

✅ Type Stub (Looks Good)

File: mdp/__init__.pyi

The .pyi file correctly provides explicit type information for IDE/type checker support while the actual __init__.py uses lazy_export(). This is the expected pattern - the __all__ list and explicit imports help tools understand what the module exports.

⚠️ CI Note

The "Check changelog fragments" check is failing. If this project requires changelog entries for bug fixes, please add the appropriate fragment.

Verdict

LGTM with minor suggestions. The core functionality is correct. The documentation path change is the main point worth reconsidering for usability.


Automated review by Isaac Lab Review Bot


Update (39393e3): This commit significantly improves the RLinf installation documentation and dependency management:

Changes Reviewed

✅ Documentation Improvements (bleeding-edge.rst, rl_existing_scripts.rst)

  • Added OMNI_KIT_ACCEPT_EULA=yes environment variable for headless Isaac Sim runs - excellent addition for CI/automated workflows
  • Migrated from pip to uv pip for faster dependency resolution
  • Split installation into clearly numbered steps separating safe vs conflicting dependencies
  • Added --no-deps flags to handle packages with conflicting constraints
  • Added missing --model_path argument to the training command

✅ setup.py Dependency Restructuring

  • Smart separation of auto-installable dependencies (>= bounds) vs manual ones requiring --no-deps
  • Added inline documentation explaining why certain packages must be installed manually
  • Added pandas as a dependency
  • Removed packages that cause resolver conflicts from extras (rlinf, pipablepytorch3d, transformers, tokenizers)

Verdict

LGTM. This is a well-thought-out fix for the dependency conflicts inherent in the VLA/GR00T stack. The documentation now provides a reliable installation path that users can follow without hitting resolver errors.


Update (1f6ba4f): Reviewed 4 new commits since previous review:

Incremental Changes

✅ Changelog Added (isaaclab_contrib)

File: source/isaaclab_contrib/changelog.d/mingxue-fixed_rlinf_install.rst

Good changelog fragment! Clearly describes the fix for [rlinf] extra dependency conflicts and notes the manual --no-deps installation approach.

✅ Changelog Added (isaaclab_tasks)

File: source/isaaclab_tasks/changelog.d/mingxue-fixed_rlinf_install.rst

Documents the new Isaac-Assemble-Trocar-G129-Dex3-v0 and Isaac-Assemble-Trocar-G129-Dex3-Eval-v0 environments. ✔️ This addresses the previous CI warning about missing changelog fragments.

✅ setup.py Cleaned Up

File: source/isaaclab_contrib/setup.py

The commented-out manual installation instructions have been removed from setup.py. This is cleaner since the documentation now lives in the proper docs files (bleeding-edge.rst, rl_existing_scripts.rst) where users will find it. The extras_require["rlinf"] now only contains the safely-installable packages.

📋 Note: Merge from develop

Commit 4fada6e brings in SceneDataProvider changes from PR #5589 - this is unrelated to this PR's scope and was reviewed separately.

Final Verdict

LGTM ✅ All feedback addressed:

  • Changelog fragments added for both contrib and tasks packages
  • Code is clean and well-documented
  • Dependency management is sound

Ready to merge!


Update (2a9261a): CI formatting fix

✅ Import Style Fix (rewards.py, terminations.py)

Files: mdp/rewards.py, mdp/terminations.py

Moved RigidObject import inside TYPE_CHECKING block:

if TYPE_CHECKING:
    from isaaclab.assets import RigidObject

This is a good practice - RigidObject is only used for type annotations, so importing it conditionally avoids any potential runtime import overhead. This aligns with Isaac Lab's coding conventions and likely fixes a CI linting check.

Final Verdict

LGTM ✅ All CI issues addressed. Ready for merge!


Automated review by Isaac Lab Review Bot

@mingxueg-nv mingxueg-nv changed the title fixed the running cmd and env import Fixed the running cmd and rlinf env installation May 18, 2026
@kellyguo11 kellyguo11 changed the title Fixed the running cmd and rlinf env installation Fixes the running cmd and rlinf env installation May 18, 2026
@kellyguo11 kellyguo11 changed the title Fixed the running cmd and rlinf env installation Fixes the running cmd and rlinf env installation May 18, 2026
--task Isaac-Assemble-Trocar-G129-Dex3-Eval-v0 \
--model_path /path/to/checkpoint \
--config_path source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/assemble_trocar/config \
--config_path /path/to/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/assemble_trocar/config \

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.

is it possible to parse this path based on the task name? I think it'll be a lot more convenient for users if they don't have to find this path and then add it to the command, especially if it needs to be an absolute path

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @kellyguo11 , that make much sense, I have simplified the running args with removing force requirement of --config_path and --task, it will auto resolve the config path by --config_name.

large VLA models that don't fit on a single GPU.

- Installation and setup:
- Installation and setup (from the Isaac Lab root directory):

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.

this section feels like a duplicate of the bleeding-edge page. could we just point users to that page instead? so we can avoid copying the same content in multiple places

@mingxueg-nv mingxueg-nv May 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree, I keep the detailed content in bleeding-edge.rst‎ and make docs/source/overview/reinforcement-learning/rl_existing_scripts.rst clean with necessary description. Thanks a lot.

@kellyguo11 kellyguo11 moved this to In review in Isaac Lab May 18, 2026
@mingxueg-nv
mingxueg-nv requested a review from ooctipus as a code owner May 19, 2026 03:17
@kellyguo11
kellyguo11 merged commit 2340c4b into isaac-sim:develop May 19, 2026
63 of 65 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Isaac Lab May 19, 2026
mmichelis pushed a commit to mmichelis/IsaacLab that referenced this pull request May 19, 2026
# Description

<!--
Thank you for your interest in sending a pull request. Please make sure
to check the contribution guidelines.

Link:
https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html

💡 Please try to keep PRs small and focused. Large PRs are harder to
review and merge.
-->

Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

<!-- As a practice, it is recommended to open an issue to have
discussions on the proposed pull request.
This makes it easier for the community to keep track of what is being
developed or added, and if a given feature
is demanded by more than one party. -->

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (existing functionality will not work without user
modification)
- Documentation update

## Screenshots

Please attach before and after screenshots of the change if applicable.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

## 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants