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_path_start_planner_module): fix unusedFunction #8659

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ PathWithLaneId getBackwardPath(
const Pose & current_pose, const Pose & backed_pose, const double velocity);
lanelet::ConstLanelets getPullOutLanes(
const std::shared_ptr<const PlannerData> & planner_data, const double backward_length);
Pose getBackedPose(
const Pose & current_pose, const double & yaw_shoulder_lane, const double & back_distance);
std::optional<PathWithLaneId> extractCollisionCheckSection(
const PullOutPath & path, const double collision_check_distance_from_end);
} // namespace autoware::behavior_path_planner::start_planner_utils
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "autoware/behavior_path_planner_common/utils/path_safety_checker/objects_filtering.hpp"
#include "autoware/behavior_path_planner_common/utils/path_safety_checker/path_safety_checker_parameters.hpp"
#include "autoware/behavior_path_planner_common/utils/path_utils.hpp"
#include "autoware/behavior_path_start_planner_module/debug.hpp"
#include "autoware/behavior_path_start_planner_module/util.hpp"
#include "autoware/motion_utils/trajectory/trajectory.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ PathWithLaneId getBackwardPath(
return backward_path;
}

Pose getBackedPose(
const Pose & current_pose, const double & yaw_shoulder_lane, const double & back_distance)
{
Pose backed_pose;
backed_pose = current_pose;
backed_pose.position.x -= std::cos(yaw_shoulder_lane) * back_distance;
backed_pose.position.y -= std::sin(yaw_shoulder_lane) * back_distance;

return backed_pose;
}

lanelet::ConstLanelets getPullOutLanes(
const std::shared_ptr<const PlannerData> & planner_data, const double backward_length)
{
Expand All @@ -103,6 +92,7 @@ lanelet::ConstLanelets getPullOutLanes(
/*forward_only_in_route*/ true);
}

// cppcheck-suppress unusedFunction
std::optional<PathWithLaneId> extractCollisionCheckSection(
const PullOutPath & path, const double collision_check_distance_from_end)
{
Expand Down
Loading