region_growing_node.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
32 #ifndef _REGION_GROWING_NODE_H_
33 #define _REGION_GROWING_NODE_H_
34 
35 // ROS
36 #include <ros/ros.h>
37 #include <sensor_msgs/PointCloud2.h>
38 #include <sensor_msgs/LaserScan.h>
39 #include <visualization_msgs/Marker.h>
40 
41 // PCL
42 #include <pcl/kdtree/kdtree_flann.h>
43 #include <pcl/segmentation/extract_clusters.h>
44 #include <pcl/surface/convex_hull.h>
45 #include <pcl/common/common.h>
46 #include <pcl_conversions/pcl_conversions.h>
47 //#include <pcl_ros.h>
48 
49 // LAR
52 
53 using namespace std;
54 using namespace pcl;
55 
56 template<class T, class T1>
58 {
59 public:
60 
63  {
64  };
65 
68  {
69  };
70 
71  // VARIABLES
72 
74  PointCloud<T1> laser_scan;
75 
77  ros::Publisher * pub_markers_ptr;
78 
80  ros::Publisher * pub_markers_text_ptr;
81 
84 
87 
90 
92  double radius;
93 
94  // FUNCTIONS
95 
97  void callback_cloud (const sensor_msgs::PointCloud2Ptr& msg);
98 
100  void callback_laser (const sensor_msgs::PointCloud2Ptr& msg);
101 
102 };
103 
104 #include "region_growing_node.hpp"
105 
106 #endif
double min_cluster_size
Minimum points to consider the cluster.
markers class main declaration
region_growing_node()
class constructor
ros::Publisher * pub_markers_text_ptr
A publisher pointer to add some text in clusters.
ros::Publisher * pub_markers_ptr
A publisher pointer to a marker.
double max_cluster_size
Maximum points to consider the cluster.
region_growing_node class functions implementation
double clustering_tolerance
Tolerance between points on the same cluster.
double radius
The radius limit for region growing algorithm.
Class for pcl region growing algorithm.
~region_growing_node()
class destructor


pointcloud_segmentation
Author(s): Tiago Talhada
autogenerated on Mon Mar 2 2015 01:32:39