From d8543876ef1be866f80d3766d0407d993b278e3b Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Tue, 24 Dec 2024 11:02:41 +0900 Subject: [PATCH 1/2] fix(autoware_behavior_path_goal_planner_module): remove unused function plot_goal_candidates() Signed-off-by: Ryuta Kambe --- .../examples/plot_map_case2.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case2.cpp b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case2.cpp index 102e5ef53b164..f56d7514c6e6b 100644 --- a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case2.cpp +++ b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case2.cpp @@ -134,20 +134,6 @@ void plot_goal_candidate( Kwargs("angles"_a = "xy", "scale_units"_a = "xy", "scale"_a = 2.0)); } -void plot_goal_candidates( - matplotlibcpp17::axes::Axes & axes, const GoalCandidates & goals, - const std::map & goal_id2prio, - const autoware::universe_utils::LinearRing2d & local_footprint, - const std::string & color = "green") -{ - for (const auto & goal : goals) { - const auto it = goal_id2prio.find(goal.id); - if (it != goal_id2prio.end()) { - plot_goal_candidate(axes, goal, it->second, local_footprint, color); - } - } -} - void plot_path_with_lane_id( matplotlibcpp17::axes::Axes & axes, const PathWithLaneId & path, const std::string & color = "red", const std::string & label = "", const double linewidth = 1.0) @@ -607,8 +593,6 @@ int main(int argc, char ** argv) // plot_lanelet(ax3, lanelet); } - // plot_goal_candidates(ax1, goal_candidates, footprint); - // plot_path_with_lane_id(ax2, reference_path.path, "green", "reference_path"); const auto start = std::chrono::steady_clock::now(); From 671a6faa25442e70117d7f29a5d70c413e21afd2 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Tue, 24 Dec 2024 11:03:53 +0900 Subject: [PATCH 2/2] fix(autoware_behavior_path_goal_planner_module): remove unused function plot_goal_candidates() Signed-off-by: Ryuta Kambe --- .../examples/plot_map_case1.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case1.cpp b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case1.cpp index 56e207c160873..7e07a011dc4ef 100644 --- a/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case1.cpp +++ b/planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/examples/plot_map_case1.cpp @@ -135,20 +135,6 @@ void plot_goal_candidate( Kwargs("angles"_a = "xy", "scale_units"_a = "xy", "scale"_a = 2.0)); } -void plot_goal_candidates( - matplotlibcpp17::axes::Axes & axes, const GoalCandidates & goals, - const std::map & goal_id2prio, - const autoware::universe_utils::LinearRing2d & local_footprint, - const std::string & color = "green") -{ - for (const auto & goal : goals) { - const auto it = goal_id2prio.find(goal.id); - if (it != goal_id2prio.end()) { - plot_goal_candidate(axes, goal, it->second, local_footprint, color); - } - } -} - void plot_path_with_lane_id( matplotlibcpp17::axes::Axes & axes, const PathWithLaneId & path, const std::string & color = "red", const std::string & label = "", const double linewidth = 1.0) @@ -607,8 +593,6 @@ int main(int argc, char ** argv) // plot_lanelet(ax3, lanelet); } - // plot_goal_candidates(ax1, goal_candidates, footprint); - // plot_path_with_lane_id(ax2, reference_path.path, "green", "reference_path"); const auto start = std::chrono::steady_clock::now();