Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent 439a300 commit 6322df5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/tsid/solvers/solver-HQP-base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TSID_DLLAPI SolverHQPBase {
typedef math::ConstRefMatrix ConstRefMatrix;

SolverHQPBase(const std::string& name);
virtual ~SolverHQPBase(){};
virtual ~SolverHQPBase() {};

virtual const std::string& name() const { return m_name; }

Expand Down
2 changes: 1 addition & 1 deletion include/tsid/solvers/solver-HQP-eiquadprog-rt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TSID_DLLAPI SolverHQuadProgRT : public SolverHQPBase {
// TODO: change eiquadprog-rt to new API
/** Retrieve the matrices describing a QP problem from the problem data. */
void retrieveQPData(const HQPData& /*problemData*/,
const bool /*hessianRegularization = true*/){};
const bool /*hessianRegularization = true*/) {};

// /** Return the QP data object. */
// const QPDataQuadProg getQPData() const { return m_qpData; }
Expand Down
18 changes: 6 additions & 12 deletions src/utils/stop-watch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,12 @@ void Stopwatch::report_all(int precision, std::ostream& output) {
output << "\n"
<< std::setw(STOP_WATCH_MAX_NAME_LENGTH) << std::left
<< "*** PROFILING RESULTS [ms] ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "min"
<< " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "avg"
<< " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "max"
<< " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "lastTime"
<< " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "nSamples"
<< " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "totalTime"
<< " ***\n";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "min" << " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "avg" << " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "max" << " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "lastTime" << " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "nSamples" << " ";
output << std::setw(STOP_WATCH_TIME_WIDTH) << "totalTime" << " ***\n";
map<string, PerformanceData>::iterator it;
for (it = records_of->begin(); it != records_of->end(); ++it) {
if (it->second.stops > 0) report(it->first, precision, output);
Expand Down

0 comments on commit 6322df5

Please sign in to comment.