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/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
Add some logs in the service callback of the server node. Is the request received? Does the service callback terminates?