mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Update create_resource device_id
(cherry picked from commit bc30f23e34)
This commit is contained in:
@@ -494,7 +494,7 @@ class HostNode(BaseROS2DeviceNode):
|
|||||||
if len(init_new_res) > 1: # 一个物料,多个子节点
|
if len(init_new_res) > 1: # 一个物料,多个子节点
|
||||||
init_new_res = [init_new_res]
|
init_new_res = [init_new_res]
|
||||||
resources: List[Resource] | List[List[Resource]] = init_new_res # initialize_resource已经返回list[dict]
|
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_parent_id = [res_creation_input["parent"]]
|
||||||
bind_location = [bind_locations]
|
bind_location = [bind_locations]
|
||||||
other_calling_param = [
|
other_calling_param = [
|
||||||
|
|||||||
Reference in New Issue
Block a user