fix return value when calling lifecycle service (#350)

This commit is contained in:
Karsten Knese 2017-08-04 12:57:12 -07:00 committed by GitHub
parent 388a3ca5be
commit d090ddc358

View file

@ -187,7 +187,8 @@ public:
// TODO(karsten1987): Lifecycle msgs have to be extended to keep both returns // TODO(karsten1987): Lifecycle msgs have to be extended to keep both returns
// 1. return is the actual transition // 1. return is the actual transition
// 2. return is whether an error occurred or not // 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 void