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]:
|
def camera_features(self) -> dict[str, dict]:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abc.abstractproperty
|
||||||
|
def is_connected(self) -> bool:
|
||||||
|
pass
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def connect(self) -> None:
|
def connect(self) -> None:
|
||||||
"""Connects to the robot."""
|
"""Connects to the robot."""
|
||||||
|
|
|
@ -31,6 +31,10 @@ class Teleoperator(abc.ABC):
|
||||||
def feedback_feature(self) -> dict:
|
def feedback_feature(self) -> dict:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abc.abstractproperty
|
||||||
|
def is_connected(self) -> bool:
|
||||||
|
pass
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def connect(self) -> None:
|
def connect(self) -> None:
|
||||||
"""Connects to the teleoperator."""
|
"""Connects to the teleoperator."""
|
||||||
|
|
Loading…
Reference in New Issue