Skip to content

Commit

Permalink
Optimize includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvieth committed Aug 19, 2022
1 parent 44fea0a commit ca1721c
Show file tree
Hide file tree
Showing 35 changed files with 10 additions and 43 deletions.
1 change: 0 additions & 1 deletion filters/src/voxel_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*
*/

#include <iostream>
#include <limits>
#include <pcl/common/io.h>
#include <pcl/filters/impl/voxel_grid.hpp>
Expand Down
3 changes: 2 additions & 1 deletion geometry/include/pcl/geometry/mesh_circulators.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@

#pragma once

#include <pcl/geometry/boost.h>
#include <pcl/geometry/mesh_indices.h>

#include <boost/operators.hpp>

////////////////////////////////////////////////////////////////////////////////
// VertexAroundVertexCirculator
////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion geometry/include/pcl/geometry/mesh_circulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def __init__ (self, value_prefix, value_type, around_type, current_he, deref, in
f.write ('#ifndef PCL_GEOMETRY_MESH_CIRCULATORS_H\n')
f.write ('#define PCL_GEOMETRY_MESH_CIRCULATORS_H\n\n')

f.write ('#include <pcl/geometry/boost.h>\n')
f.write ('#include <pcl/geometry/mesh_indices.h>\n\n')
f.write ('#include <boost/operators.hpp>\n\n')

for c in classes:

Expand Down
2 changes: 1 addition & 1 deletion io/include/pcl/io/low_level_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ using ssize_t = SSIZE_T;
# include <sys/mman.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <sys/fcntl.h>
# include <fcntl.h>
# include <cerrno>
#endif
#include <cstddef>
Expand Down
3 changes: 0 additions & 3 deletions io/src/image_yuv422.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@

#include <pcl/io/io_exception.h>

#include <sstream>
#include <iostream>

#define CLIP_CHAR(c) static_cast<unsigned char> ((c)>255?255:(c)<0?0:(c))

using pcl::io::FrameWrapper;
Expand Down
1 change: 0 additions & 1 deletion io/src/openni_camera/openni_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <pcl/io/openni_camera/openni_depth_image.h>
#include <pcl/io/openni_camera/openni_ir_image.h>
#include <pcl/io/openni_camera/openni_image.h>
#include <map>
#include <vector>
#include "XnVersion.h"

Expand Down
3 changes: 0 additions & 3 deletions ml/include/pcl/ml/branch_estimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
#include <pcl/common/utils.h> // pcl::utils::ignore
#include <pcl/ml/stats_estimator.h>

#include <istream>
#include <ostream>

