File tree 1 file changed +4
-12
lines changed
planning/behavior_path_planner/autoware_behavior_path_static_obstacle_avoidance_module/src
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -988,18 +988,6 @@ auto StaticObstacleAvoidanceModule::getTurnSignal(
988
988
return getPreviousModuleOutput ().turn_signal_info ;
989
989
}
990
990
991
- const auto itr =
992
- std::remove_if (shift_lines.begin (), shift_lines.end (), [&, this ](const auto & s) {
993
- const auto threshold = planner_data_->parameters .turn_signal_shift_length_threshold ;
994
- return std::abs (s.start_shift_length - s.end_shift_length ) < threshold ||
995
- is_ignore_signal (s.id );
996
- });
997
- shift_lines.erase (itr, shift_lines.end ());
998
-
999
- if (shift_lines.empty ()) {
1000
- return getPreviousModuleOutput ().turn_signal_info ;
1001
- }
1002
-
1003
991
const auto target_shift_line = [&]() {
1004
992
const auto & s1 = shift_lines.front ();
1005
993
@@ -1042,6 +1030,10 @@ auto StaticObstacleAvoidanceModule::getTurnSignal(
1042
1030
return s1;
1043
1031
}();
1044
1032
1033
+ if (is_ignore_signal (target_shift_line.id )) {
1034
+ return getPreviousModuleOutput ().turn_signal_info ;
1035
+ }
1036
+
1045
1037
const auto original_signal = getPreviousModuleOutput ().turn_signal_info ;
1046
1038
1047
1039
constexpr bool is_driving_forward = true ;
You can’t perform that action at this time.
0 commit comments