Robotics StackExchange | Archived questions

ROS2 Services: stuck on spin_until_future_complete

I have a client node that is sending a request to a server node. I followed the same format as in the ros2 demos repository:

https://github.com/ros2/demos/blob/master/demonodescpp/src/services/addtwoints_client.cpp

It is getting stuck at the rclcpp::spin_until_future_complete(node, result). I am confused what is causing the problem because I checked that the request is correct

Asked by mikepark93 on 2019-08-28 10:54:12 UTC

Comments

Add some logs in the service callback of the server node. Is the request received? Does the service callback terminates?

Asked by alsora on 2019-08-29 05:24:47 UTC

Answers