fixed bug when reorder/relinearize is called with no factors
parent
ff0cb3eafb
commit
02fe443b44
|
|
@ -64,6 +64,7 @@ void NonlinearISAM<Values>::reorder_relinearize() {
|
||||||
|
|
||||||
// cout << "Reordering, relinearizing..." << endl;
|
// cout << "Reordering, relinearizing..." << endl;
|
||||||
|
|
||||||
|
if(factors_.size() > 0) {
|
||||||
// Obtain the new linearization point
|
// Obtain the new linearization point
|
||||||
const Values newLinPoint = estimate();
|
const Values newLinPoint = estimate();
|
||||||
|
|
||||||
|
|
@ -82,6 +83,7 @@ void NonlinearISAM<Values>::reorder_relinearize() {
|
||||||
// Update linearization point
|
// Update linearization point
|
||||||
linPoint_ = newLinPoint;
|
linPoint_ = newLinPoint;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class Values>
|
template<class Values>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue