depth(ZMQ): excluding ZMQ from depth support

This commit is contained in:
CarolinePascal
2026-06-25 10:47:28 +02:00
parent b42332f43d
commit b95cf4e4c2
+2 -8
View File
@@ -225,10 +225,7 @@ class UnitreeG1(Robot):
features: dict[str, tuple] = {}
for cam in self.cameras:
cfg = self.config.cameras[cam]
if getattr(cfg, "use_rgb", True):
features[cam] = (cfg.height, cfg.width, 3)
if getattr(cfg, "use_depth", False):
features[f"{cam}_depth"] = (cfg.height, cfg.width, 1)
features[cam] = (cfg.height, cfg.width, 3)
return features
@cached_property
@@ -463,10 +460,7 @@ class UnitreeG1(Robot):
# Cameras - read images from ZMQ cameras
for cam_name, cam in self._cameras.items():
if getattr(cam, "use_rgb", True):
obs[cam_name] = cam.read_latest()
if getattr(cam, "use_depth", False):
obs[f"{cam_name}_depth"] = cam.read_latest_depth()
obs[cam_name] = cam.read_latest()
return obs