00001 /************************************************************************************************** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted 00008 provided that the following conditions are met: 00009 00010 *Redistributions of source code must retain the above copyright notice, this list of 00011 conditions and the following disclaimer. 00012 *Redistributions in binary form must reproduce the above copyright notice, this list of 00013 conditions and the following disclaimer in the documentation and/or other materials provided 00014 with the distribution. 00015 *Neither the name of the University of Aveiro nor the names of its contributors may be used to 00016 endorse or promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 00021 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00024 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00025 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 ***************************************************************************************************/ 00033 #ifndef _READ_VELODYNE_H_ 00034 #define _READ_VELODYNE_H_ 00035 00036 //#################################################################### 00037 // Includes: 00038 //#################################################################### 00039 00040 #include <ros/ros.h> 00041 //#include <pcl/point_cloud.h> 00042 #include <sensor_msgs/PointCloud2.h> 00043 //#include <pcl/point_types.h> 00044 //#include <ros/ros.h> 00045 // PCL specific includes 00046 #include <pcl/ros/conversions.h> 00047 #include <pcl/point_cloud.h> 00048 #include <pcl/point_types.h> 00049 00050 #include <signal.h> 00051 #include <stdio.h> 00052 #include <stdlib.h> 00053 #include <string.h> 00054 00055 #include "config.h" 00056 #include "config_util.h" 00057 #include "eventlog.h" 00058 #include "lcmtypes_velodyne_t.h" 00059 #include "lcmtypes_pose_t.h" 00060 #include "small_linalg.h" 00061 #include "velodyne.h" 00062 00063 #include <visualization_msgs/Marker.h> 00064 00065 #include <cmath> 00066 00067 #include <iostream> 00068 #include <pcl/ModelCoefficients.h> 00069 #include <pcl/io/pcd_io.h> 00070 #include <pcl/point_types.h> 00071 #include <pcl/sample_consensus/method_types.h> 00072 #include <pcl/sample_consensus/model_types.h> 00073 #include <pcl/segmentation/sac_segmentation.h> 00074 00075 00076 #include <pcl/filters/extract_indices.h> 00077 00078 //#include <pcl/io/pcd_io.h> 00079 00080 00081 00082 #define PFLN {printf("DEBUG PRINT FILE %s LINE %d\n",__FILE__,__LINE__);} 00083 00084 typedef pcl::PointXYZ PointT; 00085 #define _NUM_POLYGONS_ 10 00086 00087 #ifdef _READ_VELODYNE_CPP_ 00088 00089 struct tag_t_flags{ 00090 char debug; 00091 00092 }t_flags; 00093 00094 00095 #endif 00096 00097 #endif 00098