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

‘removeNaNFromPointCloud’ is not a member of ‘pcl’

asked 2012-10-12 11:11:50 -0500

Muadibz gravatar image

When I try to do rosmake on my package I get the following error:

‘removeNaNFromPointCloud’ is not a member of ‘pcl’

However I can see it in the documentation: here


void cloud_cb (sensor_msgs::PointCloud2 input) {
  pcl::PointCloud<pcl::PointXYZ> in_cloud;
  pcl::PointCloud<pcl::PointXYZ> out_cloud;
  std::vector<int> indicies;
  pcl::fromROSMsg(input, in_cloud);
  pcl::fromROSMsg(input, out_cloud);
  pcl::removeNaNFromPointCloud(in_cloud, out_cloud, indicies);

Anyone know why this is currently saying it's not part of the pcl?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-10-12 13:58:54 -0500

Have you included this?:

#include <pcl/filters/filter.h>
edit flag offensive delete link more

answered 2013-03-12 00:16:53 -0500

Anusha gravatar image

try pcl::removeNaNFromPointCloud(*in_cloud, *out_cloud, indicies);

edit flag offensive delete link more

Question Tools


Asked: 2012-10-12 11:11:50 -0500

Seen: 4,878 times

Last updated: Mar 12 '13