fix state loading for regular container

This commit is contained in:
Xuwznln
2025-10-16 14:04:03 +08:00
parent c75b7d5aae
commit 3757bd9c58
2 changed files with 26 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
import json
from typing import Dict, Any
from pylabrobot.resources import Container
from unilabos_msgs.msg import Resource
@@ -15,9 +16,11 @@ class RegularContainer(Container):
if "size_z" not in kwargs:
kwargs["size_z"] = 0
self.kwargs = kwargs
self.state = {}
super().__init__(*args, **kwargs)
def load_state(self, state: Dict[str, Any]):
self.state = state
#
# class RegularContainer(object):
# # 第一个参数必须是id传入