Merge branch 'fix/iSAM2' into fix/GenericValue-assignment

Added extra update so converges faster, and matches test in Issue #412

Conflicts:
	tests/testVisualISAM2.cpp
release/4.3a0
dellaert 2018-12-18 14:40:33 -05:00
commit 70f428fed1
1 changed files with 4 additions and 2 deletions

View File

@ -39,9 +39,8 @@ TEST(testVisualISAM2, all)
auto measurementNoise = noiseModel::Isotropic::Sigma(2, 1.0);
// Create ground truth data
vector<Point3> points = createPoints();
// Create the set of ground-truth poses
vector<Pose3> poses = createPoses();
// Set the parameters
@ -98,6 +97,9 @@ TEST(testVisualISAM2, all)
// Update iSAM with the new factors
isam.update(graph, initialEstimate);
// Do an extra update to converge withing these 8 iterations
isam.update();
// Optimize
Values currentEstimate = isam.calculateEstimate();