Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Timer to Stopwatch #424

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading