Update master with local 2.0.4

ken910606 4 weeks ago
parent f28dcca361
commit 20e8397f5a

@ -33,7 +33,7 @@ from mission_group import (
# ================================================================================ # ================================================================================
class ControlStationUI(QMainWindow): class ControlStationUI(QMainWindow):
VERSION = '2.0.3' VERSION = '2.0.4'
def __init__(self): def __init__(self):
super().__init__() super().__init__()
@ -52,6 +52,10 @@ class ControlStationUI(QMainWindow):
self.executor = rclpy.executors.SingleThreadedExecutor() self.executor = rclpy.executors.SingleThreadedExecutor()
self.executor.add_node(self.monitor) self.executor.add_node(self.monitor)
# 添加 CommandLongClient 到執行器(這樣它的回調才能被處理)
if self.monitor.command_long_client:
self.executor.add_node(self.monitor.command_long_client)
# 定时处理ROS事件 # 定时处理ROS事件
self.timer = QTimer() self.timer = QTimer()
self.timer.timeout.connect(self.spin_ros) self.timer.timeout.connect(self.spin_ros)

Loading…
Cancel
Save