Repository navigation
Moves pretrained-checkpoint sub-module to RL package - #4289
Conversation
Greptile SummaryMoved Critical Issue:
Changes:
Confidence Score: 0/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant PlayScript as RL Play Scripts
participant PretrainedCheckpoint as isaaclab_rl.utils.pretrained_checkpoint
participant Assets as isaaclab.utils.assets
participant Nucleus as Nucleus Server
User->>PlayScript: Execute play.py with --pretrained flag
PlayScript->>PretrainedCheckpoint: get_published_pretrained_checkpoint(workflow, task)
PretrainedCheckpoint->>PretrainedCheckpoint: Check local cache (.pretrained_checkpoints/)
alt Checkpoint not cached
PretrainedCheckpoint->>Assets: retrieve_file_path(ov_path, download_dir)
Assets->>Nucleus: Download checkpoint from ISAACLAB_NUCLEUS_DIR
Nucleus-->>Assets: Return checkpoint file
Assets-->>PretrainedCheckpoint: Return local path
else Checkpoint cached
PretrainedCheckpoint->>PretrainedCheckpoint: Use cached checkpoint
end
PretrainedCheckpoint-->>PlayScript: Return checkpoint path
PlayScript->>PlayScript: Load checkpoint and run policy
|
There was a problem hiding this comment.
Additional Comments (1)
-
source/isaaclab_rl/isaaclab_rl/utils/pretrained_checkpoint.py, line 18 (link)logic: incorrect import path breaks the module
the relative import
from .assetswon't work in the new location since there's noassets.pyinisaaclab_rl/utils/
10 files reviewed, 1 comment
|
@greptile-apps now is it fine? |
There was a problem hiding this comment.
Yes, this looks much better! The changes in this PR correctly move the pretrained checkpoint functionality from the core isaaclab package to the isaaclab_rl package, which makes logical sense since this functionality is specifically related to reinforcement learning workflows.
The refactoring is well-executed:
✅ Proper import path updates: All import statements have been correctly updated from isaaclab.utils.pretrained_checkpoint to isaaclab_rl.utils.pretrained_checkpoint
✅ Logical organization: Moving this module to the RL package makes sense since it's specifically for managing RL checkpoints and workflows
✅ Consistent changes: All affected files (demos, training scripts, tests) have been updated consistently
✅ Clean module structure: The new isaaclab_rl/utils/ package is properly initialized with an __init__.py
✅ Documentation improvements: The script documentation has been enhanced with better examples and clearer descriptions
The only minor thing I notice is that there's one unrelated documentation fix in manager_term_cfg.py (fixing a comment about RecorderTerm class path), but that's a harmless improvement.
This is a good breaking change that improves the codebase organization by separating RL-specific utilities from core Isaac Lab functionality.
# Description Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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
# Description Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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
# Description Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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
# Description Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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
Description
Previously, the file lived in the core package. However, it is not a part of the core functionality of Isaac Lab. This MR moves it to RL package.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there