Skip to content

Commit

Permalink
Enhance transform failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMerzlyakov committed Nov 5, 2020
1 parent be93fe3 commit f3b7395
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nav2_costmap_2d/plugins/costmap_filters/keepout_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ void KeepoutFilter::process(
mask_frame_, global_frame_, tf2::TimePointZero,
transform_tolerance_);
} catch (tf2::TransformException & ex) {
RCLCPP_ERROR(node->get_logger(), "KeepoutFilter: %s", ex.what());
RCLCPP_ERROR(
node->get_logger(),
"KeepoutFilter: failed to get costmap frame (%s) "
"transformation to mask frame (%s) with error: %s",
global_frame_.c_str(), mask_frame_.c_str(), ex.what());
return;
}
tf2::fromMsg(transform.transform, tf2_transform);
Expand Down

0 comments on commit f3b7395

Please sign in to comment.