Skip to content

Commit bcec02e

Browse files
authored
refactor(bpp_common): refactor calcBound (#10096)
refactor(bpp_common): refactor caclBound Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent a667251 commit bcec02e

File tree

1 file changed

+4
-12
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/drivable_area_expansion

1 file changed

+4
-12
lines changed

planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/drivable_area_expansion/static_drivable_area.cpp

+4-12
Original file line numberDiff line numberDiff line change
@@ -1666,22 +1666,14 @@ std::vector<geometry_msgs::msg::Point> calcBound(
16661666
: postProcess(bound, path, planner_data, drivable_lanes, is_left, is_driving_forward);
16671667
};
16681668

1669-
// Step2. if there is no drivable area defined by polygon, return original drivable bound.
1670-
if (!enable_expanding_hatched_road_markings && !enable_expanding_intersection_areas) {
1671-
return post_process(removeOverlapPoints(to_ros_point(bound_points)), skip_post_process);
1672-
}
1673-
1674-
// Step3.if there are hatched road markings, expand drivable bound with the polygon.
1669+
// if there is no drivable area defined by polygon, return original drivable bound.
1670+
// if there are hatched road markings, expand drivable bound with the polygon.
1671+
// if there are intersection areas, expand drivable bound with the polygon.
16751672
if (enable_expanding_hatched_road_markings) {
16761673
bound_points = getBoundWithHatchedRoadMarkings(bound_points, route_handler);
16771674
}
16781675

1679-
if (!enable_expanding_intersection_areas) {
1680-
return post_process(removeOverlapPoints(to_ros_point(bound_points)), skip_post_process);
1681-
}
1682-
1683-
// Step4. if there are intersection areas, expand drivable bound with the polygon.
1684-
{
1676+
if (enable_expanding_intersection_areas) {
16851677
bound_points =
16861678
getBoundWithIntersectionAreas(bound_points, route_handler, drivable_lanes, is_left);
16871679
}

0 commit comments

Comments
 (0)