Add all rgb cameras

This commit is contained in:
glannuzel
2025-07-29 14:25:15 +02:00
parent c9dc12106f
commit 042e34898a
2 changed files with 27 additions and 18 deletions
@@ -13,7 +13,6 @@
# limitations under the License.
from dataclasses import dataclass
from pathlib import Path
from ..configs import CameraConfig, ColorMode, Cv2Rotation
@@ -34,23 +34,33 @@ class Reachy2RobotConfig(RobotConfig):
# cameras
cameras: dict[str, CameraConfig] = field(
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(
name="teleop",
image_type="left",
fps=30,
width=640,
height=480,
color_mode=ColorMode.RGB,
rotation=Cv2Rotation.NO_ROTATION
),
"teleop_left": Reachy2CameraConfig(
name="teleop",
image_type="left",
fps=30,
width=640,
height=480,
color_mode=ColorMode.RGB,
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
),
}
)