Skip to content

Commit

Permalink
Cleanup octree includes
Browse files Browse the repository at this point in the history
Remove unnecessary includes and fix compilation error in
OctreePointcloudAdjacency.
  • Loading branch information
stefanbuettner committed Jun 20, 2016
1 parent c55a8d9 commit 32e6502
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 63 deletions.
1 change: 0 additions & 1 deletion features/include/pcl/features/impl/gfpfh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#define PCL_FEATURES_IMPL_GFPFH_H_

#include <pcl/features/gfpfh.h>
#include <pcl/octree/octree.h>
#include <pcl/octree/octree_search.h>
#include <pcl/common/eigen.h>

Expand Down
2 changes: 1 addition & 1 deletion filters/include/pcl/filters/impl/morphological_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include <pcl/common/common.h>
#include <pcl/common/io.h>
#include <pcl/filters/morphological_filter.h>
#include <pcl/octree/octree.h>
#include <pcl/octree/octree_search.h>

///////////////////////////////////////////////////////////////////////////////////////////
template <typename PointT> void
Expand Down
2 changes: 0 additions & 2 deletions octree/include/pcl/octree/impl/octree_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
#include <vector>

#include <pcl/impl/instantiate.hpp>
#include <pcl/point_types.h>
#include <pcl/octree/octree.h>

