Fixed debug and error message in JacobianFactor _countDims

release/4.3a0
Richard Roberts 2013-12-17 11:35:27 -05:00
parent d912868ca6
commit 09309e2869
1 changed files with 630 additions and 633 deletions

View File

@ -134,8 +134,6 @@ namespace gtsam {
model_ = noiseModel::Unit::Create(maxrank);
}
#undef GTSAM_EXTRA_CONSISTENCY_CHECKS
/* ************************************************************************* */
// Helper functions for combine constructor
namespace {
@ -188,8 +186,7 @@ namespace gtsam {
}
if(!foundVariable)
GaussianFactorGraph(factors).print("factors: ");
assert(foundVariable);
throw std::invalid_argument("Unable to determine dimensionality for all variables");
}
BOOST_FOREACH(const JacobianFactor::shared_ptr& factor, factors) {