From cb928c722b5bac5a50c33841fb5031b78b8282c3 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Tue, 14 Jan 2025 13:47:20 -0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix=20a=20typo=20in=20Writing-A-Simpl?= =?UTF-8?q?e-Cpp-Service-And-Client.rst=20(backport=20#=E2=80=A6"=20(#4940?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 24c6ebf556f4cdd99c8eb92345688899ace33423. --- .../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 4e27acc2250..96475d2b385 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 @@ -227,7 +227,7 @@ Inside the ``ros2_ws/src/cpp_srvcli/src`` directory, create a new file called `` auto result = client->async_send_request(request); // Wait for the result. - if (rclcpp::spin_until_future_complete(node, result) != + if (rclcpp::spin_until_future_complete(node, result) == rclcpp::FutureReturnCode::SUCCESS) { RCLCPP_INFO(rclcpp::get_logger("rclcpp"), "Sum: %ld", result.get()->sum);