Skip to content
Snippets Groups Projects
Commit 28f5ec1f authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix: small bug in assertion

parent 137b508d
No related branches found
No related tags found
No related merge requests found
...@@ -558,7 +558,7 @@ const Eigen::SparseMatrixd SolverCeres::computeHessian() const ...@@ -558,7 +558,7 @@ const Eigen::SparseMatrixd SolverCeres::computeHessian() const
StateBlockPtr sb = fac_ptr->getStateBlockPtrVector()[i]; StateBlockPtr sb = fac_ptr->getStateBlockPtrVector()[i];
if (!sb->isFixed()) if (!sb->isFixed())
{ {
assert(state_blocks_local_param_.count(sb) != 0 && "factor involving a state block not added"); assert(state_blocks_.count(sb) != 0 && "factor involving a state block not added");
assert((A.cols() >= sb->getLocalSize() + jacobians[i].cols() - 1) && "bad A number of cols"); assert((A.cols() >= sb->getLocalSize() + jacobians[i].cols() - 1) && "bad A number of cols");
// insert since A_block_row has just been created so it's empty for sure // insert since A_block_row has just been created so it's empty for sure
......
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