g2o
Loading...
Searching...
No Matches
g2o::EstimatePropagator Class Reference

propagation of an initial guess More...

#include <estimate_propagator.h>

Collaboration diagram for g2o::EstimatePropagator:

Classes

struct  PropagateAction
 Applying the action for propagating. More...
class  PriorityQueue
 priority queue for AdjacencyMapEntry More...
class  AdjacencyMapEntry
 data structure for loopuk during Dijkstra More...
class  VertexIDHashFunction
 hash function for a vertex More...

Public Types

typedef EstimatePropagatorCost PropagateCost
typedef std::unordered_map< OptimizableGraph::Vertex *, AdjacencyMapEntry, VertexIDHashFunction > AdjacencyMap

Public Member Functions

 EstimatePropagator (OptimizableGraph *g)
OptimizableGraph::VertexSet & visited ()
AdjacencyMap & adjacencyMap ()
OptimizableGraph * graph ()
void propagate (OptimizableGraph::Vertex *v, const EstimatePropagator::PropagateCost &cost, const EstimatePropagator::PropagateAction &action=PropagateAction(), double maxDistance=std::numeric_limits< double >::max(), double maxEdgeCost=std::numeric_limits< double >::max())
void propagate (OptimizableGraph::VertexSet &vset, const EstimatePropagator::PropagateCost &cost, const EstimatePropagator::PropagateAction &action=PropagateAction(), double maxDistance=std::numeric_limits< double >::max(), double maxEdgeCost=std::numeric_limits< double >::max())

Protected Member Functions

void reset ()

Protected Attributes

AdjacencyMap _adjacencyMap
OptimizableGraph::VertexSet _visited
OptimizableGraph * _graph

Detailed Description

propagation of an initial guess

Definition at line 78 of file estimate_propagator.h.

Member Typedef Documentation

◆ AdjacencyMap

◆ PropagateCost

Constructor & Destructor Documentation

◆ EstimatePropagator()

g2o::EstimatePropagator::EstimatePropagator ( OptimizableGraph * g)

Definition at line 65 of file estimate_propagator.cpp.

References _graph.

Member Function Documentation

◆ adjacencyMap()

AdjacencyMap & g2o::EstimatePropagator::adjacencyMap ( )
inline

Definition at line 151 of file estimate_propagator.h.

References _adjacencyMap.

◆ graph()

OptimizableGraph * g2o::EstimatePropagator::graph ( )
inline

Definition at line 152 of file estimate_propagator.h.

References _graph.

◆ propagate() [1/2]

void g2o::EstimatePropagator::propagate ( OptimizableGraph::Vertex * v,
const EstimatePropagator::PropagateCost & cost,
const EstimatePropagator::PropagateAction & action = PropagateAction(),
double maxDistance = std::numeric_limits<double>::max(),
double maxEdgeCost = std::numeric_limits<double>::max() )

propagate an initial guess starting from v. The function computes a spanning tree whereas the cost for each edge is determined by calling cost() and the action applied to each vertex is action().

Definition at line 86 of file estimate_propagator.cpp.

References propagate().

Referenced by g2o::SparseOptimizer::computeInitialGuess(), and propagate().

◆ propagate() [2/2]

◆ reset()

void g2o::EstimatePropagator::reset ( )
protected

Definition at line 75 of file estimate_propagator.cpp.

References _adjacencyMap, and _visited.

Referenced by propagate().

◆ visited()

OptimizableGraph::VertexSet & g2o::EstimatePropagator::visited ( )
inline

Definition at line 150 of file estimate_propagator.h.

References _visited.

Member Data Documentation

◆ _adjacencyMap

AdjacencyMap g2o::EstimatePropagator::_adjacencyMap
protected

Definition at line 180 of file estimate_propagator.h.

Referenced by adjacencyMap(), propagate(), and reset().

◆ _graph

OptimizableGraph* g2o::EstimatePropagator::_graph
protected

Definition at line 182 of file estimate_propagator.h.

Referenced by EstimatePropagator(), and graph().

◆ _visited

OptimizableGraph::VertexSet g2o::EstimatePropagator::_visited
protected

Definition at line 181 of file estimate_propagator.h.

Referenced by propagate(), reset(), and visited().


The documentation for this class was generated from the following files: