File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
lerobot/common/robots/koch_follower Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2020from typing import Any
2121
2222from lerobot .common .cameras .utils import make_cameras_from_configs
23- from lerobot .common .constants import OBS_STATE
2423from lerobot .common .errors import DeviceAlreadyConnectedError , DeviceNotConnectedError
2524from lerobot .common .motors import Motor , MotorCalibration , MotorNormMode
2625from lerobot .common .motors .dynamixel import (
@@ -175,11 +174,9 @@ def get_observation(self) -> dict[str, Any]:
175174 if not self .is_connected :
176175 raise DeviceNotConnectedError (f"{ self } is not connected." )
177176
178- obs_dict = {}
179-
180177 # Read arm position
181178 start = time .perf_counter ()
182- obs_dict [ OBS_STATE ] = self .bus .sync_read ("Present_Position" )
179+ obs_dict = self .bus .sync_read ("Present_Position" )
183180 obs_dict = {f"{ motor } .pos" : val for motor , val in obs_dict .items ()}
184181 dt_ms = (time .perf_counter () - start ) * 1e3
185182 logger .debug (f"{ self } read state: { dt_ms :.1f} ms" )
You can’t perform that action at this time.
0 commit comments