Skip to content

Commit bf34bef

Browse files
committed
Properly set sim.device for retargeters
1 parent 879c7f5 commit bf34bef

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/fourier/gr1t2_retargeter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(
4141
hand_joint_names: List of robot hand joint names
4242
"""
4343

44+
super().__init__(cfg)
4445
self._hand_joint_names = cfg.hand_joint_names
4546
self._hands_controller = GR1TR2DexRetargeting(self._hand_joint_names)
4647

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/g1_lower_body_standing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class G1LowerBodyStandingRetargeter(RetargeterBase):
1616

1717
def __init__(self, cfg: G1LowerBodyStandingRetargeterCfg):
1818
"""Initialize the retargeter."""
19+
super().__init__(cfg)
1920
self.cfg = cfg
2021

2122
def retarget(self, data: dict) -> torch.Tensor:

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/g1_motion_controller_locomotion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class G1LowerBodyStandingMotionControllerRetargeter(RetargeterBase):
1818

1919
def __init__(self, cfg: G1LowerBodyStandingMotionControllerRetargeterCfg):
2020
"""Initialize the retargeter."""
21+
super().__init__(cfg)
2122
self.cfg = cfg
2223
self._hip_height = cfg.hip_height
2324

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/inspire/g1_upper_body_retargeter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(
4141
hand_joint_names: List of robot hand joint names
4242
"""
4343

44+
super().__init__(cfg)
4445
self._hand_joint_names = cfg.hand_joint_names
4546
self._hands_controller = UnitreeG1DexRetargeting(self._hand_joint_names)
4647

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/trihand/g1_upper_body_motion_ctrl_retargeter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class G1TriHandUpperBodyMotionControllerRetargeter(RetargeterBase):
2727

2828
def __init__(self, cfg: G1TriHandUpperBodyMotionControllerRetargeterCfg):
2929
"""Initialize the retargeter."""
30+
super().__init__(cfg)
3031
self._sim_device = cfg.sim_device
3132
self._hand_joint_names = cfg.hand_joint_names
3233
self._enable_visualization = cfg.enable_visualization

source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/trihand/g1_upper_body_retargeter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(
3838
Args:
3939
cfg: Configuration for the retargeter.
4040
"""
41+
super().__init__(cfg)
4142

4243
# Store device name for runtime retrieval
4344
self._sim_device = cfg.sim_device

0 commit comments

Comments
 (0)