Skip to content

Commit

Permalink
chore(route_handler, QC): remove unused function (autowarefoundation#…
Browse files Browse the repository at this point in the history
…10209)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin authored Mar 3, 2025
1 parent 41f1321 commit eff79a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,6 @@ class RouteHandler
const lanelet::ConstLanelet & lane, const bool & include_opposite,
const bool & invert_opposite = false) const noexcept;

/**
* @brief Searches and return all lanelet (left and right) that shares same linestring
* @param the lanelet of interest
* @param (optional) flag to search only right side
* @param (optional) flag to search only left side
* @param (optional) flag to include the lane with opposite direction
* @param (optional) flag to invert the opposite lanelet
* @return vector of lanelet that is connected via share linestring
*/
lanelet::ConstLanelets getAllSharedLineStringLanelets(
const lanelet::ConstLanelet & current_lane, bool is_right = true, bool is_left = true,
bool is_opposite = true, const bool & invert_opposite = false) const noexcept;

/**
* @brief Check if same-direction lane is available at the right side of the lanelet
* Searches for any lanes regardless of whether it is lane-changeable or not.
Expand Down
21 changes: 0 additions & 21 deletions planning/autoware_route_handler/src/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,27 +1242,6 @@ lanelet::ConstLanelets RouteHandler::getAllRightSharedLinestringLanelets(
return linestring_shared;
}

lanelet::ConstLanelets RouteHandler::getAllSharedLineStringLanelets(
const lanelet::ConstLanelet & current_lane, bool is_right, bool is_left, bool is_opposite,
const bool & invert_opposite) const noexcept
{
lanelet::ConstLanelets shared{current_lane};

if (is_right) {
const lanelet::ConstLanelets all_right_lanelets =
getAllRightSharedLinestringLanelets(current_lane, is_opposite, invert_opposite);
shared.insert(shared.end(), all_right_lanelets.begin(), all_right_lanelets.end());
}

if (is_left) {
const lanelet::ConstLanelets all_left_lanelets =
getAllLeftSharedLinestringLanelets(current_lane, is_opposite, invert_opposite);
shared.insert(shared.end(), all_left_lanelets.begin(), all_left_lanelets.end());
}

return shared;
}

lanelet::Lanelets RouteHandler::getLeftOppositeLanelets(const lanelet::ConstLanelet & lanelet) const
{
const auto opposite_candidate_lanelets =
Expand Down

0 comments on commit eff79a2

Please sign in to comment.