Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_behavior_velocity_run_out_module): fix unusedFunction #8669

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading