ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
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.
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.