posegraph2.hh
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * This source code is part of the Tree-based Network Optimizer (TORO)
4  *
5  * TORO Copyright (c) 2007 Giorgio Grisetti, Cyrill Stachniss,
6  * Slawomir Grzonka and Wolfram Burgard
7  *
8  * TORO is licences under the Common Creative License,
9  * Attribution-NonCommercial-ShareAlike 3.0
10  *
11  * You are free:
12  * - to Share - to copy, distribute and transmit the work
13  * - to Remix - to adapt the work
14  *
15  * Under the following conditions:
16  *
17  * - Attribution. You must attribute the work in the manner specified
18  * by the author or licensor (but not in any way that suggests that
19  * they endorse you or your use of the work).
20  *
21  * - Noncommercial. You may not use this work for commercial purposes.
22  *
23  * - Share Alike. If you alter, transform, or build upon this work,
24  * you may distribute the resulting work only under the same or
25  * similar license to this one.
26  *
27  * Any of the above conditions can be waived if you get permission
28  * from the copyright holder. Nothing in this license impairs or
29  * restricts the author's moral rights.
30  *
31  * TORO is distributed in the hope that it will be useful,
32  * but WITHOUT ANY WARRANTY; without even the implied
33  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
34  * PURPOSE.
35  **********************************************************************/
36 
43 #ifndef _POSEGRAPH2_HH_
44 #define _POSEGRAPH2_HH_
45 
46 #include "posegraph.hh"
47 #include "transformation2.hh"
48 #include <iostream>
49 #include <vector>
50 
51 namespace AISNavigation {
52 
53 
54 
57 struct TreePoseGraph2: public TreePoseGraph< Operations2D<double> >{
58 
65 
70  bool load( const char* filename, bool overrideCovariances=false);
71 
73  bool loadEquivalences( const char* filename);
74 
76  bool save( const char* filename);
77 
79  bool saveGnuplot( const char* filename);
80 
82  void printDepth( std::ostream& os );
83 
85  void printWidth( std::ostream& os );
86 
88  void printEdgesStat( std::ostream& os);
89 
90  void initializeOnTree();
91 
93  virtual void revertEdgeInfo(Edge* e);
94 
95  virtual void initializeFromParentEdge(Vertex* v);
96 
100  virtual void collapseEdge(Edge* e);
101 
104 };
105 
106 }; //namespace AISNavigation
107 #endif
108 
109 
110 
Operations2D< double >::RotationType Rotation
Definition: posegraph2.hh:60
Template class for representing a 2D point (x and y coordinate)
virtual void initializeFromParentEdge(Vertex *v)
Definition: posegraph2.cpp:290
bool load(const char *filename, bool overrideCovariances=false)
Definition: posegraph2.cpp:60
Definition of the 2d transformations.
A class to represent symmetric 3x3 matrices.
GLM_FUNC_DECL genType e()
void printEdgesStat(std::ostream &os)
Definition: posegraph2.cpp:245
Operations2D< double >::CovarianceType CovarianceMatrix
Definition: posegraph2.hh:63
Operations2D< double >::TranslationType Translation
Definition: posegraph2.hh:61
void printWidth(std::ostream &os)
Definition: posegraph2.cpp:210
Operations2D< double >::InformationType InformationMatrix
Definition: posegraph2.hh:64
bool save(const char *filename)
Definition: posegraph2.cpp:167
virtual void collapseEdge(Edge *e)
Definition: posegraph2.cpp:301
The class (struct) that contains 2D graph related functions such as loading, saving, merging, etc.
Definition: posegraph2.hh:57
The template class for representing an abstract tree without specifing the dimensionality of the exac...
Definition: posegraph.hh:91
bool loadEquivalences(const char *filename)
Definition: posegraph2.cpp:107
Operations2D< double >::PoseType Pose
Definition: posegraph2.hh:59
virtual void revertEdgeInfo(Edge *e)
Definition: posegraph2.cpp:261
The template class for the node parameters. The graph of poses with support to tree construction func...
void printDepth(std::ostream &os)
Definition: posegraph2.cpp:205
bool saveGnuplot(const char *filename)
Definition: posegraph2.cpp:149
Operations2D< double >::TransformationType Transformation
Definition: posegraph2.hh:62
2D Point (x,y) with orientation (theta)
A class to represent 2D transformations (rotation and translation)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:41:32