ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I think these links have all the info you need.

  • similar Q&A regarding spins: https://answers.ros.org/question/296480/functional-difference-between-ros2-spin_some-spin_once-and-spin_until_future/

  • rclpp library - documentation: https://docs.ros2.org/beta1/api/rclcpp/classrclcpp_1_1executor_1_1_executor.html

You can see in the rclcpp documentation that you have spin_once, but I couldn't find many use in some projects I skimmed on Github - usually you would use spin_until_future_complete (e.g. Nav2 uses it a lot).