From fba06504e107e563dc97da012808d7279b386f80 Mon Sep 17 00:00:00 2001 From: KacperSynator Date: Sat, 25 Jan 2025 22:32:32 +0100 Subject: [PATCH] fix unused down_sample:voxel_m parameter --- src/calibration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibration.cpp b/src/calibration.cpp index a3418b3..b3206c4 100644 --- a/src/calibration.cpp +++ b/src/calibration.cpp @@ -103,12 +103,12 @@ void Calibrator::ProcessPointcloud(const pcl::PointCloud::Ptr pc pcl::PointCloud::Ptr cloud_tmp(new pcl::PointCloud); pcl::PointCloud::Ptr cloud_tmp_ds(new pcl::PointCloud); - float kLeafSize = 0.1; + const double leafSize = params_.down_sample_voxel; pcl::VoxelGrid filter_map; - filter_map.setLeafSize(kLeafSize, kLeafSize, kLeafSize); + filter_map.setLeafSize(leafSize, leafSize, leafSize); cloud_downsampled->clear(); - pcl::octree::OctreePointCloud octree{1250 * kLeafSize}; + pcl::octree::OctreePointCloud octree{1250.0 * leafSize}; octree.setInputCloud(pc_filtered); octree.addPointsFromInputCloud(); for (auto it = octree.leaf_depth_begin(); it != octree.leaf_depth_end(); ++it) {