36 #ifndef JSK_PCL_ROS_UTILS_CENTROID_PUBLISHER_H_ 37 #define JSK_PCL_ROS_UTILS_CENTROID_PUBLISHER_H_ 40 #include <jsk_recognition_msgs/PolygonArray.h> 43 #include <sensor_msgs/PointCloud2.h> 48 #include <pcl/point_types.h> 49 #include <pcl/common/centroid.h> 50 #include <pcl/filters/extract_indices.h> 64 virtual void extract(
const sensor_msgs::PointCloud2ConstPtr &input);
65 virtual void extractPolygons(
const jsk_recognition_msgs::PolygonArray::ConstPtr &input);
virtual void extractPolygons(const jsk_recognition_msgs::PolygonArray::ConstPtr &input)
ros::Publisher pub_point_
virtual void extract(const sensor_msgs::PointCloud2ConstPtr &input)
ros::Publisher pub_pose_array_
virtual void unsubscribe()
ros::Subscriber sub_cloud_
tf::TransformBroadcaster br_
ros::Subscriber sub_polygons_