39 #ifndef PCL_ROS_FILTERS_CROPBOX_H_ 40 #define PCL_ROS_FILTERS_CROPBOX_H_ 43 #include <pcl/filters/crop_box.h> 47 #include "pcl_ros/CropBoxConfig.h" 72 boost::mutex::scoped_lock lock (
mutex_);
73 pcl::PCLPointCloud2::Ptr pcl_input(
new pcl::PCLPointCloud2);
75 impl_.setInputCloud (pcl_input);
76 impl_.setIndices (indices);
77 pcl::PCLPointCloud2 pcl_output;
78 impl_.filter (pcl_output);
98 pcl::CropBox<pcl::PCLPointCloud2>
impl_;
100 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
104 #endif //#ifndef PCL_ROS_FILTERS_CROPBOX_H_ pcl::CropBox< pcl::PCLPointCloud2 > impl_
The PCL filter implementation used.
Filter represents the base filter class. Some generic 3D operations that are applicable to all filter...
sensor_msgs::PointCloud2 PointCloud2
CropBox is a filter that allows the user to filter all the data inside of a given box...
boost::mutex mutex_
Internal mutex.
void config_callback(pcl_ros::CropBoxConfig &config, uint32_t level)
Dynamic reconfigure service callback.
bool child_init(ros::NodeHandle &nh, bool &has_service)
Child initialization routine.
void filter(const PointCloud2::ConstPtr &input, const IndicesPtr &indices, PointCloud2 &output)
Call the actual filter.
void moveFromPCL(pcl::PCLImage &pcl_image, sensor_msgs::Image &image)
boost::shared_ptr< dynamic_reconfigure::Server< pcl_ros::CropBoxConfig > > srv_
Pointer to a dynamic reconfigure service.
void toPCL(const ros::Time &stamp, pcl::uint64_t &pcl_stamp)