Skip to content

Commit 52a0525

Browse files
authored
fix(behavior_path_planner): fix offset sign expanding side shift drivable area (#2196)
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
1 parent 0369970 commit 52a0525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

planning/behavior_path_planner/src/scene_module/side_shift/side_shift_module.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ void SideShiftModule::adjustDrivableArea(ShiftedPath * path) const
411411
const double left_offset = std::max(
412412
*itr.second + (*itr.first > threshold ? margin : 0.0),
413413
parameters_.drivable_area_left_bound_offset);
414-
const double right_offset = std::min(
414+
const double right_offset = -std::min(
415415
*itr.first - (*itr.first < -threshold ? margin : 0.0),
416-
parameters_.drivable_area_right_bound_offset);
416+
-parameters_.drivable_area_right_bound_offset);
417417

418418
const auto extended_lanelets = util::expandLanelets(current_lanelets_, left_offset, right_offset);
419419

0 commit comments

Comments
 (0)