19 #include <boost/assign/std/list.hpp> 24 using namespace gtsam;
32 clock_t start = clock();
35 clock_t
end = clock ();
36 double dif = (double)(end - start) / CLOCKS_PER_SEC;
44 clock_t start = clock();
46 clock_t
end = clock ();
47 double dif = (double)(end - start) / CLOCKS_PER_SEC;
55 clock_t start = clock();
57 clock_t
end = clock ();
58 double dif = (double)(end - start) / CLOCKS_PER_SEC;
119 TEST(timeGaussianFactorGraph, linearTime)
159 TEST(timeGaussianFactorGraph, planar_old)
161 cout <<
"Timing planar - original version" << endl;
163 cout <<
"timeGaussianFactorGraph : " << time << endl;
168 TEST(timeGaussianFactorGraph, planar_new)
170 cout <<
"Timing planar - new version" << endl;
172 cout <<
"timeGaussianFactorGraph : " << time << endl;
177 TEST(timeGaussianFactorGraph, planar_eliminate_old)
179 cout <<
"Timing planar Eliminate - original version" << endl;
181 cout <<
"timeGaussianFactorGraph : " << time << endl;
186 TEST(timeGaussianFactorGraph, planar_eliminate_new)
188 cout <<
"Timing planar Eliminate - new version" << endl;
190 cout <<
"timeGaussianFactorGraph : " << time << endl;
VectorValues optimize(const Eliminate &function=EliminationTraitsType::DefaultEliminate) const
GaussianFactorGraph createSmoother(int T)
static int runAllTests(TestResult &result)
boost::shared_ptr< BayesTreeType > eliminateMultifrontal(OptionalOrderingType orderingType=boost::none, const Eliminate &function=EliminationTraitsType::DefaultEliminate, OptionalVariableIndex variableIndex=boost::none) const
#define DOUBLES_EQUAL(expected, actual, threshold)
TEST(timeGaussianFactorGraph, linearTime)
double timePlanarSmoother(int N, bool old=true)
std::pair< GaussianFactorGraph, VectorValues > planarGraph(size_t N)
Create small example with two poses and one landmark.
double timeKalmanSmoother(int T)
double timePlanarSmootherEliminate(int N, bool old=true)