ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

void callback(const pcl::PointCloud<pcl::pointxyz>::ConstPtr& inputCloud ) {

pcl::PointCloud<pcl::PointXYZ>::Ptr outputCloud(new pcl::PointCloud<pcl::PointXYZ>);
vector<int> indices;
pcl::removeNaNFromPointCloud(*inputCloud,*outputCloud, indices);

} I found this works fine, also please check PCL library in your CmakeLists.txt.

click to hide/show revision 2
No.2 Revision

void callback(const pcl::PointCloud<pcl::pointxyz>::ConstPtr& inputCloud ) {

 pcl::PointCloud<pcl::PointXYZ>::Ptr outputCloud(new pcl::PointCloud<pcl::PointXYZ>);
 vector<int> indices;
 pcl::removeNaNFromPointCloud(*inputCloud,*outputCloud, indices);
}

} I found this works fine, also please check PCL library in your CmakeLists.txt.

click to hide/show revision 3
No.3 Revision

void callback(const pcl::PointCloud<pcl::pointxyz>::ConstPtr& inputCloud ) {I found this works fine, also please check PCL library in your CmakeLists.txt.

void callback(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr& inputCloud )
{

    pcl::PointCloud<pcl::PointXYZ>::Ptr outputCloud(new pcl::PointCloud<pcl::PointXYZ>);
    vector<int> indices;
    pcl::removeNaNFromPointCloud(*inputCloud,*outputCloud, indices);
}

I found this works fine, also please check PCL library in your CmakeLists.txt.