fix: sync task no log output

fix: registry typo
This commit is contained in:
wznln
2025-04-23 14:35:18 +08:00
parent 136bb1ded0
commit 0cd11fa46b
6 changed files with 40 additions and 21 deletions

View File

@@ -21,6 +21,7 @@ class ROS2SerialNode(BaseROS2DeviceNode):
self.hardware_interface = Serial(baudrate=baudrate, port=port)
except (OSError, SerialException) as e:
# 因为还没调用父类初始化,无法使用日志,直接抛出异常
# print(f"Failed to connect to serial port {port} at {baudrate} baudrate.")
raise RuntimeError(f"Failed to connect to serial port {port} at {baudrate} baudrate.") from e
# 初始化BaseROS2DeviceNode使用自身作为driver_instance