Common.h
Go to the documentation of this file.
1 //
2 // Created by christoph on 05.06.19.
3 //
4 
5 #ifndef ROBDEKON_COMMON_H
6 #define ROBDEKON_COMMON_H
7 
8 #include <pcl/point_types.h>
9 #include <pcl/point_cloud.h>
12 
13 namespace boost
14 {
16  {
17  typedef vertex_property_tag kind;
18  };
20  {
21  typedef vertex_property_tag kind;
22  };
23 
24 }
25 
26 namespace armarx
27 {
28  typedef pcl::PointXYZRGBL PointT;
30  typedef pcl::PointCloud<PointT> PointCloudT;
31  typedef pcl::PointCloud<PointWithNormalT> PointCloudWithNormalT;
32 
33 
36  boost::vecS,
37  boost::undirectedS,
38  // vertex properties
39  boost::property<boost::vertex_color_t, uint32_t,
40  boost::property<boost::vertex_timestamp_t, double,
41  boost::property<boost::vertex_confidence_t, float>>>,
42  // edge properties
43  boost::property<boost::edge_weight_t, float,
44  boost::property<boost::edge_index_t, int> > > CloudGraphWithTimestamp;
47  boost::vecS,
48  boost::undirectedS,
49  // vertex properties
50  boost::property<boost::vertex_color_t, uint32_t>,
51  // edge properties
52  boost::property<boost::edge_weight_t, float,
53  boost::property<boost::edge_index_t, int> > > CloudGraph;
54  typedef boost::subgraph<CloudGraph> Graph;
55  typedef boost::subgraph<CloudGraphWithTimestamp> GraphWithTimestamp;
56 
59  typedef boost::reference_wrapper<Graph> GraphRef;
62  typedef boost::reference_wrapper<GraphWithTimestamp> GraphWithTimestampRef;
63 
64  typedef typename boost::graph_traits<Graph>::vertex_descriptor VertexId;
65  typedef typename boost::graph_traits<GraphWithTimestamp>::vertex_descriptor VertexWTsId;
66  typedef typename boost::graph_traits<Graph>::edge_descriptor EdgeId;
67  typedef typename boost::graph_traits<Graph>::vertex_iterator VertexIterator;
68  typedef typename boost::graph_traits<Graph>::edge_iterator EdgeIterator;
69  typedef typename boost::graph_traits<Graph>::adjacency_iterator AdjacencyIterator;
70  typedef boost::property_map<CloudGraphWithTimestamp, boost::vertex_timestamp_t>::type TimestampMap;
71  typedef boost::property_map<CloudGraphWithTimestamp, boost::vertex_confidence_t>::type ConfidenceMap;
72 }
73 
74 #endif //ROBDEKON_COMMON_H
armarx::PointCloudWithNormalT
pcl::PointCloud< PointWithNormalT > PointCloudWithNormalT
Definition: Common.h:31
armarx::AdjacencyIterator
boost::graph_traits< Graph >::adjacency_iterator AdjacencyIterator
Definition: Common.h:69
armarx::VertexWTsId
boost::graph_traits< GraphWithTimestamp >::vertex_descriptor VertexWTsId
Definition: Common.h:65
armarx::GraphWithTimestampRef
boost::reference_wrapper< GraphWithTimestamp > GraphWithTimestampRef
Definition: Common.h:62
armarx::VertexIterator
boost::graph_traits< Graph >::vertex_iterator VertexIterator
Definition: Common.h:67
boost::vertex_timestamp_t
Definition: Common.h:15
boost::shared_ptr
Definition: IceGridAdmin.h:51
armarx::GraphRef
boost::reference_wrapper< Graph > GraphRef
Definition: Common.h:59
armarx::ConfidenceMap
boost::property_map< CloudGraphWithTimestamp, boost::vertex_confidence_t >::type ConfidenceMap
Definition: Common.h:71
armarx::VertexId
boost::graph_traits< Graph >::vertex_descriptor VertexId
Definition: Common.h:64
boost::vertex_timestamp_t::kind
vertex_property_tag kind
Definition: Common.h:17
boost
Definition: ApplicationOptions.h:37
armarx::CloudGraphWithTimestamp
pcl::graph::point_cloud_graph< PointWithNormalT, boost::vecS, boost::undirectedS, boost::property< boost::vertex_color_t, uint32_t, boost::property< boost::vertex_timestamp_t, double, boost::property< boost::vertex_confidence_t, float > > >, boost::property< boost::edge_weight_t, float, boost::property< boost::edge_index_t, int > > > CloudGraphWithTimestamp
Definition: Common.h:44
pcl::PointXYZRGBLNormal
Definition: PointXYZRGBLNormal.hpp:50
armarx::GraphPtr
Agraph_t * GraphPtr
Definition: Layout.h:41
boost::vertex_confidence_t
Definition: Common.h:19
armarx::GraphConstPtr
boost::shared_ptr< const Graph > GraphConstPtr
Definition: Common.h:58
armarx::PointT
pcl::PointXYZRGBL PointT
Definition: Common.h:28
armarx::Graph
boost::subgraph< CloudGraph > Graph
Definition: Common.h:54
armarx::TimestampMap
boost::property_map< CloudGraphWithTimestamp, boost::vertex_timestamp_t >::type TimestampMap
Definition: Common.h:70
armarx::PointCloudT
pcl::PointCloud< PointT > PointCloudT
Definition: Common.h:30
pcl::graph::point_cloud_graph
Definition: point_cloud_graph.h:302
boost::vertex_confidence_t::kind
vertex_property_tag kind
Definition: Common.h:21
armarx::CloudGraph
pcl::graph::point_cloud_graph< PointWithNormalT, boost::vecS, boost::undirectedS, boost::property< boost::vertex_color_t, uint32_t >, boost::property< boost::edge_weight_t, float, boost::property< boost::edge_index_t, int > > > CloudGraph
Definition: Common.h:53
armarx::GraphWithTimestampConstPtr
boost::shared_ptr< const GraphWithTimestamp > GraphWithTimestampConstPtr
Definition: Common.h:61
float
#define float
Definition: 16_Level.h:22
armarx::PointWithNormalT
pcl::PointXYZRGBLNormal PointWithNormalT
Definition: Common.h:29
armarx::EdgeIterator
boost::graph_traits< Graph >::edge_iterator EdgeIterator
Definition: Common.h:68
PointXYZRGBLNormal.h
point_cloud_graph.h
armarx::EdgeId
boost::graph_traits< Graph >::edge_descriptor EdgeId
Definition: Common.h:66
armarx::GraphWithTimestamp
boost::subgraph< CloudGraphWithTimestamp > GraphWithTimestamp
Definition: Common.h:55
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::GraphWithTimestampPtr
boost::shared_ptr< GraphWithTimestamp > GraphWithTimestampPtr
Definition: Common.h:60