From e5045051370a69e0b0bc1ab548262d57c5cc8d06 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Fri, 24 Oct 2025 02:58:50 +0800 Subject: [PATCH] use ordering to convert identifier to idx --- unilabos/ros/nodes/base_device_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unilabos/ros/nodes/base_device_node.py b/unilabos/ros/nodes/base_device_node.py index a2f51e7a..f1063123 100644 --- a/unilabos/ros/nodes/base_device_node.py +++ b/unilabos/ros/nodes/base_device_node.py @@ -593,7 +593,7 @@ class BaseROS2DeviceNode(Node, Generic[T]): site = additional_add_params.get("site", None) spec = inspect.signature(parent_resource.assign_child_resource) if "spot" in spec.parameters: - ordering_dict: Dict[str, Any] = getattr(plr_resource, "_ordering") + ordering_dict: Dict[str, Any] = getattr(parent_resource, "_ordering") if ordering_dict: site = list(ordering_dict.keys()).index(site) additional_params["spot"] = site