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]>
  • Loading branch information
kosuke55 authored and TetsuKawa committed Dec 8, 2023
1 parent be570b7 commit c863ea4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,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 c863ea4

Please sign in to comment.