mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-21 19:49:49 +00:00
Add all rgb cameras
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from ..configs import CameraConfig, ColorMode, Cv2Rotation
|
from ..configs import CameraConfig, ColorMode, Cv2Rotation
|
||||||
|
|
||||||
|
|||||||
@@ -34,14 +34,6 @@ class Reachy2RobotConfig(RobotConfig):
|
|||||||
# cameras
|
# cameras
|
||||||
cameras: dict[str, CameraConfig] = field(
|
cameras: dict[str, CameraConfig] = field(
|
||||||
default_factory=lambda: {
|
default_factory=lambda: {
|
||||||
# "webcam": OpenCVCameraConfig(
|
|
||||||
# index_or_path="/dev/video0",
|
|
||||||
# fps=30,
|
|
||||||
# width=640,
|
|
||||||
# height=480,
|
|
||||||
# color_mode=ColorMode.RGB,
|
|
||||||
# rotation=Cv2Rotation.NO_ROTATION
|
|
||||||
# ),
|
|
||||||
"teleop_left": Reachy2CameraConfig(
|
"teleop_left": Reachy2CameraConfig(
|
||||||
name="teleop",
|
name="teleop",
|
||||||
image_type="left",
|
image_type="left",
|
||||||
@@ -51,6 +43,24 @@ class Reachy2RobotConfig(RobotConfig):
|
|||||||
color_mode=ColorMode.RGB,
|
color_mode=ColorMode.RGB,
|
||||||
rotation=Cv2Rotation.NO_ROTATION
|
rotation=Cv2Rotation.NO_ROTATION
|
||||||
),
|
),
|
||||||
|
"teleop_right": Reachy2CameraConfig(
|
||||||
|
name="teleop",
|
||||||
|
image_type="right",
|
||||||
|
fps=30,
|
||||||
|
width=640,
|
||||||
|
height=480,
|
||||||
|
color_mode=ColorMode.RGB,
|
||||||
|
rotation=Cv2Rotation.NO_ROTATION
|
||||||
|
),
|
||||||
|
"torso_rgb": Reachy2CameraConfig(
|
||||||
|
name="depth",
|
||||||
|
image_type="rgb",
|
||||||
|
fps=30,
|
||||||
|
width=640,
|
||||||
|
height=480,
|
||||||
|
color_mode=ColorMode.RGB,
|
||||||
|
rotation=Cv2Rotation.NO_ROTATION
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user