From 4a1e703a3aba8ab7e6e55d1e866fc5e693987991 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:35:59 +0800 Subject: [PATCH] support no size init --- unilabos/resources/container.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unilabos/resources/container.py b/unilabos/resources/container.py index 72fba553..adf9a23c 100644 --- a/unilabos/resources/container.py +++ b/unilabos/resources/container.py @@ -7,7 +7,14 @@ from unilabos.ros.msgs.message_converter import convert_from_ros_msg class RegularContainer(Container): - pass + def __init__(self, *args, **kwargs): + if "size_x" not in kwargs: + kwargs["size_x"] = 0 + if "size_y" not in kwargs: + kwargs["size_y"] = 0 + if "size_z" not in kwargs: + kwargs["size_z"] = 0 + super().__init__(*args, **kwargs) #