New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for AsyncSpinner #335
Comments
This was already asked in the forum (at least I think it is a duplicate): https://discourse.ros.org/t/async-executor-in-ros2/1575 I'd recommend what I put in the discourse thread or this: using rclcpp::executors::multi_threaded_executor::MultiThreadedExecutor;
MultiThreadedExecutor executor;
// executor.add_node(...);
std::thread executor_thread(std::bind(&MultiThreadedExecutor::spin, &executor)); |
great. thanks for the link. I didn't see that. |
For ros2 dashing:
|
Hello @itfanr ! With ROS1 I was using start and stop. What to do in this case? Also if I have:
where start:
My code is not printing "hi" and "hey". It is not moving to further lines wheras with ROS since I used asyncspinner I had no problem. |
As we currently don't have the ROS2 equivalent for the AsyncSpinner, I helped myself out by excluding the
executor::spin()
function and running this in a separate thread.Is that the recommended way and how such an asyncspinner could look like in the ROS2 world?
The text was updated successfully, but these errors were encountered: