Skip to content

Commit fcf298a

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

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/log.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void Log::record(DataToLog &aDataToLog) {
9292
for (unsigned int axis = 0; axis < 3; axis++) {
9393
if (StoredData_.accelerometer.size() >= lrefts_ * 3 + 3)
9494
StoredData_.accelerometer[lrefts_ * 3 + axis] =
95-
aDataToLog.accelerometer[axis];
95+
aDataToLog.accelerometer[axis];
9696
}
9797
for (unsigned int axis = 0; axis < 3; axis++) {
9898
if (StoredData_.gyrometer.size() >= lrefts_ * 3 + 3)
@@ -102,10 +102,10 @@ void Log::record(DataToLog &aDataToLog) {
102102

103103
for (unsigned int fsID = 0; fsID < profileLog_.nbForceSensors; fsID++) {
104104
for (unsigned int axis = 0; axis < 6; axis++) {
105-
if (StoredData_.force_sensors.size() > lrefts_ * width_pad +
106-
(profileLog_.nbForceSensors - 1) * 6 + 5)
105+
if (StoredData_.force_sensors.size() >
106+
lrefts_ * width_pad + (profileLog_.nbForceSensors - 1) * 6 + 5)
107107
StoredData_.force_sensors[lrefts_ * width_pad + fsID * 6 + axis] =
108-
aDataToLog.force_sensors[fsID * 6 + axis];
108+
aDataToLog.force_sensors[fsID * 6 + axis];
109109
}
110110
}
111111

@@ -114,8 +114,8 @@ void Log::record(DataToLog &aDataToLog) {
114114

115115
if (StoredData_.timestamp.size() > lrefts_) {
116116
StoredData_.timestamp[lrefts_] =
117-
((double)current.tv_sec + 0.000001 * (double)current.tv_usec) -
118-
timeorigin_;
117+
((double)current.tv_sec + 0.000001 * (double)current.tv_usec) -
118+
timeorigin_;
119119

120120
StoredData_.duration[lrefts_] = time_stop_it_ - time_start_it_;
121121
}

src/roscontrol-sot-controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ bool RCSotController::readParamsJointNames(ros::NodeHandle &robot_nh) {
557557
}
558558
}
559559
} else {
560-
ROS_ERROR("ROS parameter \"/sot_controller/joint_names\" shoud be defined.")
561-
;
560+
ROS_ERROR(
561+
"ROS parameter \"/sot_controller/joint_names\" shoud be defined.");
562562
return false;
563563
}
564564

0 commit comments

Comments
 (0)