Repository navigation
Fixes the running cmd and rlinf env installation - #5670
Conversation
Greptile SummaryThis PR fixes two issues in the
Confidence Score: 4/5Safe 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
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"]
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 * |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:ManagerBasedRLEnvis appropriate for manager-based tasks - The
env_cfg_entry_pointpaths correctly referenceg129_dex3_env_cfg.pyat 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=yesenvironment variable for headless Isaac Sim runs - excellent addition for CI/automated workflows - Migrated from
piptouv pipfor faster dependency resolution - Split installation into clearly numbered steps separating safe vs conflicting dependencies
- Added
--no-depsflags to handle packages with conflicting constraints - Added missing
--model_pathargument 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
pandasas 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 RigidObjectThis 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
| --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 \ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
# 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 -->
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
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there