File tree 1 file changed +4
-8
lines changed
planning/behavior_path_planner/autoware_behavior_path_start_planner_module/src
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -888,20 +888,16 @@ PriorityOrder StartPlannerModule::determinePriorityOrder(
888
888
order_priority.emplace_back (i, planner);
889
889
}
890
890
}
891
- return order_priority;
892
- }
893
-
894
- if (search_priority == " short_back_distance" ) {
891
+ } else if (search_priority == " short_back_distance" ) {
895
892
for (size_t i = 0 ; i < start_pose_candidates_num; i++) {
896
893
for (const auto & planner : start_planners_) {
897
894
order_priority.emplace_back (i, planner);
898
895
}
899
896
}
900
- return order_priority;
897
+ } else {
898
+ RCLCPP_ERROR (getLogger (), " Invalid search_priority: %s" , search_priority.c_str ());
899
+ throw std::domain_error (" [start_planner] invalid search_priority" );
901
900
}
902
-
903
- RCLCPP_ERROR (getLogger (), " Invalid search_priority: %s" , search_priority.c_str ());
904
- throw std::domain_error (" [start_planner] invalid search_priority" );
905
901
return order_priority;
906
902
}
907
903
You can’t perform that action at this time.
0 commit comments