Go to the documentation of this file.
36 #ifndef JSK_PCL_ROS_UTILS_STATIC_POLYGON_ARRAY_PUBLISHER_H_
37 #define JSK_PCL_ROS_UTILS_STATIC_POLYGON_ARRAY_PUBLISHER_H_
41 #include <sensor_msgs/PointCloud2.h>
44 #include <jsk_recognition_msgs/PolygonArray.h>
45 #include <jsk_recognition_msgs/ModelCoefficientsArray.h>
55 #include <jsk_recognition_msgs/Int32Stamped.h>
56 #include <std_msgs/Header.h>
58 #include <jsk_topic_tools/connection_based_nodelet.h>
63 class StaticPolygonArrayPublisher:
64 public jsk_topic_tools::ConnectionBasedNodelet
68 sensor_msgs::PointCloud2,
69 jsk_recognition_msgs::Int32Stamped >
SyncPolicy;
75 jsk_recognition_msgs::PolygonArray
polygons_;
88 virtual void inputCallback(
const sensor_msgs::PointCloud2::ConstPtr& msg);
94 virtual void triggerCallback(
const sensor_msgs::PointCloud2::ConstPtr& input,
95 const jsk_recognition_msgs::Int32Stamped::ConstPtr& trigger);
virtual ~StaticPolygonArrayPublisher()
jsk_recognition_msgs::PolygonArray polygons_
message_filters::Subscriber< jsk_recognition_msgs::Int32Stamped > sub_trigger_
virtual void unsubscribe()
virtual void inputCallback(const sensor_msgs::PointCloud2::ConstPtr &msg)
virtual double getXMLDoubleValue(XmlRpc::XmlRpcValue val)
ros::Publisher coefficients_pub_
virtual void triggerCallback(const sensor_msgs::PointCloud2::ConstPtr &input, const jsk_recognition_msgs::Int32Stamped::ConstPtr &trigger)
message_filters::Subscriber< sensor_msgs::PointCloud2 > sub_input_
jsk_recognition_msgs::ModelCoefficientsArray coefficients_
ros::Publisher polygon_pub_
virtual void timerCallback(const ros::TimerEvent &event)
virtual bool readPolygonArray(const std::string ¶m)
pcl::ModelCoefficients PCLModelCoefficientMsg
ros::Timer periodic_timer_
virtual void publishPolygon(const ros::Time &stamp)
std::vector< std::string > frame_ids_
virtual PCLModelCoefficientMsg polygonToModelCoefficients(const geometry_msgs::PolygonStamped &polygon)
message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::Int32Stamped > SyncPolicy
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
jsk_pcl_ros_utils
Author(s): Yohei Kakiuchi
autogenerated on Fri May 16 2025 03:11:43