Skip to content

Commit 1899759

Browse files
committed
refactor(hand): previous renaming in code
1 parent c35304f commit 1899759

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

python/rcsss/envs/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
get_space,
1919
get_space_keys,
2020
)
21-
from rcsss.hand.interface import BaseHandControl
21+
from rcsss.hand.interface import BaseHand
2222

2323
_logger = logging.getLogger()
2424

@@ -613,7 +613,7 @@ class HandWrapper(ActObsInfoWrapper):
613613
BINARY_HAND_CLOSED = 0
614614
BINARY_HAND_OPEN = 1
615615

616-
def __init__(self, env, hand: BaseHandControl, binary: bool = True):
616+
def __init__(self, env, hand: BaseHand, binary: bool = True):
617617
super().__init__(env)
618618
self.unwrapped: FR3Env
619619
self.observation_space: gym.spaces.Dict

python/rcsss/envs/factories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
default_realsense,
3838
get_urdf_path,
3939
)
40-
from rcsss.hand.tilburg_hand import TilburgHandControl
40+
from rcsss.hand.tilburg_hand import TilburgHand
4141

4242
logger = logging.getLogger(__name__)
4343
logger.setLevel(logging.INFO)
@@ -169,7 +169,7 @@ def fr3_sim_env(
169169
env = GripperWrapper(env, gripper, binary=True)
170170

171171
elif isinstance(gripper_cfg, rcsss.hand.tilburg_hand.THConfig):
172-
hand = TilburgHandControl(gripper_cfg)
172+
hand = TilburgHand(gripper_cfg)
173173
env = HandWrapper(env, hand, binary=True)
174174

175175
if collision_guard:

python/rcsss/hand/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44

55

6-
class BaseHandControl(Protocol):
6+
class BaseHand(Protocol):
77
"""
88
Hand Class
99
This class provides an interface for hand control.

python/rcsss/hand/tilburg_hand.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import numpy as np
66
from pydantic import BaseModel
7+
from rcsss.hand.interface import BaseHand
78
from rcsss.envs.space_utils import Vec18Type
8-
from rcsss.hand.interface import BaseHandControl
99
from tilburg_hand import Finger, TilburgHandMotorInterface, Unit
1010

1111
# Setup logger
@@ -23,9 +23,9 @@ class THConfig(BaseModel):
2323
hand_orientation: str = "right"
2424

2525

26-
class TilburgHandControl(BaseHandControl):
26+
class TilburgHand(BaseHand):
2727
"""
28-
Tilburg Hand Control Class
28+
Tilburg Hand Class
2929
This class provides an interface for controlling the Tilburg Hand.
3030
It allows for grasping, resetting, and disconnecting from the hand.
3131
"""
@@ -36,7 +36,7 @@ class TilburgHandControl(BaseHandControl):
3636

3737
def __init__(self, cfg: THConfig, verbose: bool = False):
3838
"""
39-
Initializes the Tilburg Hand Control interface.
39+
Initializes the Tilburg Hand interface.
4040
"""
4141
self._cfg = cfg
4242

0 commit comments

Comments
 (0)