Skip to content

Commit

Permalink
bug: unused function get_goal_lanelet() remaining
Browse files Browse the repository at this point in the history
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
  • Loading branch information
sasakisasaki committed Mar 10, 2025
1 parent d1f52ae commit c95effc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ PathWithLaneId refine_path_for_goal(
std::optional<lanelet::ConstLanelets> extract_lanelets_from_path(
const PathWithLaneId & refined_path, const PlannerData & planner_data);

/**
* @brief Get the goal lanelet.
* @param planner_data Planner data.
* @return Goal lanelet (std::nullopt if not found)
*/
std::optional<lanelet::ConstLanelet> get_goal_lanelet(const PlannerData & planner_data);

/**
* @brief Check if the pose is in the lanelets.
* @param pose Pose.
Expand Down
11 changes: 0 additions & 11 deletions planning/autoware_path_generator/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,17 +534,6 @@ std::optional<lanelet::ConstLanelets> extract_lanelets_from_path(
return refined_path_lanelets;
}

std::optional<lanelet::ConstLanelet> get_goal_lanelet(const PlannerData & planner_data)
{
const lanelet::Id goal_lane_id = planner_data.preferred_lanelets.back().id();
for (const auto & llt : planner_data.route_lanelets) {
if (llt.id() == goal_lane_id) {
return llt;
}
}
return std::nullopt;
}

bool is_in_lanelets(const geometry_msgs::msg::Pose & pose, const lanelet::ConstLanelets & lanes)
{
for (const auto & lane : lanes) {
Expand Down

0 comments on commit c95effc

Please sign in to comment.