Skip to content

Commit

Permalink
fix(mission_planner): fix reroute chattering when mrm route clear fai…
Browse files Browse the repository at this point in the history
…ls (autowarefoundation#5788)

Signed-off-by: kosuke55 <[email protected]>
Signed-off-by: karishma <[email protected]>
  • Loading branch information
kosuke55 authored and karishma1911 committed Dec 19, 2023
1 parent bcd6a12 commit 2c72721
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,8 @@ void MissionPlanner::on_clear_mrm_route(
// check new route safety
if (new_route.segments.empty() || !check_reroute_safety(*mrm_route_, new_route)) {
// failed to create a new route
RCLCPP_ERROR_THROTTLE(get_logger(), *get_clock(), 5000, "Reroute with normal goal failed.");
RCLCPP_ERROR(get_logger(), "Reroute with normal goal failed.");
change_mrm_route(*mrm_route_);
change_route(*normal_route_);
change_state(RouteState::Message::SET);
res->status.success = false;
} else {
Expand Down

0 comments on commit 2c72721

Please sign in to comment.