texturize_polygon_primitives.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 ***************************************************************************************************/
37 #ifndef _texturize_polygon_primitives_H_
38 #define _texturize_polygon_primitives_H_
39 
40 
42 //INCLUDES
44 
46 #include <ros/ros.h>
47 #include <sensor_msgs/PointCloud2.h>
48 #include <tf/transform_listener.h>
49 #include <image_transport/image_transport.h>
50 #include <cv_bridge/cv_bridge.h>
51 #include <sensor_msgs/image_encodings.h>
52 
54 #include <pcl/ros/conversions.h>
55 #include <pcl/point_cloud.h>
56 #include <pcl/point_types.h>
57 #include <pcl/segmentation/sac_segmentation.h>
58 
60 #include <visualization_msgs/Marker.h>
61 #include <visualization_msgs/MarkerArray.h>
62 
64 #include <wrapper_collada.h>
65 
68 
69 
71 //DEFINES
73 #define PFLN {printf("DEBUG PRINT FILE %s LINE %d\n",__FILE__,__LINE__);}
74 #define _MAX_NUM_POLYGONS_ 99
75 //TYPE DEFINITIONS
78 typedef struct
79 {
80  cv::Mat image;
81  cv_bridge::CvImagePtr cv_ptr;
82  ros::Time image_ts;
84  tf::StampedTransform tf;
85 
86 }t_cam;
87 
89 //FUNCTIONS PROTOTYPES
91 
92 
94 //GLOBAL VARIABLES
96 #ifdef _texturize_polygon_primitives_CPP_
97 
98 #define _EXTERN_
99 
100 #else
101 
102 #define _EXTERN_ extern
103 
104 #endif
105 
106 _EXTERN_ std::map<std::string, c_polygon_primitive_with_texture> pmap;
112 _EXTERN_ tf::TransformListener* p_listener;
113 _EXTERN_ ros::NodeHandle* p_node;
114 _EXTERN_ ros::Publisher* p_markerarray_pub;
116 
117 #endif
118 
_EXTERN_ ros::Publisher * p_markerarray_pub
_EXTERN_ t_cam cam_roof_rc
A class c_polygon_primitive_with_texture that contains information about a detected polygon primitive...
tf::StampedTransform tf
_EXTERN_ t_cam cam_roof_fl
_EXTERN_ t_cam cam_roof_fc
#define _EXTERN_
_EXTERN_ tf::TransformListener * p_listener
_EXTERN_ t_cam cam_roof_fr
_EXTERN_ ros::Time mission_start
_EXTERN_ t_cam cam_roof_fc_6mm
_EXTERN_ ros::NodeHandle * p_node
cv_bridge::CvImagePtr cv_ptr
_EXTERN_ std::map< std::string, c_polygon_primitive_with_texture > pmap


polygon_primitives_extraction
Author(s): Miguel Oliveira
autogenerated on Mon Mar 2 2015 01:32:42