There two ways to spin nodes:
use rclcpp::spin
rclcpp::spin
create an executor, add nodes to the executor, and then call the spin method of the executor.
spin
Last updated 2 years ago