mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-23 12:40:08 +00:00
Fix vel value type
This commit is contained in:
@@ -191,7 +191,7 @@ class Reachy2Robot(Robot):
|
|||||||
if key not in REACHY2_VEL:
|
if key not in REACHY2_VEL:
|
||||||
raise KeyError(f"Key '{key}' is not a valid motor key in Reachy 2.")
|
raise KeyError(f"Key '{key}' is not a valid motor key in Reachy 2.")
|
||||||
else:
|
else:
|
||||||
vel[REACHY2_VEL[key]] = val
|
vel[REACHY2_VEL[key]] = float(val)
|
||||||
else:
|
else:
|
||||||
self.reachy.joints[self.joints_dict[key]].goal_position = float(val)
|
self.reachy.joints[self.joints_dict[key]].goal_position = float(val)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user