Skip to content

Commit

Permalink
Disable collision mgmt while homing and stowing
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fazil committed May 1, 2024
1 parent 52305cf commit 3ae0a33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions body/stretch_body/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ def stow(self):
Cause the robot to move to its stow position
Blocking.
"""
self.disable_collision_mgmt()
self.head.move_to('head_pan', self.get_stow_pos('head_pan'))
self.head.move_to('head_tilt',self.get_stow_pos('head_pan'))

Expand Down Expand Up @@ -608,12 +609,14 @@ def stow(self):
#Make sure wrist yaw is done before exiting
while self.end_of_arm.motors['wrist_yaw'].motor.is_moving():
time.sleep(0.1)
self.enable_collision_mgmt()

def home(self):
"""
Cause the robot to home its joints by moving to hardstops
Blocking.
"""
self.disable_collision_mgmt()
if self.head is not None:
print('--------- Homing Head ----')
self.head.home()
Expand Down Expand Up @@ -646,6 +649,8 @@ def _angle_pitch(angle):
# Home the end-of-arm
if self.end_of_arm is not None:
self.end_of_arm.home()

self.enable_collision_mgmt()
#Let user know it is done
self.pimu.trigger_beep()
self.push_command()
Expand Down

0 comments on commit 3ae0a33

Please sign in to comment.