From ea6577e8a47f1519488d9185851bee3543436548 Mon Sep 17 00:00:00 2001 From: Roelof Oomen Date: Wed, 25 Sep 2024 10:08:18 +0200 Subject: [PATCH] Rename Timer to Stopwatch --- trajopt/test/numerical_ik_unit.cpp | 4 ++-- trajopt/test/simple_collision_unit.cpp | 4 ++-- trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp | 4 ++-- trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trajopt/test/numerical_ik_unit.cpp b/trajopt/test/numerical_ik_unit.cpp index 4a5a3af5..737522f5 100644 --- a/trajopt/test/numerical_ik_unit.cpp +++ b/trajopt/test/numerical_ik_unit.cpp @@ -4,7 +4,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH #include #include #include -#include +#include #include #include #include @@ -101,7 +101,7 @@ void runTest(const Environment::Ptr& env, const Visualization::Ptr& /*plotter*/, ss = std::stringstream(); ss << initial_pose.translation().transpose(); CONSOLE_BRIDGE_logDebug("Initial Position: %s", ss.str().c_str()); - tesseract_common::Timer stopwatch; + tesseract_common::Stopwatch stopwatch; stopwatch.start(); const sco::OptStatus status = opt->optimize(); stopwatch.stop(); diff --git a/trajopt/test/simple_collision_unit.cpp b/trajopt/test/simple_collision_unit.cpp index 85afa3a4..aaa99fa1 100644 --- a/trajopt/test/simple_collision_unit.cpp +++ b/trajopt/test/simple_collision_unit.cpp @@ -2,7 +2,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH #include #include -#include +#include #include #include #include @@ -105,7 +105,7 @@ void runTest(const Environment::Ptr& env, const Visualization::Ptr& plotter, boo opt->addCallback(PlotCallback(plotter)); opt->initialize(trajToDblVec(prob->GetInitTraj())); - tesseract_common::Timer stopwatch; + tesseract_common::Stopwatch stopwatch; stopwatch.start(); opt->optimize(); stopwatch.stop(); diff --git a/trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp b/trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp index 3773d644..6b84f45d 100644 --- a/trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp +++ b/trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp @@ -32,7 +32,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH #include #include #include -#include +#include #include #include #include @@ -134,7 +134,7 @@ void runNumericalIKTest(const trajopt_sqp::QPProblem::Ptr& qp_problem, const Env // 6) solve solver.verbose = false; - tesseract_common::Timer stopwatch; + tesseract_common::Stopwatch stopwatch; stopwatch.start(); solver.solve(qp_problem); stopwatch.stop(); diff --git a/trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp b/trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp index a3055868..4b1e306e 100644 --- a/trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp +++ b/trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp @@ -30,7 +30,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH #include #include #include -#include +#include #include #include #include @@ -293,7 +293,7 @@ void runSimpleCollisionTest(const trajopt_sqp::QPProblem::Ptr& qp_problem, const // 6) solve solver.verbose = false; - tesseract_common::Timer stopwatch; + tesseract_common::Stopwatch stopwatch; stopwatch.start(); solver.solve(qp_problem); stopwatch.stop();