Skip to content

Commit

Permalink
fix(behavior_path_planner): handle overlap lane in isEgoOutOfRoute() (a…
Browse files Browse the repository at this point in the history
…utowarefoundation#3715)

Signed-off-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
rej55 authored May 15, 2023
1 parent 7afa349 commit e229603
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion planning/behavior_path_planner/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,10 @@ bool isEgoOutOfRoute(
}

// If ego vehicle is over goal on goal lane, return true
if (lanelet::utils::isInLanelet(self_pose, goal_lane)) {
lanelet::ConstLanelet closest_lane;
const double yaw_threshold = tier4_autoware_utils::deg2rad(90);
if (lanelet::utils::query::getClosestLaneletWithConstrains(
{goal_lane}, self_pose, &closest_lane, 0.0, yaw_threshold)) {
constexpr double buffer = 1.0;
const auto ego_arc_coord = lanelet::utils::getArcCoordinates({goal_lane}, self_pose);
const auto goal_arc_coord =
Expand Down

0 comments on commit e229603

Please sign in to comment.