mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
fix workstation node error
This commit is contained in:
@@ -241,7 +241,7 @@ class ROS2WorkstationNode(BaseROS2DeviceNode):
|
|||||||
raw_data = json.loads(response.response)
|
raw_data = json.loads(response.response)
|
||||||
tree_set = ResourceTreeSet.from_raw_list(raw_data)
|
tree_set = ResourceTreeSet.from_raw_list(raw_data)
|
||||||
target = tree_set.dump()
|
target = tree_set.dump()
|
||||||
protocol_kwargs[k] = target[0]
|
protocol_kwargs[k] = target[0][0] if v == "unilabos_msgs/Resource" else target
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.lab_logger().error(f"查询资源失败: {k}, 错误: {ex}\n{traceback.format_exc()}")
|
self.lab_logger().error(f"查询资源失败: {k}, 错误: {ex}\n{traceback.format_exc()}")
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user