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