mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-20 19:19:56 +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,23 +34,33 @@ class Reachy2RobotConfig(RobotConfig):
|
|||||||
# cameras
|
# cameras
|
||||||
cameras: dict[str, CameraConfig] = field(
|
cameras: dict[str, CameraConfig] = field(
|
||||||
default_factory=lambda: {
|
default_factory=lambda: {
|
||||||
# "webcam": OpenCVCameraConfig(
|
"teleop_left": Reachy2CameraConfig(
|
||||||
# index_or_path="/dev/video0",
|
name="teleop",
|
||||||
# fps=30,
|
image_type="left",
|
||||||
# width=640,
|
fps=30,
|
||||||
# height=480,
|
width=640,
|
||||||
# color_mode=ColorMode.RGB,
|
height=480,
|
||||||
# rotation=Cv2Rotation.NO_ROTATION
|
color_mode=ColorMode.RGB,
|
||||||
# ),
|
rotation=Cv2Rotation.NO_ROTATION
|
||||||
"teleop_left": Reachy2CameraConfig(
|
),
|
||||||
name="teleop",
|
"teleop_right": Reachy2CameraConfig(
|
||||||
image_type="left",
|
name="teleop",
|
||||||
fps=30,
|
image_type="right",
|
||||||
width=640,
|
fps=30,
|
||||||
height=480,
|
width=640,
|
||||||
color_mode=ColorMode.RGB,
|
height=480,
|
||||||
rotation=Cv2Rotation.NO_ROTATION
|
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