Skip to content

Commit

Permalink
fix(autoware_behavior_velocity_run_out_module): fix unusedFunction (a…
Browse files Browse the repository at this point in the history
…utowarefoundation#8669)

fix:unusedFunction

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored Sep 3, 2024
1 parent 74bd8ed commit 93e4e7d
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 @@ -134,20 +134,6 @@ bool isSamePoint(const geometry_msgs::msg::Point & p1, const geometry_msgs::msg:
return false;
}

// if path points have the same point as target_point, return the index
std::optional<size_t> haveSamePoint(
const PathPointsWithLaneId & path_points, const geometry_msgs::msg::Point & target_point)
{
for (size_t i = 0; i < path_points.size(); i++) {
const auto & path_point = path_points.at(i).point.pose.position;
if (isSamePoint(path_point, target_point)) {
return i;
}
}

return {};
}

// insert path velocity which doesn't exceed original velocity
void insertPathVelocityFromIndexLimited(
const size_t & start_idx, const float velocity_mps, PathPointsWithLaneId & path_points)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ std::vector<geometry_msgs::msg::Point> findLateralSameSidePoints(

bool isSamePoint(const geometry_msgs::msg::Point & p1, const geometry_msgs::msg::Point & p2);

// if path points have the same point as target_point, return the index
std::optional<size_t> haveSamePoint(
const PathPointsWithLaneId & path_points, const geometry_msgs::msg::Point & target_point);

// insert path velocity which doesn't exceed original velocity
void insertPathVelocityFromIndexLimited(
const size_t & start_idx, const float velocity_mps, PathPointsWithLaneId & path_points);
Expand Down

0 comments on commit 93e4e7d

Please sign in to comment.