From d090ddc35859901f9e07dac8eeaa1ce262e7a1fc Mon Sep 17 00:00:00 2001 From: Karsten Knese Date: Fri, 4 Aug 2017 12:57:12 -0700 Subject: [PATCH] fix return value when calling lifecycle service (#350) --- rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp b/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp index 8fd12dc..adf10f3 100644 --- a/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp +++ b/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp @@ -187,7 +187,8 @@ public: // TODO(karsten1987): Lifecycle msgs have to be extended to keep both returns // 1. return is the actual transition // 2. return is whether an error occurred or not - resp->success = (cb_return_code == RCL_RET_OK); + resp->success = + (cb_return_code == lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS); } void