Skip to content

Commit b10274d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bd6ea7b commit b10274d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/roscontrol-sot-controller.hh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ class RCSotController : public lci::ControllerBase, SotLoaderBasic {
280280

281281
///@}
282282
/// Extract control values to send to the motors.
283-
/// \param controlValues map string to vector of double. The function will fill in
283+
/// \param controlValues map string to vector of double. The function will
284+
/// fill in
284285
/// controlValues["control"]
285286
void readControl(std::map<std::string, dgs::ControlValues> &controlValues);
286287

@@ -300,7 +301,8 @@ class RCSotController : public lci::ControllerBase, SotLoaderBasic {
300301
std::vector<double> command_;
301302

302303
/// One iteration: read sensor, compute the control law, apply control.
303-
/// \param period time since last call. Useful when realtime is not enforced correctly.
304+
/// \param period time since last call. Useful when realtime is not enforced
305+
/// correctly.
304306
void one_iteration(const ros::Duration &period);
305307

306308
/// Read URDF model from /robot_description parameter.

tests/sot-test-controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void SoTTestController::cleanupSetSensors(
8989
}
9090

9191
void SoTTestController::getControl(
92-
map<string, dgsot::ControlValues> &controlOut, const double& period) {
92+
map<string, dgsot::ControlValues> &controlOut, const double &period) {
9393
try {
9494
sotDEBUG(25) << __FILE__ << __FUNCTION__ << "(#" << __LINE__ << ")" << endl;
9595
device_->getControl(controlOut, period);

tests/sot-test-controller.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SoTTestController : public dgsot::AbstractSotExternalInterface {
3939
void cleanupSetSensors(std::map<std::string, dgsot::SensorValues> &sensorsIn);
4040

4141
void getControl(std::map<std::string, dgsot::ControlValues> &anglesOut,
42-
const double& period);
42+
const double &period);
4343

4444
void setNoIntegration(void);
4545
void setSecondOrderIntegration(void);

tests/sot-test-device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void SoTTestDevice::cleanupSetSensors(
297297
}
298298

299299
void SoTTestDevice::getControl(map<string, dgsot::ControlValues> &controlOut,
300-
const double& period) {
300+
const double &period) {
301301
ODEBUG5FULL("start");
302302
sotDEBUGIN(25);
303303
vector<double> anglesOut;

tests/sot-test-device.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SoTTestDevice : public dgsot::Device {
4242
void cleanupSetSensors(std::map<std::string, dgsot::SensorValues> &sensorsIn);
4343

4444
void getControl(std::map<std::string, dgsot::ControlValues> &anglesOut,
45-
const double& period);
45+
const double &period);
4646

4747
void timeStep(double ts) { timestep_ = ts; }
4848

0 commit comments

Comments
 (0)