GraphSLAM_tutorials_code
GraphSLAM_tutorials_code copied to clipboard
compile error with latest g2o
The first three lines of code should be updated to:
auto linearSolver = g2o::make_unique<LinearSolverCSparseBlockSolverX::PoseMatrixType>(); auto blockSolver = g2o::make_unique<BlockSolverX>(std::move(linearSolver)); OptimizationAlgorithmLevenberg* optimizationAlgorithm = new OptimizationAlgorithmLevenberg(std::move(blockSolver));