Skip to content

Commit

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

The field is set to true and false respectively (we want to detect
impact while placing, but not while throwing)
  • Loading branch information
alex-mitrevski committed Nov 1, 2020
1 parent d09fb49 commit 370465a
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 implact 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 370465a

Please sign in to comment.