Skip to content

Commit

Permalink
Port package to ROS iron
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed May 23, 2024
1 parent 9905493 commit ae53247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graph_based_slam/src/graph_based_slam_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ void GraphBasedSlamComponent::doPoseAdjustment(
g2o::SparseOptimizer optimizer;
optimizer.setVerbose(false);
std::unique_ptr<g2o::BlockSolver_6_3::LinearSolverType> linear_solver =
g2o::make_unique<g2o::LinearSolverEigen<g2o::BlockSolver_6_3::PoseMatrixType>>();
std::make_unique<g2o::LinearSolverEigen<g2o::BlockSolver_6_3::PoseMatrixType>>();
g2o::OptimizationAlgorithmLevenberg * solver = new g2o::OptimizationAlgorithmLevenberg(
g2o::make_unique<g2o::BlockSolver_6_3>(std::move(linear_solver)));
std::make_unique<g2o::BlockSolver_6_3>(std::move(linear_solver)));

optimizer.setAlgorithm(solver);

Expand Down

0 comments on commit ae53247

Please sign in to comment.