Fix drag materials.

Fix and tested new create_resource.

Update create_resource to resource tree mode.
This commit is contained in:
Xuwznln
2026-01-07 02:03:43 +08:00
parent bc8c49ddda
commit 6ca5c72fc6
8 changed files with 192 additions and 111 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: