33typedef std::map<Key, std::vector<size_t> > KeyVectorMap;
34typedef std::map<Key, Rot3> KeyRotMap;
53 size_t maxIter = 10000,
const bool setRefFrame =
true);
56 KeyVectorMap* adjEdgesMap,
57 KeyRotMap* factorId2RotMap);
59 static Vector3 gradientTron(
const Rot3& R1,
const Rot3& R2,
const double a,
74 bool singleIter =
true);
88 const Values& givenGuess,
bool useGradient =
false);
3D rotation represented as a rotation matrix or quaternion
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:65
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition GaussianFactorGraph.h:77
VectorValues represents a collection of vector-valued variables associated each with a unique integer...
Definition VectorValues.h:73
Definition NonlinearFactorGraph.h:57
A non-templated config holding any types of Manifold-group elements.
Definition Values.h:65
Definition InitializePose3.h:36
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:296
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:288
static Values computeOrientationsChordal(const NonlinearFactorGraph &pose3Graph)
Return the orientations of a graph including only BetweenFactors<Pose3>.
Definition InitializePose3.cpp:102
static NonlinearFactorGraph buildPose3graph(const NonlinearFactorGraph &graph)
Select the subgraph of betweenFactors and transforms priors into between wrt a fictitious node.
Definition InitializePose3.cpp:95
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:117
static Values initializeOrientations(const NonlinearFactorGraph &graph)
"extract" the Pose3 subgraph of the original graph, get orientations from relative orientation measur...
Definition InitializePose3.cpp:278