fix resource_get in action

This commit is contained in:
Junhan Chang
2025-10-17 11:18:47 +08:00
committed by Xuwznln
parent d4415f5a35
commit 1b43c53015
3 changed files with 9 additions and 3 deletions

View File

@@ -943,7 +943,7 @@ class BaseROS2DeviceNode(Node, Generic[T]):
queried_resources = []
for resource_data in resource_inputs:
r = SerialCommand.Request()
r.command = json.dumps({"id": resource_data["id"], "with_children": True})
r.command = json.dumps({"id": resource_data["id"], "uuid": resource_data.get("uuid", None), "with_children": True})
# 发送请求并等待响应
response: SerialCommand_Response = await self._resource_clients[
"resource_get"