Skip to content

Commit 84c72cd

Browse files
authored
fix(avoidance): fix shift line generation logic (#3099)
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent e6dfa18 commit 84c72cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,8 @@ AvoidLineArray AvoidanceModule::calcRawShiftLinesFromObjects(
11151115
if (!data.avoiding_now) {
11161116
o.reason = AvoidanceDebugFactor::REMAINING_DISTANCE_LESS_THAN_ZERO;
11171117
debug.unavoidable_objects.push_back(o);
1118+
continue;
11181119
}
1119-
continue;
11201120
}
11211121

11221122
// This is the case of exceeding the jerk limit. Use the sharp avoidance ego speed.
@@ -1129,8 +1129,8 @@ AvoidLineArray AvoidanceModule::calcRawShiftLinesFromObjects(
11291129
if (!data.avoiding_now) {
11301130
o.reason = AvoidanceDebugFactor::TOO_LARGE_JERK;
11311131
debug.unavoidable_objects.push_back(o);
1132+
continue;
11321133
}
1133-
continue;
11341134
}
11351135
}
11361136
const auto avoiding_distance =

0 commit comments

Comments
 (0)