//else if (covariances_.find(std::pair<StateBlockPtr, StateBlockPtr>(_state2, _state1)) != covariances_.end())
...
...
@@ -493,10 +493,10 @@ bool Problem::getCovarianceBlock(StateBlockPtr _state1, StateBlockPtr _state2, E
assert(_row+_state1->getLocalSize()<=_cov.rows()&&_col+_state2->getLocalSize()<=_cov.cols()&&"Problem::getCovarianceBlock: Bad matrix covariance size!");