Skip to content

Commit 81ede03

Browse files
authored
fix(utils): fix bug in drivable area expansion (autowarefoundation#5198)
* fix(avoidance): fix invalid drivable area bound Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * refactor(avoidance): split huge process to three functions Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(utils): improve sharp bound remove logic Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 58a513e commit 81ede03

File tree

2 files changed

+230
-126
lines changed
  • planning/behavior_path_planner

2 files changed

+230
-126
lines changed

planning/behavior_path_planner/include/behavior_path_planner/utils/utils.hpp

+9
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ std::vector<geometry_msgs::msg::Point> calcBound(
231231
const bool enable_expanding_hatched_road_markings, const bool enable_expanding_intersection_areas,
232232
const bool is_left);
233233

234+
std::vector<lanelet::ConstPoint3d> getBoundWithHatchedRoadMarkings(
235+
const std::vector<lanelet::ConstPoint3d> & original_bound,
236+
const std::shared_ptr<RouteHandler> & route_handler);
237+
238+
std::vector<lanelet::ConstPoint3d> getBoundWithIntersectionAreas(
239+
const std::vector<lanelet::ConstPoint3d> & original_bound,
240+
const std::shared_ptr<RouteHandler> & route_handler,
241+
const std::vector<DrivableLanes> & drivable_lanes, const bool is_left);
242+
234243
boost::optional<size_t> getOverlappedLaneletId(const std::vector<DrivableLanes> & lanes);
235244
std::vector<DrivableLanes> cutOverlappedLanes(
236245
PathWithLaneId & path, const std::vector<DrivableLanes> & lanes);

0 commit comments

Comments
 (0)