Skip to content

Commit 1f722a8

Browse files
authored
Merge pull request #1238 from tue-robotics/fix/active_grasp_detector_outcomes
Added missing underscore
2 parents d75394a + 641205b commit 1f722a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robot_smach_states/src/robot_smach_states/manipulation/active_grasp_detector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, robot: Robot, arm_designator: ArmDesignator, threshold_differ
3030
:param max_torque: Max torque of the gripper to perform the test with
3131
"""
3232

33-
smach.State.__init__(self, outcomes=['true', 'false', 'failed', 'cannot determine'])
33+
smach.State.__init__(self, outcomes=['true', 'false', 'failed', 'cannot_determine'])
3434
self.robot = robot
3535

3636
self.arm_designator = arm_designator
@@ -53,7 +53,7 @@ def execute(self, userdata=None) -> str:
5353
return 'failed'
5454
elif first_position < self.minimum_position:
5555
rospy.logdebug("First position is {}".format(first_position))
56-
return 'cannot determine'
56+
return 'cannot_determine'
5757

5858
else:
5959
if not arm.gripper.send_goal('close', max_torque=self.max_torque): # Attempts to close the gripper

0 commit comments

Comments
 (0)