Skip to content

Commit

Permalink
fix(tier4_pcl_extensions): modify build error in rolling (tier4#795)
Browse files Browse the repository at this point in the history
* fix(tier4_pcl_extensions): modify build error in rolling

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and boyali committed Oct 19, 2022
1 parent 396a950 commit 954d3df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@
#ifndef TIER4_PCL_EXTENSIONS__VOXEL_GRID_NEAREST_CENTROID_HPP_
#define TIER4_PCL_EXTENSIONS__VOXEL_GRID_NEAREST_CENTROID_HPP_

#include <pcl/pcl_config.h>

#if PCL_VERSION < PCL_VERSION_CALC(1, 12, 0)
#include <pcl/filters/boost.h>
#endif

#include <pcl/filters/voxel_grid.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/point_types.h>
Expand Down Expand Up @@ -97,8 +102,8 @@ class VoxelGridNearestCentroid : public VoxelGrid<PointT>
typedef typename PointCloud::ConstPtr PointCloudConstPtr;

public:
typedef boost::shared_ptr<VoxelGrid<PointT>> Ptr;
typedef boost::shared_ptr<const VoxelGrid<PointT>> ConstPtr;
typedef pcl::shared_ptr<VoxelGrid<PointT>> Ptr;
typedef pcl::shared_ptr<const VoxelGrid<PointT>> ConstPtr;

/** \brief Simple structure to hold a centroid, covariance and the number of points in a leaf.
* Inverse covariance, eigen vectors and eigen values are precomputed. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
#include <Eigen/Dense>

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

#if PCL_VERSION < PCL_VERSION_CALC(1, 12, 0)
#include <pcl/filters/boost.h>
#endif

#include <limits>
#include <map>
Expand Down

0 comments on commit 954d3df

Please sign in to comment.