Update create_resource to resource tree mode.

This commit is contained in:
Xuwznln
2026-01-07 02:03:43 +08:00
parent a1c34f138e
commit 66c18c080a
8 changed files with 179 additions and 109 deletions

View File

@@ -244,7 +244,7 @@ class ROS2WorkstationNode(BaseROS2DeviceNode):
r
) # type: ignore
raw_data = json.loads(response.response)
tree_set = ResourceTreeSet.from_raw_list(raw_data)
tree_set = ResourceTreeSet.from_raw_dict_list(raw_data)
target = tree_set.dump()
protocol_kwargs[k] = target[0][0] if v == "unilabos_msgs/Resource" else target
except Exception as ex: