convex_hull.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2010, Willow Garage, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of Willow Garage, Inc. nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *
34  * $Id: convex_hull.h 36116 2011-02-22 00:05:23Z rusu $
35  *
36  */
37 
38 #ifndef PCL_ROS_CONVEX_HULL_2D_H_
39 #define PCL_ROS_CONVEX_HULL_2D_H_
40 
41 #include "pcl_ros/pcl_nodelet.h"
42 
43 // PCL includes
44 #include <pcl/surface/convex_hull.h>
45 
46 // Dynamic reconfigure
47 #include <dynamic_reconfigure/server.h>
48 
49 namespace pcl_ros
50 {
52 
56  class ConvexHull2D : public PCLNodelet
57  {
58  typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
59  typedef PointCloud::Ptr PointCloudPtr;
60  typedef PointCloud::ConstPtr PointCloudConstPtr;
61 
62  private:
64  virtual void onInit ();
65 
67  virtual void subscribe ();
68  virtual void unsubscribe ();
69 
74  void input_indices_callback (const PointCloudConstPtr &cloud,
75  const PointIndicesConstPtr &indices);
76 
77  private:
79  pcl::ConvexHull<pcl::PointXYZ> impl_;
80 
83 
86 
90 
91  public:
92  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
93  };
94 }
95 
96 #endif //#ifndef PCL_ROS_CONVEX_HULL_2D_H_
virtual void unsubscribe()
Definition: convex_hull.cpp:97
boost::shared_ptr< message_filters::Synchronizer< sync_policies::ExactTime< PointCloud, PointIndices > > > sync_input_indices_e_
Synchronized input, and indices.
Definition: convex_hull.h:88
ros::Subscriber sub_input_
The input PointCloud subscriber.
Definition: convex_hull.h:82
ros::Publisher pub_plane_
Publisher for PolygonStamped.
Definition: convex_hull.h:85
ConvexHull2D represents a 2D ConvexHull implementation.
Definition: convex_hull.h:56
void input_indices_callback(const PointCloudConstPtr &cloud, const PointIndicesConstPtr &indices)
Input point cloud callback.
PointCloud::Ptr PointCloudPtr
Definition: convex_hull.h:59
virtual void subscribe()
LazyNodelet connection routine.
Definition: convex_hull.cpp:65
pcl::ConvexHull< pcl::PointXYZ > impl_
The PCL implementation used.
Definition: convex_hull.h:79
PCLNodelet represents the base PCL Nodelet class. All PCL nodelets should inherit from this class...
Definition: pcl_nodelet.h:72
virtual void onInit()
Nodelet initialization routine.
Definition: convex_hull.cpp:45
pcl::PointCloud< pcl::PointXYZ > PointCloud
Definition: convex_hull.h:58
PointCloud::ConstPtr PointCloudConstPtr
Definition: convex_hull.h:60
boost::shared_ptr< message_filters::Synchronizer< sync_policies::ApproximateTime< PointCloud, PointIndices > > > sync_input_indices_a_
Definition: convex_hull.h:89
PointIndices::ConstPtr PointIndicesConstPtr
Definition: pcl_nodelet.h:83


pcl_ros
Author(s): Open Perception, Julius Kammerl , William Woodall
autogenerated on Mon Jun 10 2019 14:19:18