34typedef std::map<Key, std::vector<size_t> > KeyVectorMap;
35typedef std::map<Key, Rot3> KeyRotMap;
54 size_t maxIter = 10000,
const bool setRefFrame =
true);
57 KeyVectorMap* adjEdgesMap,
58 KeyRotMap* factorId2RotMap);
60 static Vector3 gradientTron(
const Rot3& R1,
const Rot3& R2,
const double a,
75 bool singleIter =
true);
89 const Values& givenGuess,
bool useGradient =
false);
3D rotation represented as a rotation matrix or quaternion
Graph algorithm using boost library.
Linear Factor Graph where all factors are Gaussians.
Factor Graph consisting of non-linear factors.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
Definition Rot3.h:58
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition GaussianFactorGraph.h:75
VectorValues represents a collection of vector-valued variables associated each with a unique integer...
Definition VectorValues.h:74
Definition NonlinearFactorGraph.h:55
A non-templated config holding any types of Manifold-group elements.
Definition Values.h:65
Definition InitializePose3.h:37
static Values initialize(const NonlinearFactorGraph &graph, const Values &givenGuess, bool useGradient=false)
"extract" the Pose3 subgraph of the original graph, get orientations from relative orientation measur...
Definition InitializePose3.cpp:298
static Values computePoses(const Values &initialRot, NonlinearFactorGraph *poseGraph, bool singleIter=true)
Use Gauss-Newton optimizer to optimize for poses given rotation estimates.
Definition InitializePose3.cpp:290
static Values computeOrientationsChordal(const NonlinearFactorGraph &pose3Graph)
Return the orientations of a graph including only BetweenFactors<Pose3>.
Definition InitializePose3.cpp:104
static NonlinearFactorGraph buildPose3graph(const NonlinearFactorGraph &graph)
Select the subgraph of betweenFactors and transforms priors into between wrt a fictitious node.
Definition InitializePose3.cpp:97
static Values computeOrientationsGradient(const NonlinearFactorGraph &pose3Graph, const Values &givenGuess, size_t maxIter=10000, const bool setRefFrame=true)
Return the orientations of a graph including only BetweenFactors<Pose3>.
Definition InitializePose3.cpp:119
static Values initializeOrientations(const NonlinearFactorGraph &graph)
"extract" the Pose3 subgraph of the original graph, get orientations from relative orientation measur...
Definition InitializePose3.cpp:280