Skip to content

Commit

Permalink
Update G2OSolver.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravag authored Sep 27, 2017
1 parent bf90dd0 commit 3f835e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/G2OSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ G2OSolver::G2OSolver()

auto blockSolver = g2o::make_unique<SlamBlockSolver>(std::move(linearSolver));

optimizer_.setAlgorithm(new g2o::OptimizationAlgorithmLevenberg(blockSolver));
optimizer_.setAlgorithm(new g2o::OptimizationAlgorithmLevenberg(std::move(blockSolver)));

latestNodeID_ = 0;

Expand Down

1 comment on commit 3f835e2

@hanliming08
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type)’

how to solve the error?thank you

Please sign in to comment.