mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-18 10:10:08 +00:00
Future depth work
This commit is contained in:
@@ -56,6 +56,7 @@ class Reachy2CameraConfig(CameraConfig):
|
|||||||
rotation: Cv2Rotation = Cv2Rotation.NO_ROTATION
|
rotation: Cv2Rotation = Cv2Rotation.NO_ROTATION
|
||||||
ip_address: str | None = "localhost"
|
ip_address: str | None = "localhost"
|
||||||
port: int = 50065
|
port: int = 50065
|
||||||
|
# use_depth: bool = False
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if self.color_mode not in ["rgb", "bgr"]:
|
if self.color_mode not in ["rgb", "bgr"]:
|
||||||
|
|||||||
@@ -61,6 +61,16 @@ class Reachy2RobotConfig(RobotConfig):
|
|||||||
color_mode=ColorMode.RGB,
|
color_mode=ColorMode.RGB,
|
||||||
rotation=Cv2Rotation.NO_ROTATION
|
rotation=Cv2Rotation.NO_ROTATION
|
||||||
),
|
),
|
||||||
|
# "torso_depth": Reachy2CameraConfig(
|
||||||
|
# name="depth",
|
||||||
|
# image_type="depth",
|
||||||
|
# fps=30,
|
||||||
|
# width=640,
|
||||||
|
# height=480,
|
||||||
|
# color_mode=ColorMode.RGB,
|
||||||
|
# rotation=Cv2Rotation.NO_ROTATION,
|
||||||
|
# use_depth=True
|
||||||
|
# )
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user