Skip to content

Commit

Permalink
Fix a typo in Writing-A-Simple-Cpp-Service-And-Client.rst (#4934)
Browse files Browse the repository at this point in the history
Signed-off-by: Jihye Sofia Seo <[email protected]>
  • Loading branch information
jihyeseo authored Jan 14, 2025
1 parent cfa3b89 commit 3959d21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Inside the ``ros2_ws/src/cpp_srvcli/src`` directory, create a new file called ``
request->a = 41;
request->b = 1;
auto result_future = client->async_send_request(request);
if (rclcpp::spin_until_future_complete(node, result_future) ==
if (rclcpp::spin_until_future_complete(node, result_future) !=
rclcpp::FutureReturnCode::SUCCESS)
{
RCLCPP_ERROR(node->get_logger(), "service call failed :(");
Expand Down

0 comments on commit 3959d21

Please sign in to comment.