Skip to content

Commit 9f89588

Browse files
authored
fix(mission_planner): fix reroute chattering when mrm route clear fails (#5788)
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 74b0a1b commit 9f89588

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

planning/mission_planner/src/mission_planner/mission_planner.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,8 @@ void MissionPlanner::on_clear_mrm_route(
524524
// check new route safety
525525
if (new_route.segments.empty() || !check_reroute_safety(*mrm_route_, new_route)) {
526526
// failed to create a new route
527-
RCLCPP_ERROR_THROTTLE(get_logger(), *get_clock(), 5000, "Reroute with normal goal failed.");
527+
RCLCPP_ERROR(get_logger(), "Reroute with normal goal failed.");
528528
change_mrm_route(*mrm_route_);
529-
change_route(*normal_route_);
530529
change_state(RouteState::Message::SET);
531530
res->status.success = false;
532531
} else {

0 commit comments

Comments
 (0)