Skip to content

Commit

Permalink
fix(behavior_path_planner): fix intersection path is empty case (tier…
Browse files Browse the repository at this point in the history
…4#1327)

Signed-off-by: taikitanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 authored and boyali committed Oct 3, 2022
1 parent 39221db commit 8dd423a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/behavior_path_planner/src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ bool checkLaneIsInIntersection(
const RouteHandler & route_handler, const PathWithLaneId & reference_path,
const lanelet::ConstLanelets & lanelet_sequence, double & additional_length_to_add)
{
if (lanelet_sequence.size() < 2) {
if (lanelet_sequence.size() < 2 || reference_path.points.empty()) {
return false;
}

Expand Down

0 comments on commit 8dd423a

Please sign in to comment.