constants.h
Go to the documentation of this file.
1#pragma once
2
3// PCL
4#include <pcl/point_types.h>
5
6// core
8
9// memory
11
13{
14 const constexpr char* POINTXYZ_CORE_SEGMENT_NAME = "PointCloudXYZ";
15 const constexpr char* POINTXYZL_CORE_SEGMENT_NAME = "PointCloudXYZL";
16 const constexpr char* POINTXYZRGBA_CORE_SEGMENT_NAME = "PointCloudXYZRGBA";
17 const constexpr char* POINTXYZRGBL_CORE_SEGMENT_NAME = "PointCloudXYZRGBL";
18
19 const constexpr char* ENTITY_NAME = "PointCloud";
20
21 template <class PointT>
22 inline std::string
24 {
25 if (std::is_same<PointT, pcl::PointXYZ>::value)
26 {
28 }
29 if (std::is_same<PointT, pcl::PointXYZL>::value)
30 {
32 }
33 if (std::is_same<PointT, pcl::PointXYZRGBA>::value)
34 {
36 }
37 if (std::is_same<PointT, pcl::PointXYZRGBL>::value)
38 {
40 }
41 throw armarx::LocalException("Could not map a pcl::PointT to a known core segment.");
42 }
43} // namespace visionx::armem::pointcloud
const constexpr char * POINTXYZ_CORE_SEGMENT_NAME
Definition constants.h:14
const constexpr char * POINTXYZRGBA_CORE_SEGMENT_NAME
Definition constants.h:16
const constexpr char * POINTXYZRGBL_CORE_SEGMENT_NAME
Definition constants.h:17
const constexpr char * POINTXYZL_CORE_SEGMENT_NAME
Definition constants.h:15
std::string GetCoreSegmentNameFor()
Definition constants.h:23
const constexpr char * ENTITY_NAME
Definition constants.h:19