Skip to content

Commit 6127055

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/roscontrol-sot-controller.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,8 @@ void RCSotController::readControl(
945945

946946
} else {
947947
ROS_INFO_STREAM("no control.");
948-
localStandbyEffortControlMode(ros::Duration(dt_/subSampling_));
949-
localStandbyVelocityControlMode(ros::Duration(dt_/subSampling_));
948+
localStandbyEffortControlMode(ros::Duration(dt_ / subSampling_));
949+
localStandbyVelocityControlMode(ros::Duration(dt_ / subSampling_));
950950
localStandbyPositionControlMode();
951951
}
952952
}
@@ -982,7 +982,7 @@ void RCSotController::one_iteration() {
982982

983983
// Wait until last subsampling step to write result in controlValues_
984984
while (step_ != subSampling_ - 1) {
985-
ros::Duration(.01 * dt_/subSampling_).sleep();
985+
ros::Duration(.01 * dt_ / subSampling_).sleep();
986986
}
987987
// mutex
988988
mutex_.lock();
@@ -1087,7 +1087,7 @@ void RCSotController::localStandbyPositionControlMode() {
10871087
}
10881088

10891089
void RCSotController::computeSubSampling() {
1090-
if ((subSampling_ != 1) && !thread_created_){
1090+
if ((subSampling_ != 1) && !thread_created_) {
10911091
step_ = subSampling_ - 1;
10921092
ROS_INFO_STREAM("Subsampling SoT graph computation by ratio "
10931093
<< subSampling_);

0 commit comments

Comments
 (0)