graphmap.cpp
Go to the documentation of this file.
1 #ifndef GRAPHMAP_H
2 #define GRAPHMAP_H
3 #include <list>
4 #include <gmapping/utils/point.h>
5 #include <utils/graph.h>
6 #include <gmapping/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 
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
GMapping::GraphPatchDirectoryCell
Definition: graphmap.cpp:51
point.h
GMapping
Definition: configfile.cpp:34
GMapping::Covariance3::sxy
double sxy
Definition: graphmap.cpp:26
GMapping::Covariance3::syy
double syy
Definition: graphmap.cpp:26
GMapping::Covariance3::stt
double stt
Definition: graphmap.cpp:26
GMapping::Map
Definition: map.h:16
GMapping::GraphPatchGraph::addEdge
void addEdge(Vertex *v1, Vertex *v2, const Covariance3 &covariance)
Definition: graphmap.cpp:42
GMapping::GraphMapPatch::PointList
std::list< IntPoint > PointList
Definition: graphmap.cpp:13
GMapping::GraphPatchGraph
Definition: graphmap.cpp:38
GMapping::GraphPatchDirectoryCell::GraphPatchDirectoryCell
GraphPatchDirectoryCell(double)
GMapping::GraphMapPatch::m_points
PointList m_points
Definition: graphmap.cpp:22
GMapping::GraphMapPatch::center
OrientedPoint center
Definition: graphmap.cpp:21
map.h
GMapping::GraphMapPatch
Definition: graphmap.cpp:12
GMapping::GraphMapEdge::first
GraphMapPatch * first
Definition: graphmap.cpp:31
GMapping::GraphMapEdge::second
GraphMapPatch * second
Definition: graphmap.cpp:31
GMapping::Covariance3::sxx
double sxx
Definition: graphmap.cpp:26
GMapping::Covariance3
Definition: graphmap.cpp:25
GMapping::GraphMapEdge
Definition: graphmap.cpp:29
GMapping::orientedpoint< double, double >
GMapping::Covariance3::sxt
double sxt
Definition: graphmap.cpp:26
GMapping::GraphMapEdge::covariance
Covariance3 covariance
Definition: graphmap.cpp:30
GMapping::Covariance3::syt
double syt
Definition: graphmap.cpp:26


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51