From 0319468ace4e45c558ea7bcf6c04a01793f7c076 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Sun, 15 Jun 2025 12:51:37 +0800 Subject: [PATCH] create container --- unilabos/registry/resources/opentrons/container.yaml | 5 +++++ unilabos/ros/nodes/base_device_node.py | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 unilabos/registry/resources/opentrons/container.yaml diff --git a/unilabos/registry/resources/opentrons/container.yaml b/unilabos/registry/resources/opentrons/container.yaml new file mode 100644 index 0000000..c64b45f --- /dev/null +++ b/unilabos/registry/resources/opentrons/container.yaml @@ -0,0 +1,5 @@ +container: + description: regular organic container + class: + module: unilabos.resources.container:RegularContainer + type: unilabos diff --git a/unilabos/ros/nodes/base_device_node.py b/unilabos/ros/nodes/base_device_node.py index eebaf59..daeae40 100644 --- a/unilabos/ros/nodes/base_device_node.py +++ b/unilabos/ros/nodes/base_device_node.py @@ -351,6 +351,8 @@ class BaseROS2DeviceNode(Node, Generic[T]): ADD_LIQUID_TYPE = other_calling_param.pop("ADD_LIQUID_TYPE", []) LIQUID_VOLUME = other_calling_param.pop("LIQUID_VOLUME", []) LIQUID_INPUT_SLOT = other_calling_param.pop("LIQUID_INPUT_SLOT", []) + if len(LIQUID_INPUT_SLOT) and LIQUID_INPUT_SLOT[0] == -1: + print("create container") slot = other_calling_param.pop("slot", "-1") resource = None if slot != "-1": # slot为负数的时候采用assign方法