laser_to_pc.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 _LASER_TO_PC_H_
33 #define _LASER_TO_PC_H_
34 
35 // ROS includes.
36 #include <ros/ros.h>
37 #include <sensor_msgs/PointCloud2.h>
38 #include <tf/transform_listener.h>
39 #include <pcl_ros/transforms.h>
40 #include <laser_geometry/laser_geometry.h>
41 
42 // PCL includes
43 #include <pcl/point_types.h>
44 #include <pcl/conversions.h>
45 
46 // LAR includes
47 #include <points_from_volume/points_from_volume.h>
48 
49 using namespace std;
50 using namespace pcl;
51 
52 
54 {
55 public:
58  {
59  };
60 
63  {
64  };
65 
66  // VARIABLES
67 
69  ros::Publisher *pub_ptr;
70 
72  string frame_id;
73 
75  double min_z,max_z;
76 
78  tf::TransformListener *listener_ptr;
79 
81  PointCloud<PointXYZ> convex_hull;
82 
83  // FUNCTIONS
84 
86  void filter (const sensor_msgs::LaserScanPtr& msg);
87 
88 };
89 
90 
91 #endif
92 
tf::TransformListener * listener_ptr
transform_listener pointer
Definition: laser_to_pc.h:78
PointCloud< PointXYZ > convex_hull
convex_hull for extraction
Definition: laser_to_pc.h:81
laser_to_pc()
class constructor
Definition: laser_to_pc.h:57
double min_z
z limits for extraction
Definition: laser_to_pc.h:75
~laser_to_pc()
class destructor
Definition: laser_to_pc.h:62
string frame_id
frame id
Definition: laser_to_pc.h:72


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