test failure: now we can start computing jacobians
parent
c1da490c2d
commit
8a37a86441
|
@ -457,22 +457,21 @@ TEST( SmartStereoProjectionFactorPP, 3poses_smart_projection_factor ) {
|
||||||
// cout << std::setprecision(10) << "\n----SmartStereoFactor graph initial error: " << graph.error(values) << endl;
|
// cout << std::setprecision(10) << "\n----SmartStereoFactor graph initial error: " << graph.error(values) << endl;
|
||||||
EXPECT_DOUBLES_EQUAL(833953.92789459578, graph.error(values), 1e-7); // initial error
|
EXPECT_DOUBLES_EQUAL(833953.92789459578, graph.error(values), 1e-7); // initial error
|
||||||
|
|
||||||
// // get triangulated landmarks from smart factors
|
// get triangulated landmarks from smart factors
|
||||||
// Point3 landmark1_smart = *smartFactor1->point();
|
Point3 landmark1_smart = *smartFactor1->point();
|
||||||
// Point3 landmark2_smart = *smartFactor2->point();
|
Point3 landmark2_smart = *smartFactor2->point();
|
||||||
// Point3 landmark3_smart = *smartFactor3->point();
|
Point3 landmark3_smart = *smartFactor3->point();
|
||||||
//
|
|
||||||
// Values result;
|
Values result;
|
||||||
// gttic_(SmartStereoProjectionFactorPP);
|
gttic_(SmartStereoProjectionFactorPP);
|
||||||
// LevenbergMarquardtOptimizer optimizer(graph, values, lm_params);
|
LevenbergMarquardtOptimizer optimizer(graph, values, lm_params);
|
||||||
// result = optimizer.optimize();
|
result = optimizer.optimize();
|
||||||
// gttoc_(SmartStereoProjectionFactorPP);
|
gttoc_(SmartStereoProjectionFactorPP);
|
||||||
// tictoc_finishedIteration_();
|
tictoc_finishedIteration_();
|
||||||
//
|
|
||||||
// EXPECT_DOUBLES_EQUAL(0, graph.error(result), 1e-5);
|
// cout << std::setprecision(10) << "SmartStereoFactor graph optimized error: " << graph.error(result) << endl;
|
||||||
|
EXPECT_DOUBLES_EQUAL(0, graph.error(result), 1e-5);
|
||||||
|
|
||||||
//// cout << std::setprecision(10) << "SmartStereoFactor graph optimized error: " << graph.error(result) << endl;
|
|
||||||
//
|
|
||||||
// GaussianFactorGraph::shared_ptr GFG = graph.linearize(result);
|
// GaussianFactorGraph::shared_ptr GFG = graph.linearize(result);
|
||||||
// VectorValues delta = GFG->optimize();
|
// VectorValues delta = GFG->optimize();
|
||||||
// VectorValues expected = VectorValues::Zero(delta);
|
// VectorValues expected = VectorValues::Zero(delta);
|
||||||
|
|
Loading…
Reference in New Issue