23 using namespace gtsam;
30 clock_t start = clock();
33 clock_t
end = clock ();
34 double dif = (double)(end - start) / CLOCKS_PER_SEC;
42 clock_t start = clock();
44 clock_t
end = clock ();
45 double dif = (double)(end - start) / CLOCKS_PER_SEC;
53 clock_t start = clock();
55 clock_t
end = clock ();
56 double dif = (double)(end - start) / CLOCKS_PER_SEC;
117 TEST(timeGaussianFactorGraph, linearTime)
157 TEST(timeGaussianFactorGraph, planar_old)
159 cout <<
"Timing planar - original version" << endl;
161 cout <<
"timeGaussianFactorGraph : " << time << endl;
166 TEST(timeGaussianFactorGraph, planar_new)
168 cout <<
"Timing planar - new version" << endl;
170 cout <<
"timeGaussianFactorGraph : " << time << endl;
175 TEST(timeGaussianFactorGraph, planar_eliminate_old)
177 cout <<
"Timing planar Eliminate - original version" << endl;
179 cout <<
"timeGaussianFactorGraph : " << time << endl;
184 TEST(timeGaussianFactorGraph, planar_eliminate_new)
186 cout <<
"Timing planar Eliminate - new version" << endl;
188 cout <<
"timeGaussianFactorGraph : " << time << endl;
GaussianFactorGraph createSmoother(int T)
static int runAllTests(TestResult &result)
#define DOUBLES_EQUAL(expected, actual, threshold)
VectorValues optimize(const Eliminate &function=EliminationTraitsType::DefaultEliminate) const
TEST(timeGaussianFactorGraph, linearTime)
double timePlanarSmoother(int N, bool old=true)
std::pair< GaussianFactorGraph, VectorValues > planarGraph(size_t N)
static EIGEN_DEPRECATED const end_t end
std::shared_ptr< BayesTreeType > eliminateMultifrontal(OptionalOrderingType orderingType={}, const Eliminate &function=EliminationTraitsType::DefaultEliminate, OptionalVariableIndex variableIndex={}) const
Create small example with two poses and one landmark.
double timeKalmanSmoother(int T)
double timePlanarSmootherEliminate(int N, bool old=true)