Skip to content

Commit

Permalink
fix error, out of range
Browse files Browse the repository at this point in the history
Signed-off-by: Yamato Ando <[email protected]>
  • Loading branch information
YamatoAndo authored and h-ohta committed Jan 9, 2025
1 parent 305d306 commit c5a8634
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ std::vector<landmark_manager::Landmark> LidarMarkerLocalizer::detect_landmarks(

// for each ring
for (const pcl::PointCloud<autoware_point_types::PointXYZIRADRT> & one_ring : ring_points) {
if (one_ring.empty()) {
continue;
}

std::vector<double> intensity_sum(bin_num, 0.0);
std::vector<int> intensity_num(bin_num, 0);
std::vector<double> average_intensity(bin_num, 0.0);
Expand Down

0 comments on commit c5a8634

Please sign in to comment.