38 #ifndef PCL_ROS_FILTERS_PROJECT_INLIERS_H_ 39 #define PCL_ROS_FILTERS_PROJECT_INLIERS_H_ 42 #include <pcl/filters/project_inliers.h> 71 pcl::PCLPointCloud2::Ptr pcl_input(
new pcl::PCLPointCloud2);
73 impl_.setInputCloud (pcl_input);
74 impl_.setIndices (indices);
75 pcl::ModelCoefficients::Ptr pcl_model(
new pcl::ModelCoefficients);
77 impl_.setModelCoefficients (pcl_model);
78 pcl::PCLPointCloud2 pcl_output;
79 impl_.filter (pcl_output);
94 pcl::ProjectInliers<pcl::PCLPointCloud2>
impl_;
110 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
114 #endif //#ifndef PCL_FILTERS_PROJECT_INLIERS_H_ message_filters::Subscriber< ModelCoefficients > sub_model_
The message filter subscriber for model coefficients.
pcl::ProjectInliers< pcl::PCLPointCloud2 > impl_
The PCL filter implementation used.
void unsubscribe()
Lazy transport unsubscribe routine.
Filter represents the base filter class. Some generic 3D operations that are applicable to all filter...
boost::shared_ptr< message_filters::Synchronizer< sync_policies::ApproximateTime< PointCloud2, PointIndices, ModelCoefficients > > > sync_input_indices_model_a_
pcl::IndicesPtr IndicesPtr
void filter(const PointCloud2::ConstPtr &input, const IndicesPtr &indices, PointCloud2 &output)
Call the actual filter.
boost::shared_ptr< message_filters::Synchronizer< sync_policies::ExactTime< PointCloud2, PointIndices, ModelCoefficients > > > sync_input_indices_model_e_
Synchronized input, indices, and model coefficients.
sensor_msgs::PointCloud2 PointCloud2
virtual void onInit()
Nodelet initialization routine.
void toPCL(const ros::Time &stamp, std::uint64_t &pcl_stamp)
ModelCoefficientsConstPtr model_
A pointer to the vector of model coefficients.
ModelCoefficients::ConstPtr ModelCoefficientsConstPtr
void input_indices_model_callback(const PointCloud2::ConstPtr &cloud, const PointIndicesConstPtr &indices, const ModelCoefficientsConstPtr &model)
PointCloud2 + Indices + Model data callback.
void subscribe()
NodeletLazy connection routine.
void moveFromPCL(pcl::PCLImage &pcl_image, sensor_msgs::Image &image)
PointIndices::ConstPtr PointIndicesConstPtr
ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a sepa...