ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I haven't used ros2 yet, but I notice that your code does not look the tutorial code.

  1. You are not checking that the server-side has actually started.
  2. 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)