From 388259e64be6c634d7e4125b1cdb1757c27c2ce5 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:45:20 +0800 Subject: [PATCH] Update create_resource device_id (cherry picked from commit bc30f23e3426f1ec0be88f112fe3746dc5d317a3) --- unilabos/ros/nodes/presets/host_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unilabos/ros/nodes/presets/host_node.py b/unilabos/ros/nodes/presets/host_node.py index f40e0cbb..932c4885 100644 --- a/unilabos/ros/nodes/presets/host_node.py +++ b/unilabos/ros/nodes/presets/host_node.py @@ -494,7 +494,7 @@ class HostNode(BaseROS2DeviceNode): if len(init_new_res) > 1: # 一个物料,多个子节点 init_new_res = [init_new_res] resources: List[Resource] | List[List[Resource]] = init_new_res # initialize_resource已经返回list[dict] - device_ids = [device_id] + device_ids = [device_id.split("/")[-1]] bind_parent_id = [res_creation_input["parent"]] bind_location = [bind_locations] other_calling_param = [