The class (struct) that contains 2D graph related functions such as loading, saving, merging, etc. More...
#include <posegraph2.hh>
Public Types | |
typedef Operations2D< double > ::CovarianceType | CovarianceMatrix |
typedef Operations2D< double > ::InformationType | InformationMatrix |
typedef Operations2D< double > ::PoseType | Pose |
typedef Operations2D< double > ::RotationType | Rotation |
typedef Operations2D< double > ::TransformationType | Transformation |
typedef Operations2D< double > ::TranslationType | Translation |
Public Member Functions | |
virtual void | collapseEdge (Edge *e) |
virtual void | initializeFromParentEdge (Vertex *v) |
void | initializeOnTree () |
bool | load (const char *filename, bool overrideCovariances=false) |
bool | loadEquivalences (const char *filename) |
void | printDepth (std::ostream &os) |
void | printEdgesStat (std::ostream &os) |
void | printWidth (std::ostream &os) |
virtual void | revertEdgeInfo (Edge *e) |
bool | save (const char *filename) |
bool | saveGnuplot (const char *filename) |
Public Attributes | |
int | verboseLevel |
The class (struct) that contains 2D graph related functions such as loading, saving, merging, etc.
Definition at line 57 of file posegraph2.hh.
typedef Operations2D<double>::CovarianceType AISNavigation::TreePoseGraph2::CovarianceMatrix |
Definition at line 63 of file posegraph2.hh.
typedef Operations2D<double>::InformationType AISNavigation::TreePoseGraph2::InformationMatrix |
Definition at line 64 of file posegraph2.hh.
typedef Operations2D<double>::PoseType AISNavigation::TreePoseGraph2::Pose |
Reimplemented from AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 59 of file posegraph2.hh.
typedef Operations2D<double>::RotationType AISNavigation::TreePoseGraph2::Rotation |
Reimplemented from AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 60 of file posegraph2.hh.
typedef Operations2D<double>::TransformationType AISNavigation::TreePoseGraph2::Transformation |
Reimplemented from AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 62 of file posegraph2.hh.
typedef Operations2D<double>::TranslationType AISNavigation::TreePoseGraph2::Translation |
Reimplemented from AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 61 of file posegraph2.hh.
void AISNavigation::TreePoseGraph2::collapseEdge | ( | Edge * | e | ) | [virtual] |
Function to compress a graph. Needed if, for example, equivalence constraints are used to build a graoh structure with indices without gaps.
Definition at line 302 of file posegraph2.cpp.
void AISNavigation::TreePoseGraph2::initializeFromParentEdge | ( | Vertex * | v | ) | [virtual] |
Revert edge info. This function needs to be implemented by a subclass
Implements AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 291 of file posegraph2.cpp.
Definition at line 240 of file posegraph2.cpp.
bool AISNavigation::TreePoseGraph2::load | ( | const char * | filename, |
bool | overrideCovariances = false |
||
) |
Load a graph from a file ignoring the equivalence constraints
filename | the graph file |
overrideCovariances | ignore the covariances from the file, and use identities instead |
Definition at line 61 of file posegraph2.cpp.
bool AISNavigation::TreePoseGraph2::loadEquivalences | ( | const char * | filename | ) |
Load only the equivalence constraints from a graph file (call load before)
Definition at line 108 of file posegraph2.cpp.
void AISNavigation::TreePoseGraph2::printDepth | ( | std::ostream & | os | ) |
Debug function
Definition at line 206 of file posegraph2.cpp.
void AISNavigation::TreePoseGraph2::printEdgesStat | ( | std::ostream & | os | ) |
Debug function
Definition at line 246 of file posegraph2.cpp.
void AISNavigation::TreePoseGraph2::printWidth | ( | std::ostream & | os | ) |
Debug function
Definition at line 211 of file posegraph2.cpp.
void AISNavigation::TreePoseGraph2::revertEdgeInfo | ( | Edge * | e | ) | [virtual] |
Turn around the edge (<i,j> => <j,i>)
Implements AISNavigation::TreePoseGraph< Operations2D< double > >.
Definition at line 262 of file posegraph2.cpp.
bool AISNavigation::TreePoseGraph2::save | ( | const char * | filename | ) |
Saves the graph in the graph-format
Definition at line 168 of file posegraph2.cpp.
bool AISNavigation::TreePoseGraph2::saveGnuplot | ( | const char * | filename | ) |
Saved the graph for visualizing it using gnuplot
Definition at line 150 of file posegraph2.cpp.
Specifies the verbose level for debugging
Definition at line 103 of file posegraph2.hh.