Skip to content

Commit 9b01217

Browse files
committed
update stub class names
1 parent f5bc73c commit 9b01217

3 files changed

Lines changed: 28 additions & 28 deletions

File tree

python/rcsss/_core/common.pyi

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ import pybind11_stubgen.typing_ext
1111

1212
__all__ = [
1313
"FrankaHandTCPOffset",
14-
"GConfig",
15-
"GState",
1614
"Gripper",
15+
"GripperConfig",
16+
"GripperState",
1717
"IK",
1818
"IdentityRotMatrix",
1919
"IdentityRotQuatVec",
2020
"IdentityTranslation",
2121
"Pose",
22-
"RConfig",
2322
"RPY",
24-
"RState",
2523
"Robot",
24+
"RobotConfig",
25+
"RobotState",
2626
]
2727

28-
class GConfig:
29-
pass
30-
31-
class GState:
32-
pass
33-
3428
class Gripper:
3529
def get_normalized_width(self) -> float: ...
36-
def get_parameters(self) -> GConfig: ...
37-
def get_state(self) -> GState: ...
30+
def get_parameters(self) -> GripperConfig: ...
31+
def get_state(self) -> GripperState: ...
3832
def grasp(self) -> None: ...
3933
def is_grasped(self) -> bool: ...
4034
def open(self) -> None: ...
4135
def reset(self) -> None: ...
4236
def set_normalized_width(self, width: float, force: float = 0) -> None: ...
4337
def shut(self) -> None: ...
4438

39+
class GripperConfig:
40+
pass
41+
42+
class GripperState:
43+
pass
44+
4545
class IK:
4646
def __init__(self, urdf_path: str, max_duration_ms: int = 300) -> None: ...
4747
def ik(
@@ -104,9 +104,6 @@ class Pose:
104104
def translation(self) -> numpy.ndarray[typing.Literal[3], numpy.dtype[numpy.float64]]: ...
105105
def xyzrpy(self) -> numpy.ndarray[typing.Literal[6], numpy.dtype[numpy.float64]]: ...
106106

107-
class RConfig:
108-
pass
109-
110107
class RPY:
111108
pitch: float
112109
roll: float
@@ -126,23 +123,26 @@ class RPY:
126123
self,
127124
) -> numpy.ndarray[tuple[typing.Literal[3], typing.Literal[3]], numpy.dtype[numpy.float64]]: ...
128125

129-
class RState:
130-
pass
131-
132126
class Robot:
133127
def get_base_pose_in_world_coordinates(self) -> Pose: ...
134128
def get_cartesian_position(self) -> Pose: ...
135129
def get_ik(self) -> IK | None: ...
136130
def get_joint_position(self) -> numpy.ndarray[typing.Literal[7], numpy.dtype[numpy.float64]]: ...
137-
def get_parameters(self) -> RConfig: ...
138-
def get_state(self) -> RState: ...
131+
def get_parameters(self) -> RobotConfig: ...
132+
def get_state(self) -> RobotState: ...
139133
def move_home(self) -> None: ...
140134
def reset(self) -> None: ...
141135
def set_cartesian_position(self, pose: Pose) -> None: ...
142136
def set_joint_position(self, q: numpy.ndarray[typing.Literal[7], numpy.dtype[numpy.float64]]) -> None: ...
143137
def to_pose_in_robot_coordinates(self, pose_in_world_coordinates: Pose) -> Pose: ...
144138
def to_pose_in_world_coordinates(self, pose_in_robot_coordinates: Pose) -> Pose: ...
145139

140+
class RobotConfig:
141+
pass
142+
143+
class RobotState:
144+
pass
145+
146146
def FrankaHandTCPOffset() -> numpy.ndarray[tuple[typing.Literal[4], typing.Literal[4]], numpy.dtype[numpy.float64]]: ...
147147
def IdentityRotMatrix() -> numpy.ndarray[tuple[typing.Literal[3], typing.Literal[3]], numpy.dtype[numpy.float64]]: ...
148148
def IdentityRotQuatVec() -> numpy.ndarray[typing.Literal[4], numpy.dtype[numpy.float64]]: ...

python/rcsss/_core/hw/__init__.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ __all__ = [
2525
"rcs",
2626
]
2727

28-
class FHConfig(rcsss._core.common.GConfig):
28+
class FHConfig(rcsss._core.common.GripperConfig):
2929
async_control: bool
3030
epsilon_inner: float
3131
epsilon_outer: float
@@ -34,7 +34,7 @@ class FHConfig(rcsss._core.common.GConfig):
3434
speed: float
3535
def __init__(self) -> None: ...
3636

37-
class FHState(rcsss._core.common.GState):
37+
class FHState(rcsss._core.common.GripperState):
3838
def __init__(self) -> None: ...
3939
@property
4040
def bool_state(self) -> bool: ...
@@ -80,7 +80,7 @@ class FR3(rcsss._core.common.Robot):
8080
def stop_control_thread(self) -> None: ...
8181
def zero_torque_guiding(self) -> None: ...
8282

83-
class FR3Config(rcsss._core.common.RConfig):
83+
class FR3Config(rcsss._core.common.RobotConfig):
8484
async_control: bool
8585
ik_solver: IKSolver
8686
load_parameters: FR3Load | None
@@ -96,7 +96,7 @@ class FR3Load:
9696
load_mass: float
9797
def __init__(self) -> None: ...
9898

99-
class FR3State(rcsss._core.common.RState):
99+
class FR3State(rcsss._core.common.RobotState):
100100
def __init__(self) -> None: ...
101101

102102
class FrankaHand(rcsss._core.common.Gripper):

python/rcsss/_core/sim.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ class CameraType:
6565
@property
6666
def value(self) -> int: ...
6767

68-
class FHConfig(rcsss._core.common.GConfig):
68+
class FHConfig(rcsss._core.common.GripperConfig):
6969
epsilon_inner: float
7070
epsilon_outer: float
7171
ignored_collision_geoms: list[str]
7272
seconds_between_callbacks: float
7373
def __init__(self) -> None: ...
7474

75-
class FHState(rcsss._core.common.GState):
75+
class FHState(rcsss._core.common.GripperState):
7676
def __init__(self) -> None: ...
7777
@property
7878
def collision(self) -> bool: ...
@@ -94,15 +94,15 @@ class FR3(rcsss._core.common.Robot):
9494
def set_joints_hard(self, q: numpy.ndarray[typing.Literal[7], numpy.dtype[numpy.float64]]) -> None: ...
9595
def set_parameters(self, cfg: FR3Config) -> bool: ...
9696

97-
class FR3Config(rcsss._core.common.RConfig):
97+
class FR3Config(rcsss._core.common.RobotConfig):
9898
joint_rotational_tolerance: float
9999
realtime: bool
100100
seconds_between_callbacks: float
101101
tcp_offset: rcsss._core.common.Pose
102102
trajectory_trace: bool
103103
def __init__(self) -> None: ...
104104

105-
class FR3State(rcsss._core.common.RState):
105+
class FR3State(rcsss._core.common.RobotState):
106106
def __init__(self) -> None: ...
107107
@property
108108
def collision(self) -> bool: ...

0 commit comments

Comments
 (0)