From f66821d3c9322d28f3179a32482d632e9b05f542 Mon Sep 17 00:00:00 2001 From: Jihye Sofia Seo <9078892+jihyeseo@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:01:12 +0100 Subject: [PATCH] Fix a typo in Writing-A-Simple-Cpp-Service-And-Client.rst Signed-off-by: Jihye Sofia Seo <9078892+jihyeseo@users.noreply.github.com> --- .../Writing-A-Simple-Cpp-Service-And-Client.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.rst b/source/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.rst index 0a71492ba8..a1a743ad30 100644 --- a/source/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.rst +++ b/source/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Service-And-Client.rst @@ -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 :(");