Skip to content

Commit

Permalink
(rqt_gui_py) Use SingleThreadedExecutor
Browse files Browse the repository at this point in the history
As MultiThreadedExecutor is broken, see ros2/rclpy#1223
  • Loading branch information
MatthijsBurgh committed May 16, 2024
1 parent edaf31a commit e8c1660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rqt_gui_py/src/rqt_gui_py/rclpy_spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from python_qt_binding.QtCore import qDebug, QThread
import rclpy
from rclpy.executors import MultiThreadedExecutor
from rclpy.executors import SingleThreadedExecutor


class RclpySpinner(QThread):
Expand All @@ -26,7 +26,7 @@ def __init__(self, node):

def run(self):
qDebug('Start called on RclpySpinner, spinning ros2 node')
executor = MultiThreadedExecutor()
executor = SingleThreadedExecutor()
executor.add_node(self._node)
while rclpy.ok() and not self._abort:
executor.spin_once(timeout_sec=1.0)
Expand Down

0 comments on commit e8c1660

Please sign in to comment.