Merge pull request #147 from ptrmu/ptrmu_fix_compile_error_in_timeGaussianFactorGraph_cpp

fix compile error in timeGaussianFactorGraph.cpp
release/4.3a0
Frank Dellaert 2019-10-13 12:23:11 -04:00 committed by GitHub
commit 30cef2d88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ double timeKalmanSmoother(int T) {
/* ************************************************************************* */
// Create a planar factor graph and optimize
double timePlanarSmoother(int N, bool old = true) {
GaussianFactorGraph fg = planarGraph(N).get<0>();
GaussianFactorGraph fg = planarGraph(N).first;
clock_t start = clock();
fg.optimize();
clock_t end = clock ();
@ -51,7 +51,7 @@ double timePlanarSmoother(int N, bool old = true) {
/* ************************************************************************* */
// Create a planar factor graph and eliminate
double timePlanarSmootherEliminate(int N, bool old = true) {
GaussianFactorGraph fg = planarGraph(N).get<0>();
GaussianFactorGraph fg = planarGraph(N).first;
clock_t start = clock();
fg.eliminateMultifrontal();
clock_t end = clock ();