You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect this could be fixed by deleting _spin_function and using self.__ros_executor.spin as the thread target.
Then the thread could be joined must faster by shutting down the rclpy.Context before trying to join it.
The text was updated successfully, but these errors were encountered:
While debugging #304 I noticed
WaitForTopics
spends a lot of time joining the thread it creates (up to 1 second).launch_ros/launch_testing_ros/launch_testing_ros/wait_for_topics.py
Line 82 in a114e1f
It looks like the thread spins for a whole second before checking if it should shutdown:
launch_ros/launch_testing_ros/launch_testing_ros/wait_for_topics.py
Lines 73 to 74 in a114e1f
I suspect this could be fixed by deleting
_spin_function
and usingself.__ros_executor.spin
as the thread target.Then the thread could be joined must faster by shutting down the
rclpy.Context
before trying to join it.The text was updated successfully, but these errors were encountered: