Fixed asserts
parent
d0c3bc0c8e
commit
593edd1e5c
|
@ -82,7 +82,7 @@ void handleLeafCase(const Eigen::Matrix<double, ROWS, COLS>& dTdA,
|
||||||
JacobianMap& jacobians, Key key) {
|
JacobianMap& jacobians, Key key) {
|
||||||
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
|
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
|
||||||
boost::bind(&JacobianPair::first, _1) == key);
|
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
|
it->second.block < ROWS, COLS > (0, 0) += dTdA; // block makes HUGE difference
|
||||||
}
|
}
|
||||||
/// Handle Leaf Case for Dynamic Matrix type (slower)
|
/// Handle Leaf Case for Dynamic Matrix type (slower)
|
||||||
|
@ -92,7 +92,7 @@ void handleLeafCase(
|
||||||
JacobianMap& jacobians, Key key) {
|
JacobianMap& jacobians, Key key) {
|
||||||
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
|
JacobianMap::iterator it = std::find_if(jacobians.begin(), jacobians.end(),
|
||||||
boost::bind(&JacobianPair::first, _1) == key);
|
boost::bind(&JacobianPair::first, _1) == key);
|
||||||
assert(it~= jacobians.end());
|
assert(it!=jacobians.end());
|
||||||
it->second += dTdA;
|
it->second += dTdA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue