Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safer turn off smoothly #456

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/reachy2_sdk/reachy_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ def turn_off_smoothly(self) -> bool:
self._logger.warning("Cannot turn off Reachy, not connected.")
return False
speed_limit_high = 25
torque_limit_low = 35
# Enough to sustain the arm weight
torque_limit_low = 50
torque_limit_high = 100
duration = 3
arms_list = []
Expand All @@ -548,7 +549,7 @@ def turn_off_smoothly(self) -> bool:
countingTime = 0
while countingTime < duration:
time.sleep(1)
torque_limit_low -= 10
torque_limit_low -= 15
for arm_part in arms_list:
arm_part.set_torque_limits(torque_limit_low)
countingTime += 1
Expand Down