polygon_flipper.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 /*********************************************************************
3  * Software License Agreement (BSD License)
4  *
5  * Copyright (c) 2015, JSK Lab
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer in the documentation and/or other materials provided
17  * with the distribution.
18  * * Neither the name of the JSK Lab nor the names of its
19  * contributors may be used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  *********************************************************************/
35 
36 
37 #ifndef JSK_PCL_ROS_UTILS_POLYGON_FLIPPER_H_
38 #define JSK_PCL_ROS_UTILS_POLYGON_FLIPPER_H_
39 
40 #include <jsk_topic_tools/diagnostic_nodelet.h>
41 #include <jsk_recognition_msgs/PolygonArray.h>
42 #include <jsk_recognition_msgs/ModelCoefficientsArray.h>
43 #include <jsk_recognition_msgs/ClusterPointIndices.h>
44 
47 
52 
53 namespace jsk_pcl_ros_utils
54 {
55  class PolygonFlipper: public jsk_topic_tools::DiagnosticNodelet
56  {
57  public:
60  jsk_recognition_msgs::PolygonArray,
61  jsk_recognition_msgs::ClusterPointIndices,
62  jsk_recognition_msgs::ModelCoefficientsArray > SyncPolicy;
63  PolygonFlipper(): DiagnosticNodelet("PolygonFlipper") {}
64  virtual ~PolygonFlipper();
65  protected:
66  virtual void onInit();
67  virtual void subscribe();
68  virtual void unsubscribe();
69 
70  virtual void fillEmptyIndices(
71  const jsk_recognition_msgs::PolygonArray::ConstPtr& polygon_msg);
72  virtual void flip(
73  const jsk_recognition_msgs::PolygonArray::ConstPtr& polygon_msg,
74  const jsk_recognition_msgs::ClusterPointIndices::ConstPtr& indices_msg,
75  const jsk_recognition_msgs::ModelCoefficientsArray::ConstPtr& coefficients_msg);
76 
86  std::string sensor_frame_;
88  int queue_size_;
89  private:
90 
91  };
92 }
93 
94 #endif
jsk_pcl_ros_utils
Definition: add_point_indices.h:51
ros::Publisher
pass_through.h
boost::shared_ptr
jsk_pcl_ros_utils::PolygonFlipper::subscribe
virtual void subscribe()
Definition: polygon_flipper_nodelet.cpp:78
jsk_pcl_ros_utils::PolygonFlipper::flip
virtual void flip(const jsk_recognition_msgs::PolygonArray::ConstPtr &polygon_msg, const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &indices_msg, const jsk_recognition_msgs::ModelCoefficientsArray::ConstPtr &coefficients_msg)
Definition: polygon_flipper_nodelet.cpp:111
geo_util.h
time_synchronizer.h
jsk_pcl_ros_utils::PolygonFlipper::~PolygonFlipper
virtual ~PolygonFlipper()
Definition: polygon_flipper_nodelet.cpp:67
jsk_pcl_ros_utils::PolygonFlipper::pub_polygons_
ros::Publisher pub_polygons_
Definition: polygon_flipper.h:146
message_filters::Subscriber< jsk_recognition_msgs::PolygonArray >
jsk_pcl_ros_utils::PolygonFlipper::unsubscribe
virtual void unsubscribe()
Definition: polygon_flipper_nodelet.cpp:93
subscriber.h
jsk_pcl_ros_utils::PolygonFlipper::PolygonFlipper
PolygonFlipper()
Definition: polygon_flipper.h:127
jsk_pcl_ros_utils::PolygonFlipper::sync_
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
Definition: polygon_flipper.h:141
jsk_pcl_ros_utils::PolygonFlipper::SyncPolicy
message_filters::sync_policies::ExactTime< jsk_recognition_msgs::PolygonArray, jsk_recognition_msgs::ClusterPointIndices, jsk_recognition_msgs::ModelCoefficientsArray > SyncPolicy
Definition: polygon_flipper.h:126
jsk_pcl_ros_utils::PolygonFlipper::sub_polygons_
message_filters::Subscriber< jsk_recognition_msgs::PolygonArray > sub_polygons_
Definition: polygon_flipper.h:142
jsk_pcl_ros_utils::PolygonFlipper::sub_indices_
message_filters::Subscriber< jsk_recognition_msgs::ClusterPointIndices > sub_indices_
Definition: polygon_flipper.h:144
jsk_pcl_ros_utils::PolygonFlipper::sub_coefficients_
message_filters::Subscriber< jsk_recognition_msgs::ModelCoefficientsArray > sub_coefficients_
Definition: polygon_flipper.h:143
jsk_pcl_ros_utils::PolygonFlipper::sensor_frame_
std::string sensor_frame_
Definition: polygon_flipper.h:150
message_filters::PassThrough< jsk_recognition_msgs::ClusterPointIndices >
jsk_pcl_ros_utils::PolygonFlipper::fillEmptyIndices
virtual void fillEmptyIndices(const jsk_recognition_msgs::PolygonArray::ConstPtr &polygon_msg)
Definition: polygon_flipper_nodelet.cpp:101
jsk_pcl_ros_utils::PolygonFlipper::use_indices_
bool use_indices_
Definition: polygon_flipper.h:151
jsk_pcl_ros_utils::PolygonFlipper::tf_listener_
tf::TransformListener * tf_listener_
Definition: polygon_flipper.h:149
tf::TransformListener
synchronizer.h
jsk_pcl_ros_utils::PolygonFlipper::onInit
virtual void onInit()
Definition: polygon_flipper_nodelet.cpp:44
jsk_pcl_ros_utils::PolygonFlipper::pub_indices_
ros::Publisher pub_indices_
Definition: polygon_flipper.h:147
jsk_pcl_ros_utils::PolygonFlipper::pub_coefficients_
ros::Publisher pub_coefficients_
Definition: polygon_flipper.h:148
jsk_pcl_ros_utils::PolygonFlipper::sub_indices_null_
message_filters::PassThrough< jsk_recognition_msgs::ClusterPointIndices > sub_indices_null_
Definition: polygon_flipper.h:145
jsk_pcl_ros_utils::PolygonFlipper::Ptr
boost::shared_ptr< PolygonFlipper > Ptr
Definition: polygon_flipper.h:122
tf_listener_singleton.h
message_filters::sync_policies::ExactTime
jsk_pcl_ros_utils::PolygonFlipper::queue_size_
int queue_size_
Definition: polygon_flipper.h:152


jsk_pcl_ros_utils
Author(s): Yohei Kakiuchi
autogenerated on Fri May 16 2025 03:11:43