47 output.header = cloud->header;
53 const PointCloudInConstPtr &surface,
54 const IndicesPtr &indices)
57 impl_.setKSearch (k_);
58 impl_.setRadiusSearch (search_radius_);
60 initTree (spatial_locator_type_, tree_, k_);
61 impl_.setSearchMethod (tree_);
64 impl_.setInputCloud (cloud);
65 impl_.setIndices (indices);
66 impl_.setSearchSurface (surface);
69 impl_.compute (output);
73 output.header = cloud->header;
74 pub_output_.publish (
ros_ptr(output.makeShared ()));