Skip to content

Commit

Permalink
Remove elapsed time prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
simheo committed Oct 29, 2024
1 parent 9dce143 commit b4ba5e9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/reachy2_sdk/reachy_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,6 @@ def turn_off_smoothly(self) -> bool:
duration = 3
arms_list = []

tic = time.time()

if hasattr(self, "_mobile_base") and self._mobile_base is not None:
self._mobile_base._turn_off()
for part in self.info._enabled_parts.values():
Expand All @@ -542,8 +540,6 @@ def turn_off_smoothly(self) -> bool:
arms_list.append(part)
else:
part._turn_off()
elapsed_time = time.time() - tic
print(f"1 : {elapsed_time}")

countingTime = 0
while countingTime < duration:
Expand All @@ -553,16 +549,10 @@ def turn_off_smoothly(self) -> bool:
arm_part.set_torque_limits(torque_limit_low)
countingTime += 1

elapsed_time = time.time() - tic
print(f"2 : {elapsed_time}")

for arm_part in arms_list:
arm_part._turn_off()
arm_part.set_torque_limits(torque_limit_high)

elapsed_time = time.time() - tic
print(f"3 : {elapsed_time}")

time.sleep(0.5)
return True

Expand Down

0 comments on commit b4ba5e9

Please sign in to comment.