MEPP2 Project
DataStructures_pcl_point_cloud.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
13 #define PCL_NO_PRECOMPILE
14 #include <pcl/pcl_macros.h>
15 #include <pcl/point_types.h>
16 #include <pcl/point_cloud.h>
17 
18 #include <Eigen/Core>
19 #include <stdexcept> // for std::runtime_error
20 #include <ostream>
21 
22 
23 namespace FEVV {
24 
25 using PCLKernelType = float;
26 using PCLColorType = uint8_t;
27 using PCLEnrichedPoint = pcl::PointXYZRGBNormal;
28 using PCLPointCloud = pcl::PointCloud< PCLEnrichedPoint >;
29 
30 // Point, Normal, Color types with constructors are needed to write
31 // code like 'put(pm, vd, Point(1, 2, 3))'
32 using PCLPoint = Eigen::Vector3f;
33 using PCLVector = Eigen::Vector3f;
34 using PCLColor = Eigen::Matrix<PCLColorType, 3, 1>; // R,G,B
35 
36 } // namespace FEVV
37 
FEVV::PCLPointCloud
pcl::PointCloud< PCLEnrichedPoint > PCLPointCloud
Definition: DataStructures_pcl_point_cloud.h:28
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::PCLPoint
Eigen::Vector3f PCLPoint
Definition: DataStructures_pcl_point_cloud.h:32
FEVV::PCLKernelType
float PCLKernelType
Definition: DataStructures_pcl_point_cloud.h:25
FEVV::PCLVector
Eigen::Vector3f PCLVector
Definition: DataStructures_pcl_point_cloud.h:33
FEVV::PCLColorType
uint8_t PCLColorType
Definition: DataStructures_pcl_point_cloud.h:26
FEVV::PCLColor
Eigen::Matrix< PCLColorType, 3, 1 > PCLColor
Definition: DataStructures_pcl_point_cloud.h:34
FEVV::PCLEnrichedPoint
pcl::PointXYZRGBNormal PCLEnrichedPoint
Definition: DataStructures_pcl_point_cloud.h:27