Skip to content

Commit

Permalink
Rename Timer to Stopwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen authored and Levi-Armstrong committed Sep 25, 2024
1 parent 7c040c2 commit 440cb7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions trajopt/test/numerical_ik_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH
#include <sstream>
#include <gtest/gtest.h>
#include <tesseract_common/types.h>
#include <tesseract_common/timer.h>
#include <tesseract_common/stopwatch.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_kinematics/core/joint_group.h>
#include <tesseract_environment/environment.h>
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions trajopt/test/simple_collision_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
TRAJOPT_IGNORE_WARNINGS_PUSH
#include <ctime>
#include <gtest/gtest.h>
#include <tesseract_common/timer.h>
#include <tesseract_common/stopwatch.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_state_solver/state_solver.h>
#include <tesseract_environment/environment.h>
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions trajopt_optimizers/trajopt_sqp/test/numerical_ik_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH
#include <console_bridge/console.h>
#include <OsqpEigen/OsqpEigen.h>
#include <tesseract_common/types.h>
#include <tesseract_common/timer.h>
#include <tesseract_common/stopwatch.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_collision/core/continuous_contact_manager.h>
#include <tesseract_kinematics/core/joint_group.h>
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions trajopt_optimizers/trajopt_sqp/test/simple_collision_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ TRAJOPT_IGNORE_WARNINGS_PUSH
#include <gtest/gtest.h>
#include <console_bridge/console.h>
#include <OsqpEigen/OsqpEigen.h>
#include <tesseract_common/timer.h>
#include <tesseract_common/stopwatch.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_collision/core/discrete_contact_manager.h>
#include <tesseract_kinematics/core/joint_group.h>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 440cb7b

Please sign in to comment.