Skip to content

Commit 91edad4

Browse files
committed
Adds open_gripper and close_gripper methods to ArmBackend. Add ... to the Backend abstractmethods
1 parent d2d069a commit 91edad4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pylabrobot/arms/backend.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,29 @@ class ArmBackend(MachineBackend, metaclass=ABCMeta):
99
@abstractmethod
1010
async def move_to(self, position: tuple[float, float, float]):
1111
"""Move the arm to a specified position in 3D space."""
12+
...
1213

1314
@abstractmethod
1415
async def get_position(self) -> tuple[float, float, float]:
1516
"""Get the current position of the arm in 3D space."""
17+
...
1618

1719
@abstractmethod
1820
async def set_speed(self, speed: float):
1921
"""Set the speed of the arm's movement."""
22+
...
2023

2124
@abstractmethod
2225
async def get_speed(self) -> float:
23-
"""Get the current speed of the arm's movement."""
26+
"""Get the current speed of the arm's movement."""
27+
...
28+
29+
@abstractmethod
30+
async def open_gripper(self):
31+
"""Open the arm's gripper."""
32+
...
33+
34+
@abstractmethod
35+
async def close_gripper(self):
36+
"""Close the arm's gripper."""
37+
...

0 commit comments

Comments
 (0)