Skip to content
Snippets Groups Projects
Commit 90a6495d authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Set the SB status when adding it

parent 1e1440b0
No related branches found
No related tags found
1 merge request!214Hello wolf
Pipeline #2194 failed
......@@ -287,6 +287,7 @@ void CeresManager::addStateBlock(const StateBlockPtr& state_ptr)
ceres_problem_->AddParameterBlock(getAssociatedMemBlockPtr(state_ptr),
state_ptr->getSize(),
local_parametrization_ptr);
updateStateBlockStatus(state_ptr);
}
void CeresManager::removeStateBlock(const StateBlockPtr& state_ptr)
......
......@@ -45,7 +45,6 @@ void SolverManager::update()
{
state_blocks_.emplace(state, state->getState());
addStateBlock(state);
updateStateBlockStatus(state);
}
WOLF_DEBUG_COND(registered, "Tried adding an already registered StateBlock.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment