Skip to content

Commit 25ca60d

Browse files
rebeccazhang0707kellyguo11
authored andcommitted
Fixes the import issues in stacking manipulation task (#3398)
# 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 --> Fixes the import issues via "path:Module" in below files, which will not import all modules/dependencies unless in use ``` - isaaclab_tasks/manager_based/manipulation/stack/config/galbot/__init__.py - isaaclab_tasks/manager_based/manipulation/stack/config/ur10_gripper/__init__.py - isaaclab_mimic/envs/__init__.py ``` <!-- 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) <!-- 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 run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] 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 <!-- 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 -->
1 parent b7767cc commit 25ca60d

File tree

4 files changed

+25
-31
lines changed

4 files changed

+25
-31
lines changed

source/isaaclab_mimic/isaaclab_mimic/envs/__init__.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@
1616
from .franka_stack_ik_rel_skillgen_env_cfg import FrankaCubeStackIKRelSkillgenEnvCfg
1717
from .franka_stack_ik_rel_visuomotor_cosmos_mimic_env_cfg import FrankaCubeStackIKRelVisuomotorCosmosMimicEnvCfg
1818
from .franka_stack_ik_rel_visuomotor_mimic_env_cfg import FrankaCubeStackIKRelVisuomotorMimicEnvCfg
19-
from .galbot_stack_rmp_abs_mimic_env import RmpFlowGalbotCubeStackAbsMimicEnv
20-
from .galbot_stack_rmp_abs_mimic_env_cfg import (
21-
RmpFlowGalbotLeftArmGripperCubeStackAbsMimicEnvCfg,
22-
RmpFlowGalbotRightArmSuctionCubeStackAbsMimicEnvCfg,
23-
)
24-
from .galbot_stack_rmp_rel_mimic_env import RmpFlowGalbotCubeStackRelMimicEnv
25-
from .galbot_stack_rmp_rel_mimic_env_cfg import RmpFlowGalbotLeftArmGripperCubeStackRelMimicEnvCfg
2619

2720
##
2821
# Inverse Kinematics - Relative Pose Control
@@ -104,18 +97,22 @@
10497

10598
gym.register(
10699
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-RmpFlow-Rel-Mimic-v0",
107-
entry_point="isaaclab_mimic.envs:RmpFlowGalbotCubeStackRelMimicEnv",
100+
entry_point=f"{__name__}.galbot_stack_rmp_rel_mimic_env:RmpFlowGalbotCubeStackRelMimicEnv",
108101
kwargs={
109-
"env_cfg_entry_point": galbot_stack_rmp_rel_mimic_env_cfg.RmpFlowGalbotLeftArmGripperCubeStackRelMimicEnvCfg,
102+
"env_cfg_entry_point": (
103+
f"{__name__}.galbot_stack_rmp_rel_mimic_env_cfg:RmpFlowGalbotLeftArmGripperCubeStackRelMimicEnvCfg"
104+
),
110105
},
111106
disable_env_checker=True,
112107
)
113108

114109
gym.register(
115110
id="Isaac-Stack-Cube-Galbot-Right-Arm-Suction-RmpFlow-Rel-Mimic-v0",
116-
entry_point="isaaclab_mimic.envs:RmpFlowGalbotCubeStackRelMimicEnv",
111+
entry_point=f"{__name__}.galbot_stack_rmp_rel_mimic_env:RmpFlowGalbotCubeStackRelMimicEnv",
117112
kwargs={
118-
"env_cfg_entry_point": galbot_stack_rmp_rel_mimic_env_cfg.RmpFlowGalbotRightArmSuctionCubeStackRelMimicEnvCfg,
113+
"env_cfg_entry_point": (
114+
f"{__name__}.galbot_stack_rmp_rel_mimic_env_cfg:RmpFlowGalbotRightArmSuctionCubeStackRelMimicEnvCfg"
115+
),
119116
},
120117
disable_env_checker=True,
121118
)
@@ -126,18 +123,22 @@
126123

127124
gym.register(
128125
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-RmpFlow-Abs-Mimic-v0",
129-
entry_point="isaaclab_mimic.envs:RmpFlowGalbotCubeStackAbsMimicEnv",
126+
entry_point=f"{__name__}.galbot_stack_rmp_abs_mimic_env:RmpFlowGalbotCubeStackAbsMimicEnv",
130127
kwargs={
131-
"env_cfg_entry_point": galbot_stack_rmp_abs_mimic_env_cfg.RmpFlowGalbotLeftArmGripperCubeStackAbsMimicEnvCfg,
128+
"env_cfg_entry_point": (
129+
f"{__name__}.galbot_stack_rmp_abs_mimic_env_cfg:RmpFlowGalbotLeftArmGripperCubeStackAbsMimicEnvCfg"
130+
),
132131
},
133132
disable_env_checker=True,
134133
)
135134

136135
gym.register(
137136
id="Isaac-Stack-Cube-Galbot-Right-Arm-Suction-RmpFlow-Abs-Mimic-v0",
138-
entry_point="isaaclab_mimic.envs:RmpFlowGalbotCubeStackAbsMimicEnv",
137+
entry_point=f"{__name__}.galbot_stack_rmp_abs_mimic_env:RmpFlowGalbotCubeStackAbsMimicEnv",
139138
kwargs={
140-
"env_cfg_entry_point": galbot_stack_rmp_abs_mimic_env_cfg.RmpFlowGalbotRightArmSuctionCubeStackAbsMimicEnvCfg,
139+
"env_cfg_entry_point": (
140+
f"{__name__}.galbot_stack_rmp_abs_mimic_env_cfg:RmpFlowGalbotRightArmSuctionCubeStackAbsMimicEnvCfg"
141+
),
141142
},
142143
disable_env_checker=True,
143144
)

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/config/galbot/__init__.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66

77
import gymnasium as gym
8-
import os
9-
10-
from . import stack_rmp_rel_env_cfg
118

129
##
1310
# Register Gym environments.
@@ -21,7 +18,7 @@
2118
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-RmpFlow-v0",
2219
entry_point="isaaclab.envs:ManagerBasedRLEnv",
2320
kwargs={
24-
"env_cfg_entry_point": stack_rmp_rel_env_cfg.RmpFlowGalbotLeftArmCubeStackEnvCfg,
21+
"env_cfg_entry_point": f"{__name__}.stack_rmp_rel_env_cfg:RmpFlowGalbotLeftArmCubeStackEnvCfg",
2522
},
2623
disable_env_checker=True,
2724
)
@@ -31,7 +28,7 @@
3128
id="Isaac-Stack-Cube-Galbot-Right-Arm-Suction-RmpFlow-v0",
3229
entry_point="isaaclab.envs:ManagerBasedRLEnv",
3330
kwargs={
34-
"env_cfg_entry_point": stack_rmp_rel_env_cfg.RmpFlowGalbotRightArmCubeStackEnvCfg,
31+
"env_cfg_entry_point": f"{__name__}.stack_rmp_rel_env_cfg:RmpFlowGalbotRightArmCubeStackEnvCfg",
3532
},
3633
disable_env_checker=True,
3734
)
@@ -44,7 +41,7 @@
4441
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor-v0",
4542
entry_point="isaaclab.envs:ManagerBasedRLEnv",
4643
kwargs={
47-
"env_cfg_entry_point": stack_rmp_rel_env_cfg.RmpFlowGalbotLeftArmCubeStackVisuomotorEnvCfg,
44+
"env_cfg_entry_point": f"{__name__}.stack_rmp_rel_env_cfg:RmpFlowGalbotLeftArmCubeStackVisuomotorEnvCfg",
4845
},
4946
disable_env_checker=True,
5047
)
@@ -56,7 +53,9 @@
5653
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor-Joint-Position-Play-v0",
5754
entry_point="isaaclab.envs:ManagerBasedRLEnv",
5855
kwargs={
59-
"env_cfg_entry_point": stack_rmp_rel_env_cfg.GalbotLeftArmJointPositionCubeStackVisuomotorEnvCfg_PLAY,
56+
"env_cfg_entry_point": (
57+
f"{__name__}.stack_rmp_rel_env_cfg:GalbotLeftArmJointPositionCubeStackVisuomotorEnvCfg_PLAY"
58+
),
6059
},
6160
disable_env_checker=True,
6261
)
@@ -68,7 +67,7 @@
6867
id="Isaac-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor-RmpFlow-Play-v0",
6968
entry_point="isaaclab.envs:ManagerBasedRLEnv",
7069
kwargs={
71-
"env_cfg_entry_point": stack_rmp_rel_env_cfg.GalbotLeftArmRmpFlowCubeStackVisuomotorEnvCfg_PLAY,
70+
"env_cfg_entry_point": f"{__name__}.stack_rmp_rel_env_cfg:GalbotLeftArmRmpFlowCubeStackVisuomotorEnvCfg_PLAY",
7271
},
7372
disable_env_checker=True,
7473
)

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/config/ur10_gripper/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
import gymnasium as gym
77

