Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Sep 4, 2023
1 parent 55e15f0 commit afb9001
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ bool checkOriginalGoalIsInShoulder(const std::shared_ptr<RouteHandler> & route_h
const auto shoulder_lanes = route_handler->getShoulderLanelets();

lanelet::ConstLanelet closest_shoulder_lane{};
lanelet::utils::query::getClosestLanelet(shoulder_lanes, goal_pose, &closest_shoulder_lane);
if (lanelet::utils::query::getClosestLanelet(shoulder_lanes, goal_pose, &closest_shoulder_lane)) {
return lanelet::utils::isInLanelet(goal_pose, closest_shoulder_lane, 0.1);
}

return lanelet::utils::isInLanelet(goal_pose, closest_shoulder_lane, 0.1);
return false;
}

} // namespace goal_planner_utils
Expand Down

0 comments on commit afb9001

Please sign in to comment.