Fixed asserts

release/4.3a0
dellaert 2014-10-31 16:29:15 +01:00
parent d0c3bc0c8e
commit 593edd1e5c
1 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ void handleLeafCase(const Eigen::Matrix<double, ROWS, COLS>& dTdA,
JacobianMap& jacobians, Key key) {
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
boost::bind(&JacobianPair::first, _1) == key);
assert(it~= jacobians.end());
assert(it!=jacobians.end());
it->second.block < ROWS, COLS > (0, 0) += dTdA; // block makes HUGE difference
}
/// Handle Leaf Case for Dynamic Matrix type (slower)
@ -92,7 +92,7 @@ void handleLeafCase(
JacobianMap& jacobians, Key key) {
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
boost::bind(&JacobianPair::first, _1) == key);
assert(it~= jacobians.end());
assert(it!=jacobians.end());
it->second += dTdA;
}