完成启动OT并联动rviz

This commit is contained in:
zhangshixiang
2025-04-29 22:13:34 +08:00
parent bdf97be256
commit 8921bcd9fb
8 changed files with 257 additions and 103 deletions

View File

@@ -48,6 +48,7 @@ class DeviceNodeResourceTracker:
def loop_find_resource(self, resource, resource_cls_type, identifier_key, compare_value):
res_list = []
print(resource, resource_cls_type, identifier_key, compare_value)
children = getattr(resource, "children", [])
for child in children:
res_list.extend(self.loop_find_resource(child, resource_cls_type, identifier_key, compare_value))