File tree 1 file changed +1
-2
lines changed
planning/behavior_velocity_no_stopping_area_module/src
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,6 @@ Polygon2d NoStoppingAreaModule::generateEgoNoStoppingAreaLanePolygon(
302
302
303
303
const int num_ignore_nearest = 1 ; // Do not consider nearest lane polygon
304
304
size_t ego_area_start_idx = closest_idx + num_ignore_nearest;
305
- size_t ego_area_end_idx = ego_area_start_idx;
306
305
// return if area size is not intentional
307
306
if (no_stopping_area_reg_elem_.noStoppingAreas ().size () != 1 ) {
308
307
return ego_area;
@@ -326,7 +325,7 @@ Polygon2d NoStoppingAreaModule::generateEgoNoStoppingAreaLanePolygon(
326
325
}
327
326
double dist_from_area_sum = 0.0 ;
328
327
// decide end idx with extract distance
329
- ego_area_end_idx = ego_area_start_idx;
328
+ size_t ego_area_end_idx = ego_area_start_idx;
330
329
for (size_t i = ego_area_start_idx; i < pp.size () - 1 ; ++i) {
331
330
dist_from_start_sum += tier4_autoware_utils::calcDistance2d (pp.at (i), pp.at (i - 1 ));
332
331
const auto & p = pp.at (i).point .pose .position ;
You can’t perform that action at this time.
0 commit comments