WOLF_WARN("SolverManager::addFactor(): Factor ",fac_ptr->id()," is notified to ADD but the involved state block ",st," is not. Skipping, will be added later.");
// Check if it was stored as a 'floating' state block
// put back notification in problem (will be added next update() call) and do nothing
if(floating_state_blocks_.count(st)==1)
wolf_problem_->notifyFactor(fac_ptr,ADD);
{
return;
floating_state_blocks_.erase(st);// This line must be BEFORE addStateBlock()!
addStateBlock(st);
}
else
{
WOLF_WARN("SolverManager::addFactor(): Factor ",fac_ptr->id()," is notified to ADD but the involved state block ",st," is not. Skipping, will be added later.");
// put back notification in problem (will be added next update() call) and do nothing