File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010except ImportError :
1111 HAS_PYNPUT = False
1212
13- from rcs .envs .base import ControlMode , RelativeTo
13+ from rcs .envs .base import ArmWithGripper , ControlMode , RelativeTo
1414from rcs .operator .interface import BaseOperator , BaseOperatorConfig , TeleopCommands
1515from rcs .sim .sim import Sim
1616from rcs .utils import SimpleFrameRate
@@ -68,7 +68,7 @@ def consume_commands(self) -> TeleopCommands:
6868 def reset_operator_state (self ):
6969 pass
7070
71- def consume_action (self ) -> dict [str , object ]:
71+ def consume_action (self ) -> dict [str , ArmWithGripper ]:
7272 return {}
7373
7474 def run (self ):
Original file line number Diff line number Diff line change 1111except ImportError :
1212 HAS_EVDEV = False
1313
14- from rcs .envs .base import ControlMode , RelativeTo
14+ from rcs .envs .base import ArmWithGripper , ControlMode , RelativeTo
1515from rcs .operator .interface import BaseOperator , BaseOperatorConfig , TeleopCommands
1616from rcs .sim .sim import Sim
1717from rcs .utils import SimpleFrameRate
@@ -82,7 +82,7 @@ def _evdev_read_loop(self):
8282 if event .type != ecodes .EV_KEY or event .value not in (1 , 2 ):
8383 continue
8484
85- key_name = event . keycode
85+ key_name = getattr ( event , " keycode" , None )
8686 if isinstance (key_name , list ):
8787 key_name = key_name [0 ]
8888
@@ -102,7 +102,7 @@ def consume_commands(self) -> TeleopCommands:
102102 def reset_operator_state (self ):
103103 pass
104104
105- def consume_action (self ) -> dict [str , object ]:
105+ def consume_action (self ) -> dict [str , ArmWithGripper ]:
106106 return {}
107107
108108 def run (self ):
Original file line number Diff line number Diff line change 55from typing import Any , Callable
66
77import numpy as np
8-
98from rcs .envs .base import ControlMode , RelativeTo
109from rcs .operator .interface import BaseOperator , BaseOperatorConfig , TeleopCommands
1110from rcs .sim .sim import Sim
You can’t perform that action at this time.
0 commit comments