create container

This commit is contained in:
Xuwznln
2025-06-15 12:51:37 +08:00
parent ccbd4e8111
commit 0319468ace
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
container:
description: regular organic container
class:
module: unilabos.resources.container:RegularContainer
type: unilabos

View File

@@ -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方法