38 if (fullSolverName ==
"structure_only_2") {
40 return optimizationAlgo;
41 }
else if (fullSolverName ==
"structure_only_3") {
43 return optimizationAlgo;
62 "structure_only_2",
"Optimize the landmark poses (2D)",
"Eigen",
true,
67 "structure_only_3",
"Optimize the landmark poses (3D)",
"Eigen",
true,
base for allocating an optimization algorithm
const OptimizationAlgorithmProperty & property() const
return the properties of the solver
Generic interface for a non-linear solver operating on a graph.
virtual OptimizationAlgorithm * construct()
allocate a solver operating on optimizer, re-implement for your creator
StructureOnlyCreator(const OptimizationAlgorithmProperty &p)
This is a solver for "structure-only" optimization".
static OptimizationAlgorithm * createSolver(const std::string &solverName)
#define G2O_REGISTER_OPTIMIZATION_LIBRARY(libraryname)
#define G2O_REGISTER_OPTIMIZATION_ALGORITHM(optimizername, instance)
describe the properties of a solver