From 576c9941841fe497d965c04abd2308b734961e79 Mon Sep 17 00:00:00 2001 From: anhnv3991 Date: Mon, 25 Mar 2024 16:36:20 +0700 Subject: [PATCH] Removed unused include and comments Signed-off-by: anhnv3991 --- include/multigrid_pclomp/multi_voxel_grid_covariance_omp.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/multigrid_pclomp/multi_voxel_grid_covariance_omp.h b/include/multigrid_pclomp/multi_voxel_grid_covariance_omp.h index f62d4f01..31196500 100644 --- a/include/multigrid_pclomp/multi_voxel_grid_covariance_omp.h +++ b/include/multigrid_pclomp/multi_voxel_grid_covariance_omp.h @@ -66,10 +66,6 @@ #include #include #include -#include -#include -#include -#include namespace pclomp { /** \brief A searchable voxel structure containing the mean and covariance of the data. @@ -315,6 +311,8 @@ class MultiVoxelGridCovariance : public pcl::VoxelGrid { std::vector getCurrentMapIDs() const; void setThreadNum(int thread_num) { + sync(); + if(thread_num <= 0) { thread_num_ = 1; } @@ -338,7 +336,6 @@ class MultiVoxelGridCovariance : public pcl::VoxelGrid { // Loop until an idle thread is found while(true) { - // gettimeofday(&start, NULL); // Return immediately if a thread that has not been given a job is found if(!thread_futs_[tid].valid()) { last_check_tid_ = tid;