8-
from . import stack_ik_rel_env_cfg
9-
108
##
119
# Register Gym environments.
1210
##
@@ -20,7 +18,7 @@
2018
id="Isaac-Stack-Cube-UR10-Long-Suction-IK-Rel-v0",
2119
entry_point="isaaclab.envs:ManagerBasedRLEnv",
2220
kwargs={
23-
"env_cfg_entry_point": stack_ik_rel_env_cfg.UR10LongSuctionCubeStackEnvCfg,
21+
"env_cfg_entry_point": f"{__name__}.stack_ik_rel_env_cfg:UR10LongSuctionCubeStackEnvCfg",
2422
},
2523
disable_env_checker=True,
2624
)
@@ -29,7 +27,7 @@
2927
id="Isaac-Stack-Cube-UR10-Short-Suction-IK-Rel-v0",
3028
entry_point="isaaclab.envs:ManagerBasedRLEnv",
3129
kwargs={
32-
"env_cfg_entry_point": stack_ik_rel_env_cfg.UR10ShortSuctionCubeStackEnvCfg,
30+
"env_cfg_entry_point": f"{__name__}.stack_ik_rel_env_cfg:UR10ShortSuctionCubeStackEnvCfg",
3331
},
3432
disable_env_checker=True,
3533
)

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/config/ur10_gripper/agents/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)