64
67
const sensor_msgs::CameraInfo::ConstPtr& info)
66
69
CloudPtr input_cloud(new Cloud);
67
71
pcl::fromROSMsg(*cloud, *input_cloud);
68
72
ROS_INFO_STREAM_ONCE("input_cloud: " << *input_cloud);
70
82
// Downsample the point cloud to speed up processing
71
83
target_cloud_.reset(new Cloud);
72
84
pcl::VoxelGrid<PointType> grid;
74
86
grid.setLeafSize(downsampling_grid_size_, downsampling_grid_size_, downsampling_grid_size_);
75
87
grid.filter(*target_cloud_);
76
89
ROS_INFO_STREAM_ONCE("target_cloud: " << *target_cloud_);
78
91
// No foveation yet so pub the same cloud twice