Skip to content

Commit

Permalink
[place_action/clients] Setting 'release_on_impact' in the place and t…
Browse files Browse the repository at this point in the history
…hrow clients

The field is set to true and false respectively (we want to detect
surface impact while placing, but we don't want to wait for impact while
throwing an object)
  • Loading branch information
alex-mitrevski committed Nov 1, 2020
1 parent d09fb49 commit 8e34872
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class PlaceClient(ActionClientBase):
self.robot_name = param.value

goal.pose = self.get_placing_pose()

# we want to place the object by detecting impact with the placing surface
goal.release_on_impact = True

return goal

def get_placing_pose(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class ThrowClient(ActionClientBase):
self.robot_name = param.value

goal.pose = self.get_throwing_pose()

# we don't want to wait for impact when throwing the object
goal.release_on_impact = False

return goal

def get_throwing_pose(self):
Expand Down

0 comments on commit 8e34872

Please sign in to comment.