@@ -576,61 +576,6 @@ std::vector<Polygon2d> createPathFootPrints(
576
576
return footprints;
577
577
}
578
578
579
- std::string makePathPriorityDebugMessage (
580
- const std::vector<size_t > & sorted_path_indices,
581
- const std::vector<PullOverPath> & pull_over_path_candidates,
582
- const std::map<size_t , size_t > & goal_id_to_index, const GoalCandidates & goal_candidates,
583
- const std::map<size_t , double > & path_id_to_rough_margin_map,
584
- const std::function<bool (const PullOverPath &)> & isSoftMargin,
585
- const std::function<bool(const PullOverPath &)> & isHighCurvature)
586
- {
587
- std::stringstream ss;
588
-
589
- // Unsafe goal and its priority are not visible as debug marker in rviz,
590
- // so exclude unsafe goal from goal_priority
591
- std::map<size_t , int > goal_id_and_priority;
592
- for (size_t i = 0 ; i < goal_candidates.size (); ++i) {
593
- goal_id_and_priority[goal_candidates[i].id ] = goal_candidates[i].is_safe ? i : -1 ;
594
- }
595
-
596
- ss << " \n ---------------------- path priority ----------------------\n " ;
597
- for (size_t i = 0 ; i < sorted_path_indices.size (); ++i) {
598
- const auto & path = pull_over_path_candidates[sorted_path_indices[i]];
599
- // goal_index is same to goal priority including unsafe goal
600
- const int goal_index = static_cast <int >(goal_id_to_index.at (path.goal_id ));
601
- const bool is_safe_goal = goal_candidates[goal_index].is_safe ;
602
- const int goal_priority = goal_id_and_priority[path.goal_id ];
603
-
604
- ss << " path_priority: " << i << " , path_type: " << magic_enum::enum_name (path.type )
605
- << " , path_id: " << path.id << " , goal_id: " << path.goal_id
606
- << " , goal_priority: " << (is_safe_goal ? std::to_string (goal_priority) : " unsafe" )
607
- << " , margin: " << path_id_to_rough_margin_map.at (path.id )
608
- << (isSoftMargin (path) ? " (soft)" : " (hard)" )
609
- << " , curvature: " << path.getParkingPathMaxCurvature ()
610
- << (isHighCurvature (path) ? " (high)" : " (low)" ) << " \n " ;
611
- }
612
- ss << " -----------------------------------------------------------\n " ;
613
- return ss.str ();
614
- }
615
-
616
- lanelet::Points3d combineLanePoints (
617
- const lanelet::Points3d & points, const lanelet::Points3d & points_next)
618
- {
619
- lanelet::Points3d combined_points;
620
- std::unordered_set<lanelet::Id> point_ids;
621
- for (const auto & point : points) {
622
- if (point_ids.insert (point.id ()).second ) {
623
- combined_points.push_back (point);
624
- }
625
- }
626
- for (const auto & point : points_next) {
627
- if (point_ids.insert (point.id ()).second ) {
628
- combined_points.push_back (point);
629
- }
630
- }
631
- return combined_points;
632
- }
633
-
634
579
lanelet::Lanelet createDepartureCheckLanelet (
635
580
const lanelet::ConstLanelets & pull_over_lanes, const route_handler::RouteHandler & route_handler,
636
581
const bool left_side_parking)
0 commit comments