namespace pcl
{
Expand Down
5 changes: 0 additions & 5 deletions octree/include/pcl/octree/impl/octree_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@
#ifndef PCL_OCTREE_ITERATOR_HPP_
#define PCL_OCTREE_ITERATOR_HPP_

#include <vector>
#include <assert.h>

#include <pcl/common/common.h>

namespace pcl
{
namespace octree
Expand Down
3 changes: 1 addition & 2 deletions octree/include/pcl/octree/impl/octree_pointcloud.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@
#ifndef PCL_OCTREE_POINTCLOUD_HPP_
#define PCL_OCTREE_POINTCLOUD_HPP_

#include <vector>
#include <assert.h>

#include <pcl/common/common.h>

#include <pcl/octree/impl/octree_base.hpp>

//////////////////////////////////////////////////////////////////////////////////////////////
template<typename PointT, typename LeafContainerT, typename BranchContainerT, typename OctreeT>
Expand Down
11 changes: 10 additions & 1 deletion octree/include/pcl/octree/impl/octree_pointcloud_adjacency.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@
#ifndef PCL_OCTREE_POINTCLOUD_ADJACENCY_HPP_
#define PCL_OCTREE_POINTCLOUD_ADJACENCY_HPP_

#include <pcl/octree/octree_pointcloud_adjacency.h>
#include <pcl/console/print.h>
#include <pcl/common/geometry.h>
/*
* OctreePointCloudAdjacency is not precompiled, since it's used in other
* parts of PCL with custom LeafContainers. So if PCL_NO_PRECOMPILE is NOT
* used, octree_pointcloud_adjacency.h includes this file but octree_pointcloud.h
* would not include the implementation because it's precompiled. So we need to
* include it here "manually".
*/
#include <pcl/octree/impl/octree_pointcloud.hpp>

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template<typename PointT, typename LeafContainerT, typename BranchContainerT>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
#ifndef PCL_OCTREE_VOXELCENTROID_HPP
#define PCL_OCTREE_VOXELCENTROID_HPP

#include <pcl/octree/octree_pointcloud_voxelcentroid.h>
/*
* OctreePointCloudAdjacency is not precompiled, since it's used in other
* parts of PCL with custom LeafContainers. So if PCL_NO_PRECOMPILE is NOT
* used, octree_pointcloud_adjacency.h includes this file but octree_pointcloud.h
* would not include the implementation because it's precompiled. So we need to
* include it here "manually".
*/
#include <pcl/octree/impl/octree_pointcloud.hpp>

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template<typename PointT, typename LeafContainerT, typename BranchContainerT> bool
Expand Down
4 changes: 0 additions & 4 deletions octree/include/pcl/octree/impl/octree_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
#ifndef PCL_OCTREE_SEARCH_IMPL_H_
#define PCL_OCTREE_SEARCH_IMPL_H_

#include <pcl/point_cloud.h>
#include <pcl/point_types.h>

#include <pcl/common/common.h>
#include <assert.h>


Expand Down
10 changes: 4 additions & 6 deletions octree/include/pcl/octree/octree2buf_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@

#include <vector>

#include "octree_nodes.h"
#include "octree_container.h"
#include "octree_key.h"
#include "octree_iterator.h"
#include <pcl/octree/octree_nodes.h>
#include <pcl/octree/octree_container.h>
#include <pcl/octree/octree_key.h>
#include <pcl/octree/octree_iterator.h>

#include <stdio.h>
#include <string.h>

namespace pcl
{
Expand Down
9 changes: 4 additions & 5 deletions octree/include/pcl/octree/octree_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@
#ifndef PCL_OCTREE_TREE_BASE_H
#define PCL_OCTREE_TREE_BASE_H

#include <cstddef>
#include <vector>

#include "octree_nodes.h"
#include "octree_container.h"
#include "octree_key.h"
#include "octree_iterator.h"
#include <pcl/octree/octree_nodes.h>
#include <pcl/octree/octree_container.h>
#include <pcl/octree/octree_key.h>
#include <pcl/octree/octree_iterator.h>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef PCL_OCTREE_CONTAINER_H
#define PCL_OCTREE_CONTAINER_H

#include <string.h>
//#include <string.h>
#include <vector>
#include <cstddef>

Expand Down
7 changes: 2 additions & 5 deletions octree/include/pcl/octree/octree_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@
#include <vector>
#include <deque>

#include "octree_nodes.h"
#include "octree_key.h"

#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/octree/octree_nodes.h>
#include <pcl/octree/octree_key.h>

#include <iterator>

Expand Down
2 changes: 0 additions & 2 deletions octree/include/pcl/octree/octree_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
#ifndef PCL_OCTREE_KEY_H
#define PCL_OCTREE_KEY_H

#include <string>

namespace pcl
{
namespace octree
Expand Down
3 changes: 0 additions & 3 deletions octree/include/pcl/octree/octree_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
#include <cstddef>

#include <assert.h>
#include <cstring>

#include <string.h>

#include <Eigen/Core>

Expand Down
6 changes: 1 addition & 5 deletions octree/include/pcl/octree/octree_pointcloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,12 @@
#ifndef PCL_OCTREE_POINTCLOUD_H
#define PCL_OCTREE_POINTCLOUD_H

#include "octree_base.h"
//#include "octree2buf_base.h"
#include <pcl/octree/octree_base.h>

#include <pcl/point_cloud.h>
#include <pcl/point_types.h>

#include <queue>
#include <vector>
#include <algorithm>
#include <iostream>

namespace pcl
{
Expand Down
4 changes: 1 addition & 3 deletions octree/include/pcl/octree/octree_pointcloud_adjacency.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
#ifndef PCL_OCTREE_POINTCLOUD_ADJACENCY_H_
#define PCL_OCTREE_POINTCLOUD_ADJACENCY_H_

#include <pcl/console/print.h>
#include <pcl/common/geometry.h>
#include <pcl/octree/boost.h>
#include <pcl/octree/octree_impl.h>
#include <pcl/octree/octree_pointcloud.h>
#include <pcl/octree/octree_pointcloud_adjacency_container.h>

#include <set>
Expand Down
3 changes: 2 additions & 1 deletion octree/include/pcl/octree/octree_pointcloud_changedetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
#ifndef PCL_OCTREE_CHANGEDETECTOR_H
#define PCL_OCTREE_CHANGEDETECTOR_H

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>
#include <pcl/octree/octree2buf_base.h>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_pointcloud_density.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef PCL_OCTREE_DENSITY_H
#define PCL_OCTREE_DENSITY_H

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_pointcloud_occupancy.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef PCL_OCTREE_OCCUPANCY_H
#define PCL_OCTREE_OCCUPANCY_H

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_pointcloud_pointvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef PCL_OCTREE_POINT_VECTOR_H
#define PCL_OCTREE_POINT_VECTOR_H

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_pointcloud_singlepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef PCL_OCTREE_SINGLE_POINT_H
#define PCL_OCTREE_SINGLE_POINT_H

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
6 changes: 1 addition & 5 deletions octree/include/pcl/octree/octree_pointcloud_voxelcentroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#ifndef PCL_OCTREE_VOXELCENTROID_H
#define PCL_OCTREE_VOXELCENTROID_H

#include "octree_pointcloud.h"

#include <pcl/common/point_operators.h>
#include <pcl/point_types.h>
#include <pcl/register_point_struct.h>
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
3 changes: 1 addition & 2 deletions octree/include/pcl/octree/octree_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@
#define PCL_OCTREE_SEARCH_H_

#include <pcl/point_cloud.h>
#include <pcl/point_types.h>

#include "octree_pointcloud.h"
#include <pcl/octree/octree_pointcloud.h>

namespace pcl
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define PCL_SEGMENTATION_IMPL_LCCP_SEGMENTATION_HPP_

#include <pcl/segmentation/lccp_segmentation.h>
#include <pcl/common/common.h>


//////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <pcl/pcl_base.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/octree/octree.h>
#include <pcl/octree/octree_search.h>
#include <pcl/octree/octree_pointcloud_adjacency.h>
#include <pcl/search/search.h>
#include <pcl/segmentation/boost.h>
Expand Down
2 changes: 1 addition & 1 deletion segmentation/src/supervoxel_clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ template class pcl::octree::OctreePointCloudAdjacencyContainer<pcl::PointXYZRGBA

template class pcl::octree::OctreePointCloudAdjacency<pcl::PointXYZ, AdjacencyContainerT>;
template class pcl::octree::OctreePointCloudAdjacency<pcl::PointXYZRGB, AdjacencyContainerRGBT>;
template class pcl::octree::OctreePointCloudAdjacency<pcl::PointXYZRGBA, AdjacencyContainerRGBAT>;
template class pcl::octree::OctreePointCloudAdjacency<pcl::PointXYZRGBA, AdjacencyContainerRGBAT>;
3 changes: 1 addition & 2 deletions tracking/include/pcl/tracking/particle_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
#include <pcl/tracking/tracker.h>
#include <pcl/tracking/coherence.h>
#include <pcl/filters/passthrough.h>
#include <pcl/octree/octree.h>
#include <pcl/octree/octree_pointcloud_changedetector.h>

#include <Eigen/Dense>

namespace pcl
{

namespace tracking
{
/** \brief @b ParticleFilterTracker tracks the PointCloud which is given by
Expand Down

0 comments on commit 32e6502

Please sign in to comment.