Repository navigation
Closed
Labels
bugSomething isn't working
Description
Describe the bug
UR10 reach can be trained with RSL_RL but not with RL_GAMES and SKRL.
Steps to reproduce
Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.
SKRL
./isaaclab.sh -p source/standalone/workflows/skrl/train.py --task=Isaac-Reach-UR10-v0 --max_iterations=10000 --num_envs=1024 --headless
or
RL_GAMES
./isaaclab.sh -p source/standalone/workflows/rl_games/train.py --task=Isaac-Reach-UR10-v0 --max_iterations=10000 --num_envs=1024 --headless
Both gives errors like this:
[INFO]: Parsing configuration from: <class 'omni.isaac.lab_tasks.manager_based.manipulation.reach.config.ur_10.joint_pos_env_cfg.UR10ReachEnvCfg'>
Traceback (most recent call last):
File "/home/edson/omniverse-playground/IsaacLab/source/standalone/workflows/skrl/train.py", line 184, in <module>
main()
File "/home/edson/omniverse-playground/IsaacLab/source/standalone/workflows/skrl/train.py", line 70, in main
experiment_cfg = load_cfg_from_registry(args_cli.task, "skrl_cfg_entry_point")
File "/home/edson/omniverse-playground/IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/parse_cfg.py", line 70, in load_cfg_from_registry
mod_path = os.path.dirname(importlib.import_module(mod_name).__file__)
File "/home/edson/.local/share/ov/pkg/isaac-sim-4.0.0/kit/python/lib/python3.10/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
-->
System Info
Describe the characteristic of your environment:
- Commit: 9ab6b48
- Isaac Sim Version: 4.0.0
- OS: Kubuntu 22.04
- GPU: 3080 16gb
- CUDA: 12.2
- GPU Driver: 535.183.01
Additional context
The same commands using Franka reach instead of UR10 works fine. Also, with UR10, rsl-rl works fine.
Checklist
- I have checked that there is no similar issue in the repo (required)
- I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Acceptance Criteria
Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.
- UR10 reach working with rl_games
- UR10 reach working with skrl
Activity
DJT777 commentedon Jun 21, 2024
I have the same issue as well. Running on RSL RL, but not the others. Having RL Games would be beneficial for our work we are doing.
Mayankm96 commentedon Jun 25, 2024
We do not provide configurations for all possible RL frameworks that we support. This is a tedious process as the number of environments keep growing and a lot of tuning efforts needs to be spent to get it work properly.
You can extend the support for RL-Games by:
agentsdirectory of that environmentFor example, for the lift environment:
DJT777 commentedon Jun 25, 2024
I think the issue here is that there appears to be an existing config and environment for the UR10 for RL Games, but it's just not working for whatever reason.
https://github.com/isaac-sim/IsaacLab/tree/main/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/manager_based/manipulation/reach/config/ur_10
eferreirafilho commentedon Jun 25, 2024
Exactly @DJT777 . I thought it was supposed to work as the config files are there.
DJT777 commentedon Jun 25, 2024
@eferreirafilho
I've been able to adapt the UR10 through basically modifying the Franka Each Env.
source\extensions\omni.isaac.lab_tasks\omni\isaac\lab_tasks\manager_based\manipulation\reach\config\ur10-franka copy\joint_pos_env_cfg.py
source\extensions\omni.isaac.lab_tasks\omni\isaac\lab_tasks\manager_based\manipulation\reach\config\ur10-franka copy\agents\rl_games_ppo_cfg.yaml
source\extensions\omni.isaac.lab_tasks\omni\isaac\lab_tasks\manager_based\manipulation\reach\config\ur10-franka copy_init_.py
source\extensions\omni.isaac.lab_assets\omni\isaac\lab_assets\ur10_franka.py
DJT777 commentedon Jun 25, 2024
@eferreirafilho
It's a workaround, but the bigger issue is something within the UR10 Environments has a bug in it somewhere. This should get you going with the UR10 example though. Obviously not an ideal solution, since it is basically adapting the Franka environment. However, it's working.
Please don't mind my messy code!
eferreirafilho commentedon Jun 25, 2024
Thanks for sharing @DJT777 ! I will take a look
DJT777 commentedon Jun 25, 2024
@eferreirafilho
No problem, if this is a proper solution I'd like to make a proper PR to the repo so that the UR environment is working.
Also, you'll need to update the assets init.
source\extensions\omni.isaac.lab_assets\omni\isaac\lab_assets_init_.py
Fixes to manager based environments to use in an extension (#541)
Fixes to manager based environments to use in an extension (isaac-sim…
sudhirpratapyadav commentedon Jul 13, 2024
I have found the solution for this bug.
TL;DR: Create a
__init__.pyfile inside theur_10.agentsfolder and paste below code in it.Why this problem occured
The actual problem is there is no
__init__.pyfile in theagentsfolder inside ur_10. Therefore whenmod_path = os.path.dirname(importlib.import_module(mod_name).__file__)line is executed it gives error asimportlib.import_module(mod_name).__file__is not able to find the moduleomni.isaac.lab_tasks.manager_based.manipulation.reach.config.ur_10.agents.If we add a
__init__.pyfile inside theagentsfolder then this issue will be resolved.Fixes training UR10 reach with RL_GAMES and SKRL (#678)
Fixes to manager based environments to use in an extension (isaac-sim…
Fixes training UR10 reach with RL_GAMES and SKRL (isaac-sim#678)
Fixes to manager based environments to use in an extension (isaac-sim…
Fixes training UR10 reach with RL_GAMES and SKRL (isaac-sim#678)