graphmap.cpp
Go to the documentation of this file.
1 #ifndef GRAPHMAP_H
2 #define GRAPHMAP_H
3 #include <list>
4 #include <utils/point.h>
5 #include <utils/graph.h>
6 #include <grid/map.h>
7 
8 namespace GMapping {
9 
10 class RasterMap;
11 
13  typedef typename std::list<IntPoint> PointList;
15  //void render(RenderMap rmap);
17  //Point minBoundary() const;
19  //Point maxBoundary() const; //
20 
22  PointList m_points;
23 };
24 
25 struct Covariance3{
26  double sxx, sxy, sxt, syy, syt ,stt;
27 };
28 
29 struct GraphMapEdge{
32  inline operator double() const{
33  return sqrt((first->center-second->center)*(first->center-second->center));
34  }
35 };
36 
37 
38 struct GraphPatchGraph: public Graph<GraphMapPatch, Covariance3>{
39  void addEdge(Vertex* v1, Vertex* v2, const Covariance3& covariance);
40 };
41 
42 void GraphPatchGraph::addEdge(GraphPatchGraph::Vertex* v1, GraphPatchGraph::VertexVertex* v2,
43  const Covariance3& cov){
44  GraphMapEdge gme;
45  gme.covariance=cov;
46  gme.first=v1;
47  gme.second=v2;
48  return Graph<GraphMapPatch, Covariance3>::addEdge(v1,v2,gme);
49 }
50 
51 struct GraphPatchDirectoryCell: public std::set<GraphMapPatch::Vertex*> {
53 };
54 
55 typedef Map<GraphPatchDirectoryCell>, Array2D::set<GraphPatchDirectoryCell> >
56 
57 };
58 
59 #endif
std::list< IntPoint > PointList
Definition: graphmap.cpp:13
GraphMapPatch * second
Definition: graphmap.cpp:31
Covariance3 covariance
Definition: graphmap.cpp:30
OrientedPoint center
Definition: graphmap.cpp:21
void addEdge(Vertex *v1, Vertex *v2, const Covariance3 &covariance)
Definition: graphmap.cpp:42
GraphMapPatch * first
Definition: graphmap.cpp:31


openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Mon Jun 10 2019 14:04:22