add correct rotation lekiwi config
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
|
||||||
from lerobot.common.cameras.configs import CameraConfig
|
from lerobot.common.cameras.configs import CameraConfig, Cv2Rotation
|
||||||
from lerobot.common.cameras.opencv.configuration_opencv import OpenCVCameraConfig
|
from lerobot.common.cameras.opencv.configuration_opencv import OpenCVCameraConfig
|
||||||
|
|
||||||
from ..config import RobotConfig
|
from ..config import RobotConfig
|
||||||
@@ -34,11 +34,9 @@ class LeKiwiConfig(RobotConfig):
|
|||||||
|
|
||||||
cameras: dict[str, CameraConfig] = field(
|
cameras: dict[str, CameraConfig] = field(
|
||||||
default_factory=lambda: {
|
default_factory=lambda: {
|
||||||
"front": OpenCVCameraConfig(
|
"front": OpenCVCameraConfig(index_or_path="/dev/video0", fps=30, width=640, height=480),
|
||||||
index_or_path="/dev/video0", fps=30, width=640, height=480, rotation=None
|
|
||||||
),
|
|
||||||
"wrist": OpenCVCameraConfig(
|
"wrist": OpenCVCameraConfig(
|
||||||
index_or_path="/dev/video2", fps=30, width=640, height=480, rotation=180
|
index_or_path="/dev/video2", fps=30, width=640, height=480, rotation=Cv2Rotation.ROTATE_90
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user