File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 2.8.3)
2
2
project (pointcloud_tools )
3
3
4
4
find_package (catkin REQUIRED COMPONENTS roscpp pcl_ros std_msgs sensor_msgs )
5
- find_package (pcl REQUIRED )
5
+ find_package (PCL REQUIRED )
6
6
7
7
catkin_package ()
8
8
9
- include_directories (/usr/include/vtk-5.8 ${catkin_INCLUDE_DIRS} ${pcl_INCLUDE_DIRS } )
9
+ include_directories (/usr/include/vtk-5.8 ${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS } )
10
10
11
11
add_executable (pointcloud_mapper src/pointcloud_mapper.cpp )
12
12
add_executable (pointcloud_filtering src/pointcloud_filtering.cpp )
Original file line number Diff line number Diff line change 46
46
#include < pcl_ros/point_cloud.h>
47
47
#include < pcl/visualization/pcl_visualizer.h>
48
48
#include < pcl/features/feature.h>
49
+ #include < pcl/common/centroid.h>
49
50
50
51
using pcl::visualization::PointCloudColorHandlerGenericField;
51
52
@@ -79,7 +80,7 @@ void updateVisualization()
79
80
80
81
ros::WallDuration d (0.01 );
81
82
bool rgb = false ;
82
- std::vector<sensor_msgs::PointField > fields;
83
+ std::vector<pcl::PCLPointField > fields;
83
84
84
85
// Create the visualizer
85
86
pcl::visualization::PCLVisualizer viewer (" Point Cloud Viewer" );
You can’t perform that action at this time.
0 commit comments