diff --git a/unilabos/app/main.py b/unilabos/app/main.py index b65da8e..c646518 100644 --- a/unilabos/app/main.py +++ b/unilabos/app/main.py @@ -356,7 +356,7 @@ def main(): if BasicConfig.upload_registry: # 设备注册到服务端 - 需要 ak 和 sk - if args_dict.get("ak") and args_dict.get("sk"): + if BasicConfig.ak and BasicConfig.sk: print_status("开始注册设备到服务端...", "info") try: register_devices_and_resources(lab_registry) diff --git a/unilabos/ros/nodes/base_device_node.py b/unilabos/ros/nodes/base_device_node.py index 7a31188..8dc9c86 100644 --- a/unilabos/ros/nodes/base_device_node.py +++ b/unilabos/ros/nodes/base_device_node.py @@ -582,7 +582,7 @@ class BaseROS2DeviceNode(Node, Generic[T]): - update: 更新现有资源 - remove: 从资源树中移除资源 """ - from pylabrobot.resources import Resource as ResourcePLR + from pylabrobot.resources.resource import Resource as ResourcePLR try: data = json.loads(req.command) results = []