@@ -117,7 +117,8 @@ static std::optional<size_t> insertPointIndex(
117
117
}
118
118
119
119
bool hasLaneIds (
120
- const autoware_auto_planning_msgs::msg::PathPointWithLaneId & p, const std::set<int > & ids)
120
+ const autoware_auto_planning_msgs::msg::PathPointWithLaneId & p,
121
+ const std::set<lanelet::Id> & ids)
121
122
{
122
123
for (const auto & pid : p.lane_ids ) {
123
124
if (ids.find (pid) != ids.end ()) {
@@ -128,7 +129,7 @@ bool hasLaneIds(
128
129
}
129
130
130
131
std::optional<std::pair<size_t , size_t >> findLaneIdsInterval (
131
- const autoware_auto_planning_msgs::msg::PathWithLaneId & p, const std::set<int > & ids)
132
+ const autoware_auto_planning_msgs::msg::PathWithLaneId & p, const std::set<lanelet::Id > & ids)
132
133
{
133
134
bool found = false ;
134
135
size_t start = 0 ;
@@ -684,7 +685,7 @@ mergeLaneletsByTopologicalSort(
684
685
IntersectionLanelets getObjectiveLanelets (
685
686
lanelet::LaneletMapConstPtr lanelet_map_ptr, lanelet::routing::RoutingGraphPtr routing_graph_ptr,
686
687
const lanelet::ConstLanelet assigned_lanelet, const lanelet::ConstLanelets & lanelets_on_path,
687
- const std::set<int > & associative_ids, const double detection_area_length,
688
+ const std::set<lanelet::Id > & associative_ids, const double detection_area_length,
688
689
const double occlusion_detection_area_length, const bool consider_wrong_direction_vehicle)
689
690
{
690
691
const auto turn_direction = assigned_lanelet.attributeOr (" turn_direction" , " else" );
@@ -1098,7 +1099,7 @@ std::vector<lanelet::ConstLineString3d> generateDetectionLaneDivisions(
1098
1099
}
1099
1100
1100
1101
std::optional<InterpolatedPathInfo> generateInterpolatedPath (
1101
- const int lane_id, const std::set<int > & associative_lane_ids,
1102
+ const lanelet::Id lane_id, const std::set<lanelet::Id > & associative_lane_ids,
1102
1103
const autoware_auto_planning_msgs::msg::PathWithLaneId & input_path, const double ds,
1103
1104
const rclcpp::Logger logger)
1104
1105
{
@@ -1315,7 +1316,7 @@ void cutPredictPathWithDuration(
1315
1316
TimeDistanceArray calcIntersectionPassingTime (
1316
1317
const autoware_auto_planning_msgs::msg::PathWithLaneId & path,
1317
1318
const std::shared_ptr<const PlannerData> & planner_data, const lanelet::Id lane_id,
1318
- const std::set<int > & associative_ids, const size_t closest_idx,
1319
+ const std::set<lanelet::Id > & associative_ids, const size_t closest_idx,
1319
1320
const size_t last_intersection_stop_line_candidate_idx, const double time_delay,
1320
1321
const double intersection_velocity, const double minimum_ego_velocity,
1321
1322
const bool use_upstream_velocity, const double minimum_upstream_velocity,
@@ -1496,7 +1497,7 @@ void IntersectionLanelets::update(
1496
1497
}
1497
1498
1498
1499
static lanelet::ConstLanelets getPrevLanelets (
1499
- const lanelet::ConstLanelets & lanelets_on_path, const std::set<int > & associative_ids)
1500
+ const lanelet::ConstLanelets & lanelets_on_path, const std::set<lanelet::Id > & associative_ids)
1500
1501
{
1501
1502
lanelet::ConstLanelets previous_lanelets;
1502
1503
for (const auto & ll : lanelets_on_path) {
@@ -1541,7 +1542,8 @@ lanelet::ConstLanelet generatePathLanelet(
1541
1542
1542
1543
std::optional<PathLanelets> generatePathLanelets (
1543
1544
const lanelet::ConstLanelets & lanelets_on_path,
1544
- const util::InterpolatedPathInfo & interpolated_path_info, const std::set<int > & associative_ids,
1545
+ const util::InterpolatedPathInfo & interpolated_path_info,
1546
+ const std::set<lanelet::Id> & associative_ids,
1545
1547
const lanelet::CompoundPolygon3d & first_conflicting_area,
1546
1548
const std::vector<lanelet::CompoundPolygon3d> & conflicting_areas,
1547
1549
const std::optional<lanelet::CompoundPolygon3d> & first_attention_area,
0 commit comments