Skip to content

Commit

Permalink
fix(autoware_behavior_path_planner_common): fix knownConditionTrueFal…
Browse files Browse the repository at this point in the history
…se (#7816)

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Jul 4, 2024
1 parent 909004e commit 96e616f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void PathShifter::applyLinearShifter(ShiftedPath * shifted_path) const
double ith_shift_length = 0.0;
if (i < shift_line.start_idx) {
ith_shift_length = 0.0;
} else if (shift_line.start_idx <= i && i <= shift_line.end_idx) {
} else if (i <= shift_line.end_idx) {
auto dist_from_start = arclength_arr.at(i) - arclength_arr.at(shift_line.start_idx);
ith_shift_length = (dist_from_start / shifting_arclength) * delta_shift;
} else {
Expand Down

0 comments on commit 96e616f

Please sign in to comment.