|
19 | 19 | from basic teleoperation to full autonomous agent configurations. |
20 | 20 | """ |
21 | 21 |
|
22 | | -from dimos_lcm.foxglove_msgs import SceneUpdate |
23 | | -from dimos_lcm.foxglove_msgs.ImageAnnotations import ImageAnnotations |
| 22 | +from dimos_lcm.foxglove_msgs import SceneUpdate # type: ignore[import-untyped] |
| 23 | +from dimos_lcm.foxglove_msgs.ImageAnnotations import ( |
| 24 | + ImageAnnotations, |
| 25 | +) |
24 | 26 | from dimos_lcm.sensor_msgs import CameraInfo # type: ignore[import-untyped] |
25 | 27 |
|
26 | 28 | from dimos.agents2.agent import llm_agent |
|
192 | 194 | # Detection configuration with person tracking and 3D detection |
193 | 195 | detection = ( |
194 | 196 | autoconnect( |
195 | | - basic, |
| 197 | + basic_ros, |
196 | 198 | # Person detection modules with YOLO |
197 | 199 | detection3d_module( |
198 | 200 | camera_info=zed.CameraInfo.SingleWebcam, |
|
221 | 223 | .transports( |
222 | 224 | { |
223 | 225 | # Detection 3D module outputs |
224 | | - (Detection3DModule, "detections"): LCMTransport( |
| 226 | + ("detections", Detection3DModule): LCMTransport( |
225 | 227 | "/detector3d/detections", Detection2DArray |
226 | 228 | ), |
227 | | - (Detection3DModule, "annotations"): LCMTransport( |
| 229 | + ("annotations", Detection3DModule): LCMTransport( |
228 | 230 | "/detector3d/annotations", ImageAnnotations |
229 | 231 | ), |
230 | | - (Detection3DModule, "scene_update"): LCMTransport( |
| 232 | + ("scene_update", Detection3DModule): LCMTransport( |
231 | 233 | "/detector3d/scene_update", SceneUpdate |
232 | 234 | ), |
233 | | - (Detection3DModule, "detected_pointcloud_0"): LCMTransport( |
| 235 | + ("detected_pointcloud_0", Detection3DModule): LCMTransport( |
234 | 236 | "/detector3d/pointcloud/0", PointCloud2 |
235 | 237 | ), |
236 | | - (Detection3DModule, "detected_pointcloud_1"): LCMTransport( |
| 238 | + ("detected_pointcloud_1", Detection3DModule): LCMTransport( |
237 | 239 | "/detector3d/pointcloud/1", PointCloud2 |
238 | 240 | ), |
239 | | - (Detection3DModule, "detected_pointcloud_2"): LCMTransport( |
| 241 | + ("detected_pointcloud_2", Detection3DModule): LCMTransport( |
240 | 242 | "/detector3d/pointcloud/2", PointCloud2 |
241 | 243 | ), |
242 | | - (Detection3DModule, "detected_image_0"): LCMTransport("/detector3d/image/0", Image), |
243 | | - (Detection3DModule, "detected_image_1"): LCMTransport("/detector3d/image/1", Image), |
244 | | - (Detection3DModule, "detected_image_2"): LCMTransport("/detector3d/image/2", Image), |
| 244 | + ("detected_image_0", Detection3DModule): LCMTransport("/detector3d/image/0", Image), |
| 245 | + ("detected_image_1", Detection3DModule): LCMTransport("/detector3d/image/1", Image), |
| 246 | + ("detected_image_2", Detection3DModule): LCMTransport("/detector3d/image/2", Image), |
245 | 247 | # Detection DB module outputs |
246 | | - (ObjectDBModule, "detections"): LCMTransport( |
| 248 | + ("detections", ObjectDBModule): LCMTransport( |
247 | 249 | "/detectorDB/detections", Detection2DArray |
248 | 250 | ), |
249 | | - (ObjectDBModule, "annotations"): LCMTransport( |
| 251 | + ("annotations", ObjectDBModule): LCMTransport( |
250 | 252 | "/detectorDB/annotations", ImageAnnotations |
251 | 253 | ), |
252 | | - (ObjectDBModule, "scene_update"): LCMTransport("/detectorDB/scene_update", SceneUpdate), |
253 | | - (ObjectDBModule, "detected_pointcloud_0"): LCMTransport( |
| 254 | + ("scene_update", ObjectDBModule): LCMTransport("/detectorDB/scene_update", SceneUpdate), |
| 255 | + ("detected_pointcloud_0", ObjectDBModule): LCMTransport( |
254 | 256 | "/detectorDB/pointcloud/0", PointCloud2 |
255 | 257 | ), |
256 | | - (ObjectDBModule, "detected_pointcloud_1"): LCMTransport( |
| 258 | + ("detected_pointcloud_1", ObjectDBModule): LCMTransport( |
257 | 259 | "/detectorDB/pointcloud/1", PointCloud2 |
258 | 260 | ), |
259 | | - (ObjectDBModule, "detected_pointcloud_2"): LCMTransport( |
| 261 | + ("detected_pointcloud_2", ObjectDBModule): LCMTransport( |
260 | 262 | "/detectorDB/pointcloud/2", PointCloud2 |
261 | 263 | ), |
262 | | - (ObjectDBModule, "detected_image_0"): LCMTransport("/detectorDB/image/0", Image), |
263 | | - (ObjectDBModule, "detected_image_1"): LCMTransport("/detectorDB/image/1", Image), |
264 | | - (ObjectDBModule, "detected_image_2"): LCMTransport("/detectorDB/image/2", Image), |
| 264 | + ("detected_image_0", ObjectDBModule): LCMTransport("/detectorDB/image/0", Image), |
| 265 | + ("detected_image_1", ObjectDBModule): LCMTransport("/detectorDB/image/1", Image), |
| 266 | + ("detected_image_2", ObjectDBModule): LCMTransport("/detectorDB/image/2", Image), |
265 | 267 | # Person tracker outputs |
266 | | - (PersonTracker, "target"): LCMTransport("/person_tracker/target", PoseStamped), |
| 268 | + ("target", PersonTracker): LCMTransport("/person_tracker/target", PoseStamped), |
267 | 269 | } |
268 | 270 | ) |
269 | 271 | ) |
|
0 commit comments