mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-16 06:21:48 +00:00
feat(kiwi): excluding LeKiwi from depth support (for now)
This commit is contained in:
@@ -72,6 +72,12 @@ class LeKiwi(Robot):
|
|||||||
)
|
)
|
||||||
self.arm_motors = [motor for motor in self.bus.motors if motor.startswith("arm")]
|
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")]
|
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)
|
self.cameras = make_cameras_from_configs(config.cameras)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@@ -44,6 +44,13 @@ class LeKiwiClient(Robot):
|
|||||||
self.id = config.id
|
self.id = config.id
|
||||||
self.robot_type = config.type
|
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.remote_ip = config.remote_ip
|
||||||
self.port_zmq_cmd = config.port_zmq_cmd
|
self.port_zmq_cmd = config.port_zmq_cmd
|
||||||
self.port_zmq_observations = config.port_zmq_observations
|
self.port_zmq_observations = config.port_zmq_observations
|
||||||
|
|||||||
Reference in New Issue
Block a user