Skip to content

Commit

Permalink
Merge pull request #853 from tue-robotics/MatthijsBurgh-patch-1
Browse files Browse the repository at this point in the history
update send_gripper_goal docstring
  • Loading branch information
MatthijsBurgh committed Jun 8, 2019
2 parents 830678c + e92d11b commit 4d8bbf1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion robot_skills/src/robot_skills/arms.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,14 @@ def has_gripper_type(self, gripper_type=None):
def send_gripper_goal(self, state, timeout=5.0, gripper_type=None):
"""
Tell the gripper to perform a motion.
:param state: New state of the gripper.
:type state: str (GripperState)
:param timeout: Amount of time availble to reach the goal, default is 5
:type timeout: float
:param gripper_type: Optional type of gripper to perform the action.
:type gripper_type: str
:return: succes
:rtype: bool
"""
if gripper_type is None:
gripper_type = self.default_gripper_type
Expand Down Expand Up @@ -597,8 +601,11 @@ def send_gripper_goal(self, state, timeout=5.0):
"""
Send a GripperCommand to the gripper of this arm and wait for finishing
:param state: open or close
:type state: str (GripperState)
:param timeout: timeout in seconds; timeout of 0.0 is not allowed
:type timeout: float
:return: True of False
:rtype: bool
"""
goal = GripperCommandGoal()

Expand Down

0 comments on commit 4d8bbf1

Please sign in to comment.