ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I haven't used ros2 yet, but I notice that your code does not look the tutorial code.
Is your client node spinning as it waits? The above tutorial uses the following method to wait for a response:
rclcpp::spin_until_future_complete(node, result) == rclcpp::executor::FutureReturnCode::SUCCESS)