Skip to content

Commit e8c1660

Browse files
committed
(rqt_gui_py) Use SingleThreadedExecutor
As MultiThreadedExecutor is broken, see ros2/rclpy#1223
1 parent edaf31a commit e8c1660

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rqt_gui_py/src/rqt_gui_py/rclpy_spinner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from python_qt_binding.QtCore import qDebug, QThread
1616
import rclpy
17-
from rclpy.executors import MultiThreadedExecutor
17+
from rclpy.executors import SingleThreadedExecutor
1818

1919

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

2727
def run(self):
2828
qDebug('Start called on RclpySpinner, spinning ros2 node')
29-
executor = MultiThreadedExecutor()
29+
executor = SingleThreadedExecutor()
3030
executor.add_node(self._node)
3131
while rclpy.ok() and not self._abort:
3232
executor.spin_once(timeout_sec=1.0)

0 commit comments

Comments
 (0)