Skip to content

Commit 9189f08

Browse files
committed
fix(autoware_behavior_path_planner_common): fix knownConditionTrueFalse
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 909004e commit 9189f08

File tree

1 file changed

+1
-1
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/path_shifter

1 file changed

+1
-1
lines changed

planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/path_shifter/path_shifter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void PathShifter::applyLinearShifter(ShiftedPath * shifted_path) const
194194
double ith_shift_length = 0.0;
195195
if (i < shift_line.start_idx) {
196196
ith_shift_length = 0.0;
197-
} else if (shift_line.start_idx <= i && i <= shift_line.end_idx) {
197+
} else if (i <= shift_line.end_idx) {
198198
auto dist_from_start = arclength_arr.at(i) - arclength_arr.at(shift_line.start_idx);
199199
ith_shift_length = (dist_from_start / shifting_arclength) * delta_shift;
200200
} else {

0 commit comments

Comments
 (0)