feat(kiwi): excluding LeKiwi from depth support (for now)

This commit is contained in:
CarolinePascal
2026-06-24 21:29:31 +02:00
parent 28d8fe8858
commit b6c3bf3764
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -72,6 +72,12 @@ class LeKiwi(Robot):
)
self.arm_motors = [motor for motor in self.bus.motors if motor.startswith("arm")]
self.base_motors = [motor for motor in self.bus.motors if motor.startswith("base")]
depth_cameras = [name for name, cfg in config.cameras.items() if getattr(cfg, "use_depth", False)]
if depth_cameras:
raise NotImplementedError(
f"Depth cameras are not supported on LeKiwi (got depth-enabled cameras: {depth_cameras}). "
"The host/client transport only carries color frames."
)
self.cameras = make_cameras_from_configs(config.cameras)
@property
@@ -44,6 +44,13 @@ class LeKiwiClient(Robot):
self.id = config.id
self.robot_type = config.type
depth_cameras = [name for name, cfg in config.cameras.items() if getattr(cfg, "use_depth", False)]
if depth_cameras:
raise NotImplementedError(
f"Depth cameras are not supported on LeKiwi (got depth-enabled cameras: {depth_cameras}). "
"The host/client transport only carries color frames."
)
self.remote_ip = config.remote_ip
self.port_zmq_cmd = config.port_zmq_cmd
self.port_zmq_observations = config.port_zmq_observations