|
|
|
|
@ -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)
|
|
|
|
|
|