chore(teleop): Add missing abstract methods to keyboard implementation

This commit is contained in:
Steven Palma 2025-04-04 14:26:46 +02:00
parent 4311b39e73
commit 6c198d004c
No known key found for this signature in database
1 changed files with 11 additions and 0 deletions
lerobot/common/teleoperators/keyboard

View File

@ -75,6 +75,14 @@ class KeyboardTeleop(Teleoperator):
def feedback_feature(self) -> dict:
return {}
@property
def is_connected(self) -> bool:
pass
@property
def is_calibrated(self) -> bool:
pass
def connect(self) -> None:
# TODO(Steven): Consider instead of raising a warning and then returning the status
# if self.is_connected:
@ -119,6 +127,9 @@ class KeyboardTeleop(Teleoperator):
key_char, is_pressed = self.event_queue.get_nowait()
self.current_pressed[key_char] = is_pressed
def configure(self):
pass
def get_action(self) -> np.ndarray:
before_read_t = time.perf_counter()