g2o
|
propagation of an initial guess More...
#include <estimate_propagator.h>
Classes | |
class | AdjacencyMapEntry |
data structure for loopuk during Dijkstra More... | |
class | PriorityQueue |
priority queue for AdjacencyMapEntry More... | |
struct | PropagateAction |
Applying the action for propagating. 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 |
propagation of an initial guess
Definition at line 72 of file estimate_propagator.h.
typedef std::unordered_map<OptimizableGraph::Vertex*, AdjacencyMapEntry, VertexIDHashFunction> g2o::EstimatePropagator::AdjacencyMap |
Definition at line 135 of file estimate_propagator.h.
Definition at line 88 of file estimate_propagator.h.
g2o::EstimatePropagator::EstimatePropagator | ( | OptimizableGraph * | g | ) |
Definition at line 66 of file estimate_propagator.cpp.
References _adjacencyMap, g2o::EstimatePropagator::AdjacencyMapEntry::_child, _graph, g2o::EstimatePropagator::AdjacencyMapEntry::child(), and g2o::HyperGraph::vertices().
|
inline |
Definition at line 140 of file estimate_propagator.h.
|
inline |
Definition at line 141 of file estimate_propagator.h.
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.
Referenced by g2o::SparseOptimizer::computeInitialGuess().
void g2o::EstimatePropagator::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() |
||
) |
same as above but starting to propagate from a set of vertices instead of just a single one.
Definition at line 97 of file estimate_propagator.cpp.
References _adjacencyMap, g2o::EstimatePropagator::AdjacencyMapEntry::_frontierLevel, _visited, g2o::EstimatePropagator::AdjacencyMapEntry::child(), g2o::EstimatePropagator::AdjacencyMapEntry::distance(), g2o::EstimatePropagator::AdjacencyMapEntry::edge(), g2o::HyperGraph::Vertex::edges(), g2o::HyperGraph::Vertex::id(), g2o::EstimatePropagator::AdjacencyMapEntry::parent(), g2o::EstimatePropagator::PriorityQueue::pop(), g2o::EstimatePropagator::PriorityQueue::push(), reset(), g2o::HyperGraph::Edge::vertex(), and g2o::HyperGraph::Edge::vertices().
|
protected |
Definition at line 75 of file estimate_propagator.cpp.
References _adjacencyMap, and _visited.
Referenced by propagate().
|
inline |
Definition at line 139 of file estimate_propagator.h.
|
protected |
Definition at line 166 of file estimate_propagator.h.
Referenced by EstimatePropagator(), propagate(), and reset().
|
protected |
Definition at line 168 of file estimate_propagator.h.
Referenced by EstimatePropagator().
|
protected |
Definition at line 167 of file estimate_propagator.h.
Referenced by propagate(), and reset().