diff --git a/src/mcl_3dl.cpp b/src/mcl_3dl.cpp index d772a76b..0d836896 100644 --- a/src/mcl_3dl.cpp +++ b/src/mcl_3dl.cpp @@ -684,7 +684,8 @@ class mcl_3dl_node pc_local_beam->height = pc_local_beam->points.size(); pc_local_beam = random_sample(pc_local_beam, static_cast(params.num_points_beam)); - assert(pc_local_beam->points.size() > 0 && pc_local->points.size() > 0); + assert(pc_local_beam->points.size() == params.num_points_beam && + pc_local->points.size() == params.num_points); pcl::PointCloud::Ptr pc_particle(new pcl::PointCloud); pcl::PointCloud::Ptr pc_particle_beam(new pcl::PointCloud);