Skip to content

Commit

Permalink
Removing parameter blocks for localization [noetic] (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored Jun 3, 2021
1 parent 824fb8c commit 6fce7fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slam_toolbox/solvers/ceres_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ void CeresSolver::RemoveNode(kt_int32s id)
GraphIterator nodeit = nodes_->find(id);
if (nodeit != nodes_->end())
{
problem_->SetParameterBlockConstant(&first_node_->second(0));
problem_->SetParameterBlockConstant(&first_node_->second(1));
problem_->SetParameterBlockConstant(&first_node_->second(2));
problem_->RemoveParameterBlock(&nodeit->second(0));
problem_->RemoveParameterBlock(&nodeit->second(1));
problem_->RemoveParameterBlock(&nodeit->second(2));
nodes_->erase(nodeit);
}
else
Expand Down

0 comments on commit 6fce7fa

Please sign in to comment.