Skip to content

Commit

Permalink
fix(start_planner): fix backward drving path cutting (autowarefoundat…
Browse files Browse the repository at this point in the history
…ion#5098)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Sep 27, 2023
1 parent ba83b47 commit 1ce6bde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1187,8 +1187,11 @@ void StartPlannerModule::setDrivableAreaInfo(BehaviorModuleOutput & output) cons

DrivableAreaInfo current_drivable_area_info;
current_drivable_area_info.drivable_lanes = target_drivable_lanes;
output.drivable_area_info = utils::combineDrivableAreaInfo(
current_drivable_area_info, getPreviousModuleOutput().drivable_area_info);
output.drivable_area_info =
status_.back_finished
? utils::combineDrivableAreaInfo(
current_drivable_area_info, getPreviousModuleOutput().drivable_area_info)
: current_drivable_area_info;
}
}

Expand Down
2 changes: 1 addition & 1 deletion planning/behavior_path_planner/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ void generateDrivableArea(

// make bound longitudinally monotonic
// TODO(Murooka) Fix makeBoundLongitudinallyMonotonic
if (enable_expanding_polygon) {
if (is_driving_forward && enable_expanding_polygon) {
makeBoundLongitudinallyMonotonic(path, planner_data, true); // for left bound
makeBoundLongitudinallyMonotonic(path, planner_data, false); // for right bound
}
Expand Down

0 comments on commit 1ce6bde

Please sign in to comment.