Fixed size checking bug
parent
574a9711cc
commit
1322b7e49d
|
|
@ -100,7 +100,7 @@ namespace gtsam {
|
||||||
++ firstIndex;
|
++ firstIndex;
|
||||||
|
|
||||||
// Check that number of variables is in bounds
|
// Check that number of variables is in bounds
|
||||||
if(firstIndex + nFrontals >= variableIndex.size())
|
if(firstIndex + nFrontals > variableIndex.size())
|
||||||
throw std::invalid_argument("Requested to eliminate more frontal variables than exist in the factor graph.");
|
throw std::invalid_argument("Requested to eliminate more frontal variables than exist in the factor graph.");
|
||||||
|
|
||||||
// Get set of involved factors
|
// Get set of involved factors
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue