50 static const std::map<std::string,
51 std::function<std::unique_ptr<g2o::Solver>()>>
53 {
"pcg", &AllocateSolver<-1, -1>},
54 {
"pcg3_2", &AllocateSolver<3, 2>},
55 {
"pcg6_3", &AllocateSolver<6, 3>},
56 {
"pcg7_3", &AllocateSolver<7, 3>},
59 string solverName = fullSolverName.substr(3);
60 auto solverf = solver_factories.find(solverName);
61 if (solverf == solver_factories.end())
return nullptr;
63 string methodName = fullSolverName.substr(0, 2);
65 if (methodName ==
"gn") {
67 }
else if (methodName ==
"lm") {