Main Page
Classes
Files
File List
File Members
src
perception
pointcloud_segmentation
include
pointcloud_segmentation
euclidean_cluster.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 _EUCLIDEAN_CLUSTER_H_
33
#define _EUCLIDEAN_CLUSTER_H_
34
35
// ROS
36
#include <ros/ros.h>
37
#include <sensor_msgs/PointCloud2.h>
38
#include <visualization_msgs/Marker.h>
39
40
// PCL
41
#include <pcl/conversions.h>
42
#include <pcl/point_cloud.h>
43
#include <pcl/point_types.h>
44
#include <pcl/surface/convex_hull.h>
45
#include <pcl/segmentation/extract_clusters.h>
46
47
// LAR
48
#include <points_from_volume/points_from_volume.h>
49
#include <
pointcloud_segmentation/rviz_markers.h
>
50
51
using namespace
std;
52
using namespace
pcl;
53
54
template
<
class
T>
55
class
euclidean_cluster_extraction
56
{
57
public
:
59
euclidean_cluster_extraction
()
60
{
61
};
62
64
~euclidean_cluster_extraction
()
65
{
66
};
67
68
// VARIABLES
70
double
cluster_tolerance;
71
73
double
min_cluster_size
;
74
76
double
max_cluster_size
;
77
79
ros::Publisher *
pub_marker_ptr
;
80
82
ros::Publisher *
pub_marker_text_ptr
;
83
84
// FUNCTIONS
86
void
callback_cloud (
const
sensor_msgs::PointCloud2Ptr& msg);
87
88
89
};
90
91
#include "
euclidean_cluster.hpp
"
92
93
#endif
euclidean_cluster_extraction::max_cluster_size
double max_cluster_size
maximum cluster points
Definition:
euclidean_cluster.h:76
euclidean_cluster_extraction::~euclidean_cluster_extraction
~euclidean_cluster_extraction()
class destructor
Definition:
euclidean_cluster.h:64
euclidean_cluster_extraction::euclidean_cluster_extraction
euclidean_cluster_extraction()
class constructor
Definition:
euclidean_cluster.h:59
rviz_markers.h
markers class main declaration
euclidean_cluster_extraction::pub_marker_text_ptr
ros::Publisher * pub_marker_text_ptr
pointer to publish text markers
Definition:
euclidean_cluster.h:82
euclidean_cluster.hpp
euclidean_cluster_extraction class implementation
euclidean_cluster_extraction::pub_marker_ptr
ros::Publisher * pub_marker_ptr
pointer to publish markers
Definition:
euclidean_cluster.h:79
euclidean_cluster_extraction::min_cluster_size
double min_cluster_size
minimum cluster points
Definition:
euclidean_cluster.h:73
euclidean_cluster_extraction
Definition:
euclidean_cluster.h:55
pointcloud_segmentation
Author(s): Tiago Talhada
autogenerated on Mon Mar 2 2015 01:32:39