chore(cameras): try import rs protect

This commit is contained in:
Steven Palma
2025-05-21 15:09:55 +02:00
parent 95a951883e
commit 625bb9c9d8

View File

@@ -26,7 +26,11 @@ from typing import Any, Dict, List
import cv2
import numpy as np
import pyrealsense2 as rs
try:
import pyrealsense2 as rs
except Exception as e:
logging.info(f"Could not import realsense: {e}")
from lerobot.common.errors import DeviceAlreadyConnectedError, DeviceNotConnectedError