posegraph2.h
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 <iostream>
47 #include <vector>
48 #include "posegraph.h"
49 #include "transformation2.h"
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 
AISNavigation::TreePoseGraph2::Rotation
Operations2D< double >::RotationType Rotation
Definition: posegraph2.h:60
AISNavigation::TreePoseGraph2::printEdgesStat
void printEdgesStat(std::ostream &os)
Definition: posegraph2.cpp:246
AISNavigation::TreePoseGraph2::Pose
Operations2D< double >::PoseType Pose
Definition: posegraph2.h:59
AISNavigation::TreePoseGraph2::Transformation
Operations2D< double >::TransformationType Transformation
Definition: posegraph2.h:62
AISNavigation::TreePoseGraph2::loadEquivalences
bool loadEquivalences(const char *filename)
Definition: posegraph2.cpp:108
posegraph.h
AISNavigation::TreePoseGraph2::load
bool load(const char *filename, bool overrideCovariances=false)
Definition: posegraph2.cpp:61
AISNavigation::TreePoseGraph2::revertEdgeInfo
virtual void revertEdgeInfo(Edge *e)
Definition: posegraph2.cpp:262
AISNavigation::TreePoseGraph2::printDepth
void printDepth(std::ostream &os)
Definition: posegraph2.cpp:206
AISNavigation::TreePoseGraph2::initializeFromParentEdge
virtual void initializeFromParentEdge(Vertex *v)
Definition: posegraph2.cpp:291
transformation2.h
AISNavigation::SMatrix3
A class to represent symmetric 3x3 matrices.
Definition: transformation2.h:292
AISNavigation::TreePoseGraph
The template class for representing an abstract tree without specifing the dimensionality of the exac...
Definition: posegraph.h:91
AISNavigation::TreePoseGraph2::InformationMatrix
Operations2D< double >::InformationType InformationMatrix
Definition: posegraph2.h:64
AISNavigation::Vector2
Template class for representing a 2D point (x and y coordinate)
Definition: transformation2.h:54
AISNavigation::TreePoseGraph2::save
bool save(const char *filename)
Definition: posegraph2.cpp:168
AISNavigation::Pose2
2D Point (x,y) with orientation (theta)
Definition: transformation2.h:120
AISNavigation::TreePoseGraph2
The class (struct) that contains 2D graph related functions such as loading, saving,...
Definition: posegraph2.h:57
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
AISNavigation::TreePoseGraph2::printWidth
void printWidth(std::ostream &os)
Definition: posegraph2.cpp:211
AISNavigation::TreePoseGraph2::Translation
Operations2D< double >::TranslationType Translation
Definition: posegraph2.h:61
AISNavigation::TreePoseGraph2::CovarianceMatrix
Operations2D< double >::CovarianceType CovarianceMatrix
Definition: posegraph2.h:63
AISNavigation::TreePoseGraph2::saveGnuplot
bool saveGnuplot(const char *filename)
Definition: posegraph2.cpp:150
AISNavigation::TreePoseGraph2::initializeOnTree
void initializeOnTree()
Definition: posegraph2.cpp:240
AISNavigation::Transformation2
A class to represent 2D transformations (rotation and translation)
Definition: transformation2.h:161
AISNavigation
Definition: posegraph.h:57
AISNavigation::TreePoseGraph2::verboseLevel
int verboseLevel
Definition: posegraph2.h:103
AISNavigation::TreePoseGraph2::collapseEdge
virtual void collapseEdge(Edge *e)
Definition: posegraph2.cpp:302
AISNavigation::Operations2D::RotationType
T RotationType
Definition: transformation2.h:403


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:14