Threading Across Multiple Nodes ROS1 C++

Hi @IMSETraining

  • When you compile server action and action client, what appears on shells?

Remember that when you use multithreading it is not for controlling multiple nodes, but for multiple callbacks

 ros::AsyncSpinner spinner(0); //number of threads
 spinner.start();
 //callbacks u want to control 
 ros::waitForShutdown();
1 Like