lago.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
35 #pragma once
36 
40 
41 namespace gtsam {
42 namespace lago {
43 
44 typedef std::map<Key, double> key2doubleMap;
45 typedef std::map<Key, Key> PredecessorMap;
46 
51 GTSAM_EXPORT key2doubleMap computeThetasToRoot(
52  const key2doubleMap& deltaThetaMap, const PredecessorMap& tree);
53 
62 GTSAM_EXPORT void getSymbolicGraph(
63 /*OUTPUTS*/std::vector<size_t>& spanningTreeIds, std::vector<size_t>& chordsIds,
64  key2doubleMap& deltaThetaMap,
65  /*INPUTS*/const PredecessorMap& tree, const NonlinearFactorGraph& g);
66 
69  const std::vector<size_t>& spanningTreeIds,
70  const std::vector<size_t>& chordsIds, const NonlinearFactorGraph& g,
71  const key2doubleMap& orientationsToRoot, const PredecessorMap& tree);
72 
77 GTSAM_EXPORT PredecessorMap findMinimumSpanningTree(
78  const NonlinearFactorGraph& pose2Graph);
79 
82  const NonlinearFactorGraph& graph, bool useOdometricPath = true);
83 
85 GTSAM_EXPORT Values initialize(const NonlinearFactorGraph& graph,
86  bool useOdometricPath = true);
87 
89 GTSAM_EXPORT Values initialize(const NonlinearFactorGraph& graph,
90  const Values& initialGuess);
91 
92 } // end of namespace lago
93 } // end of namespace gtsam
Factor Graph consisting of non-linear factors.
key2doubleMap computeThetasToRoot(const key2doubleMap &deltaThetaMap, const PredecessorMap &tree)
Definition: lago.cpp:82
void getSymbolicGraph(vector< size_t > &spanningTreeIds, vector< size_t > &chordsIds, key2doubleMap &deltaThetaMap, const PredecessorMap &tree, const NonlinearFactorGraph &g)
Definition: lago.cpp:101
NonlinearFactorGraph graph
void g(const string &key, int i)
Definition: testBTree.cpp:41
std::map< Key, Key > PredecessorMap
Definition: lago.h:45
Factor Graph Values.
Linear Factor Graph where all factors are Gaussians.
VectorValues initializeOrientations(const NonlinearFactorGraph &graph, bool useOdometricPath)
Definition: lago.cpp:297
PredecessorMap findMinimumSpanningTree(const NonlinearFactorGraph &pose2Graph)
Definition: lago.cpp:229
traits
Definition: chartTesting.h:28
GaussianFactorGraph buildLinearOrientationGraph(const vector< size_t > &spanningTreeIds, const vector< size_t > &chordsIds, const NonlinearFactorGraph &g, const key2doubleMap &orientationsToRoot, const PredecessorMap &tree)
Definition: lago.cpp:165
std::map< Key, double > key2doubleMap
Definition: lago.h:44
Values initialize(const NonlinearFactorGraph &graph, bool useOdometricPath)
Definition: lago.cpp:375


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:31