namespace pcl {

/** Interface for branch estimators. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <ctime>

// Boost
#include <pcl/outofcore/boost.h>
#include <boost/random/bernoulli_distribution.hpp>
#include <boost/random/uniform_int.hpp>
#include <boost/uuid/uuid_io.hpp>
Expand Down
2 changes: 1 addition & 1 deletion outofcore/include/pcl/outofcore/metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#pragma once

#include <pcl/outofcore/boost.h>
#include <boost/filesystem.hpp>
#include <vector>
#include <ostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@

#pragma once

#include <boost/filesystem.hpp>

#include <mutex>
#include <vector>

#include <pcl/outofcore/boost.h>

namespace pcl
{
namespace outofcore
Expand Down
1 change: 0 additions & 1 deletion outofcore/include/pcl/outofcore/octree_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

#pragma once

#include <pcl/outofcore/boost.h>
#include <pcl/common/io.h>

//outofcore classes
Expand Down
1 change: 0 additions & 1 deletion outofcore/include/pcl/outofcore/octree_base_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <pcl/common/io.h>
#include <pcl/PCLPointCloud2.h>

#include <pcl/outofcore/boost.h>
#include <pcl/outofcore/octree_base.h>
#include <pcl/outofcore/octree_disk_container.h>
#include <pcl/outofcore/outofcore_node_data.h>
Expand Down
1 change: 0 additions & 1 deletion outofcore/include/pcl/outofcore/octree_disk_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <boost/uuid/random_generator.hpp>

#include <pcl/common/utils.h> // pcl::utils::ignore
#include <pcl/outofcore/boost.h>
#include <pcl/outofcore/octree_abstract_node_container.h>
#include <pcl/io/pcd_io.h>
#include <pcl/PCLPointCloud2.h>
Expand Down
1 change: 0 additions & 1 deletion outofcore/include/pcl/outofcore/octree_ram_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <mutex>
#include <random>

#include <pcl/outofcore/boost.h>
#include <pcl/outofcore/octree_abstract_node_container.h>

namespace pcl
Expand Down
1 change: 0 additions & 1 deletion outofcore/include/pcl/outofcore/outofcore_base_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

#include <pcl/memory.h>
#include <pcl/pcl_macros.h>
#include <pcl/outofcore/boost.h>
#include <pcl/outofcore/cJSON.h>

#include <pcl/outofcore/metadata.h>
Expand Down
3 changes: 2 additions & 1 deletion outofcore/include/pcl/outofcore/outofcore_node_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@

#include <pcl/memory.h>
#include <pcl/pcl_macros.h>
#include <pcl/outofcore/boost.h>
#include <pcl/outofcore/cJSON.h>

#include <pcl/common/eigen.h>

#include <boost/filesystem.hpp>

#include <ostream>

namespace pcl
Expand Down
2 changes: 0 additions & 2 deletions outofcore/src/visualization/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
#include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkCameraActor.h>
#include <vtkHull.h>
#include <vtkPlanes.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkSmartPointer.h>
Expand Down
1 change: 0 additions & 1 deletion outofcore/src/visualization/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <pcl/outofcore/visualization/grid.h>

// VTK
#include <vtkVersion.h>
#include <vtkActor.h>
#include <vtkRectilinearGrid.h>
#include <vtkDoubleArray.h>
Expand Down
1 change: 0 additions & 1 deletion recognition/include/pcl/recognition/implicit_shape_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <pcl/point_types.h>
#include <pcl/point_representation.h>
#include <pcl/features/feature.h>
#include <pcl/features/spin_image.h>
#include <pcl/kdtree/kdtree_flann.h> // for KdTreeFLANN

namespace pcl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <pcl/common/common.h>
#include <pcl/common/io.h>
#include <pcl/filters/morphological_filter.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/segmentation/approximate_progressive_morphological_filter.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <flann/algorithms/linear_index.h> // for flann::LinearIndexParams
#include <flann/util/matrix.h> // for flann::Matrix

#include <pcl/features/normal_3d.h> // for NormalEstimation
#include <pcl/segmentation/unary_classifier.h>
#include <pcl/common/io.h>

Expand Down
1 change: 0 additions & 1 deletion segmentation/include/pcl/segmentation/unary_classifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <pcl/point_types.h>

#include <pcl/features/fpfh.h>
#include <pcl/features/normal_3d.h>

#include <pcl/ml/kmeans.h>

Expand Down
2 changes: 0 additions & 2 deletions segmentation/src/min_cut_segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
*
*/

#include <boost/version.hpp>

#include <pcl/point_types.h>
#include <pcl/impl/instantiate.hpp>
#include <pcl/segmentation/min_cut_segmentation.h>
Expand Down
1 change: 0 additions & 1 deletion surface/include/pcl/surface/impl/poisson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#define MEMORY_ALLOCATOR_BLOCK_SIZE 1<<12

#include <cstdarg>
#include <string>

using namespace pcl;

Expand Down
1 change: 0 additions & 1 deletion tools/icp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@

#include <string>
#include <iostream>
#include <fstream>
#include <vector>

using PointType = pcl::PointXYZ;
Expand Down
1 change: 0 additions & 1 deletion tools/icp2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

#include <string>
#include <iostream>
#include <fstream>
#include <vector>

using PointType = pcl::PointXYZ;
Expand Down
1 change: 0 additions & 1 deletion tools/mesh_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <pcl/io/pcd_io.h>
#include <pcl/io/vtk_lib_io.h>
#include <vtkVersion.h>
#include <vtkPLYReader.h>
#include <vtkOBJReader.h>
#include <vtkTriangle.h>
#include <vtkTriangleFilter.h>
Expand Down
1 change: 0 additions & 1 deletion tools/ndt2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include <string>
#include <iostream>
#include <fstream>
#include <vector>

using PointType = pcl::PointXYZ;
Expand Down
1 change: 0 additions & 1 deletion tools/ndt3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include <string>
#include <iostream>
#include <fstream>
#include <vector>


Expand Down
1 change: 0 additions & 1 deletion tools/obj_rec_ransac_model_opps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include <vtkHedgeHog.h>
#include <cstdio>
#include <thread>
#include <vector>

using namespace std::chrono_literals;
using namespace pcl;
Expand Down
1 change: 0 additions & 1 deletion tools/obj_rec_ransac_orr_octree_zprojection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
#include <vtkCubeSource.h>
#include <vtkPointData.h>
#include <vector>
#include <list>
#include <cstdlib>
#include <cstring>
#include <cstdio>
Expand Down
1 change: 0 additions & 1 deletion tools/obj_rec_ransac_result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <vtkRenderWindow.h>
#include <vtkTransform.h>
#include <cstdio>
#include <vector>
#include <list>
#include <thread>

Expand Down
1 change: 0 additions & 1 deletion tools/oni2pcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include <pcl/point_types.h>
#include <pcl/io/oni_grabber.h>
#include <pcl/io/pcd_io.h>
#include <vector>

using namespace pcl;
using namespace pcl::console;
Expand Down
3 changes: 0 additions & 3 deletions visualization/src/cloud_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/memory.h>

#include <vtkOrientationMarkerWidget.h>
#include <vtkRenderWindowInteractor.h>

#include <mutex>
#include <thread>

Expand Down
1 change: 0 additions & 1 deletion visualization/src/histogram_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <vtkVersion.h>
#include <vtkDoubleArray.h>
#include <vtkTextProperty.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkDataObject.h>
#include <vtkProperty2D.h>
Expand Down

0 comments on commit ca1721c

Please sign in to comment.