ROS2 Services: stuck on spin_until_future_complete

asked 2019-08-28 10:54:12 -0500

mikepark93 gravatar image

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/demo_nodes_cpp/src/services/add_two_ints_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

edit retag flag offensive close merge delete

Comments

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

alsora gravatar imagealsora ( 2019-08-29 05:24:47 -0500 )edit