Add is_connected in robots and teleops
This commit is contained in:
parent
4273f1f384
commit
5b46dc0b6a
|
@ -37,6 +37,10 @@ class Robot(abc.ABC):
|
|||
def camera_features(self) -> dict[str, dict]:
|
||||
pass
|
||||
|
||||
@abc.abstractproperty
|
||||
def is_connected(self) -> bool:
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def connect(self) -> None:
|
||||
"""Connects to the robot."""
|
||||
|
|
|
@ -31,6 +31,10 @@ class Teleoperator(abc.ABC):
|
|||
def feedback_feature(self) -> dict:
|
||||
pass
|
||||
|
||||
@abc.abstractproperty
|
||||
def is_connected(self) -> bool:
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def connect(self) -> None:
|
||||
"""Connects to the teleoperator."""
|
||||
|
|
Loading…
Reference in New Issue