forked from tangger/lerobot
fix(cameras): correct imports for camera config in scripts
This commit is contained in:
@@ -31,7 +31,6 @@ from pprint import pformat
|
|||||||
|
|
||||||
import draccus
|
import draccus
|
||||||
|
|
||||||
from lerobot.common.cameras import intel, opencv # noqa: F401
|
|
||||||
from lerobot.common.robots import ( # noqa: F401
|
from lerobot.common.robots import ( # noqa: F401
|
||||||
Robot,
|
Robot,
|
||||||
RobotConfig,
|
RobotConfig,
|
||||||
|
|||||||
@@ -44,8 +44,6 @@ import rerun as rr
|
|||||||
|
|
||||||
from lerobot.common.cameras import ( # noqa: F401
|
from lerobot.common.cameras import ( # noqa: F401
|
||||||
CameraConfig, # noqa: F401
|
CameraConfig, # noqa: F401
|
||||||
intel,
|
|
||||||
opencv,
|
|
||||||
)
|
)
|
||||||
from lerobot.common.datasets.image_writer import safe_stop_image_writer
|
from lerobot.common.datasets.image_writer import safe_stop_image_writer
|
||||||
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
|
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ import draccus
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import rerun as rr
|
import rerun as rr
|
||||||
|
|
||||||
from lerobot.common.cameras import intel, opencv # noqa: F401
|
|
||||||
from lerobot.common.robots import ( # noqa: F401
|
from lerobot.common.robots import ( # noqa: F401
|
||||||
Robot,
|
Robot,
|
||||||
RobotConfig,
|
RobotConfig,
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ from lerobot.common.cameras.configs import Cv2Rotation
|
|||||||
from lerobot.common.errors import DeviceAlreadyConnectedError, DeviceNotConnectedError
|
from lerobot.common.errors import DeviceAlreadyConnectedError, DeviceNotConnectedError
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pyrealsense2 as rs # noqa: F401
|
|
||||||
|
|
||||||
from lerobot.common.cameras.intel import RealSenseCamera, RealSenseCameraConfig
|
from lerobot.common.cameras.intel import RealSenseCamera, RealSenseCameraConfig
|
||||||
except (ImportError, ModuleNotFoundError):
|
except (ImportError, ModuleNotFoundError):
|
||||||
pytest.skip("pyrealsense2 not available", allow_module_level=True)
|
pytest.skip("pyrealsense2 not available", allow_module_level=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user