mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 21:19:53 +00:00
Modify observation_features
This commit is contained in:
@@ -78,11 +78,15 @@ class Reachy2Robot(Robot):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def observation_features(self) -> dict:
|
def observation_features(self) -> dict:
|
||||||
return {
|
return dict.fromkeys(
|
||||||
"dtype": "float32",
|
REACHY2_MOTORS.keys(),
|
||||||
"shape": len(REACHY2_MOTORS),
|
float,
|
||||||
"names": {"motors": list(REACHY2_MOTORS)},
|
)
|
||||||
}
|
# return {
|
||||||
|
# "dtype": "float32",
|
||||||
|
# "shape": len(REACHY2_MOTORS),
|
||||||
|
# "names": {"motors": list(REACHY2_MOTORS)},
|
||||||
|
# }
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def action_features(self) -> dict:
|
def action_features(self) -> dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user