We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1ce5c5 + ce5fd39 commit aa99691Copy full SHA for aa99691
rclcpp/include/rclcpp/service.hpp
@@ -555,6 +555,14 @@ class Service
555
{
556
rcl_ret_t ret = rcl_send_response(get_service_handle().get(), &req_id, &response);
557
558
+ if (ret == RCL_RET_TIMEOUT) {
559
+ RCLCPP_WARN(
560
+ node_logger_.get_child("rclcpp"),
561
+ "failed to send response to %s (timeout): %s",
562
+ this->get_service_name(), rcl_get_error_string().str);
563
+ rcl_reset_error();
564
+ return;
565
+ }
566
if (ret != RCL_RET_OK) {
567
rclcpp::exceptions::throw_from_rcl_error(ret, "failed to send response");
568
}
0 commit comments