Compare commits
2
Commits
a700e62de1
...
7ae4c56f86
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ae4c56f86 | ||
|
|
20e8397f5a |
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user