From 20e8397f5a65fd66ed77e701e30caf7e94aeb942 Mon Sep 17 00:00:00 2001 From: ken910606 Date: Tue, 14 Apr 2026 13:48:24 +0800 Subject: [PATCH] Update master with local 2.0.4 --- src/GUI/gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GUI/gui.py b/src/GUI/gui.py index a641917..5f94975 100644 --- a/src/GUI/gui.py +++ b/src/GUI/gui.py @@ -33,7 +33,7 @@ from mission_group import ( # ================================================================================ class ControlStationUI(QMainWindow): - VERSION = '2.0.3' + VERSION = '2.0.4' def __init__(self): super().__init__() @@ -52,6 +52,10 @@ class ControlStationUI(QMainWindow): self.executor = rclpy.executors.SingleThreadedExecutor() self.executor.add_node(self.monitor) + # 添加 CommandLongClient 到執行器(這樣它的回調才能被處理) + if self.monitor.command_long_client: + self.executor.add_node(self.monitor.command_long_client) + # 定时处理ROS事件 self.timer = QTimer() self.timer.timeout.connect(self.spin_ros)