From ba9f00b90e220840f9d8d3e5a304192fe5f3ed9c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:48:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/dynamic_graph_bridge/sot_loader.hh | 2 +- src/sot_loader.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dynamic_graph_bridge/sot_loader.hh b/include/dynamic_graph_bridge/sot_loader.hh index 33d7a27..1936b9e 100644 --- a/include/dynamic_graph_bridge/sot_loader.hh +++ b/include/dynamic_graph_bridge/sot_loader.hh @@ -88,7 +88,7 @@ class SotLoader : public SotLoaderBasic { // \brief Compute one iteration of control. // Basically calls fillSensors, the SoT and the readControl. - void oneIteration(const double& period); + void oneIteration(const double &period); // \brief Fill the sensors value for the SoT. void fillSensors(std::map<std::string, dgs::SensorValues> &sensorsIn); diff --git a/src/sot_loader.cpp b/src/sot_loader.cpp index 2462786..c9aaae6 100644 --- a/src/sot_loader.cpp +++ b/src/sot_loader.cpp @@ -59,7 +59,7 @@ struct DataToLog { void workThreadLoader(SotLoader *aSotLoader) { ros::Rate rate(1000); // 1 kHz - double periodd (1e-3); + double periodd(1e-3); if (ros::param::has("/sot_controller/dt")) { ros::param::get("/sot_controller/dt", periodd); @@ -205,7 +205,7 @@ void SotLoader::setup() { readControl(controlValues_); } -void SotLoader::oneIteration(const double& period) { +void SotLoader::oneIteration(const double &period) { fillSensors(sensorsIn_); try { sotController_->nominalSetSensors(sensorsIn_); -- GitLab