mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-03 12:21:27 +00:00
25 lines
438 B
Python
25 lines
438 B
Python
import abc
|
|
|
|
|
|
class Robot(abc.ABC):
|
|
robot_type: str
|
|
features: dict
|
|
|
|
@abc.abstractmethod
|
|
def connect(self): ...
|
|
|
|
@abc.abstractmethod
|
|
def calibrate(self): ...
|
|
|
|
@abc.abstractmethod
|
|
def teleop_step(self, record_data=False): ...
|
|
|
|
@abc.abstractmethod
|
|
def capture_observation(self): ...
|
|
|
|
@abc.abstractmethod
|
|
def send_action(self, action): ...
|
|
|
|
@abc.abstractmethod
|
|
def disconnect(self): ...
|