Use RCL_RET_SERVICE_TAKE_FAILED and not RCL_RET_CLIENT_TAKE_FAILED when checking a request take (#1101)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
f69b18203f
commit
13c09acfad
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ ServiceBase::take_type_erased_request(void * request_out, rmw_request_id_t & req
|
||||||
this->get_service_handle().get(),
|
this->get_service_handle().get(),
|
||||||
&request_id_out,
|
&request_id_out,
|
||||||
request_out);
|
request_out);
|
||||||
if (RCL_RET_CLIENT_TAKE_FAILED == ret) {
|
if (RCL_RET_SERVICE_TAKE_FAILED == ret) {
|
||||||
return false;
|
return false;
|
||||||
} else if (RCL_RET_OK != ret) {
|
} else if (RCL_RET_OK != ret) {
|
||||||
rclcpp::exceptions::throw_from_rcl_error(ret);
|
rclcpp::exceptions::throw_from_rcl_error(ret);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue