Skip to content

Commit 5bacddf

Browse files
committed
add outcome for the object not grasped
1 parent b56e24f commit 5bacddf

File tree

1 file changed

+5
-2
lines changed
  • robot_smach_states/src/robot_smach_states/manipulation

1 file changed

+5
-2
lines changed

robot_smach_states/src/robot_smach_states/manipulation/grab.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,13 @@ def __init__(self, robot: Robot, item: Designator, arm: ArmDesignator, retry: bo
390390
'failed': 'done',
391391
'cannot_determine': 'SAY_RETRY_NOT_SUCCEEDED'})
392392

393-
smach.StateMachine.add('SAY_RETRY_NOT_SUCCEEDED', Say(robot, "I failed grasping the object"),
394-
transitions={'spoken': 'RESET_FAILURE'})
393+
smach.StateMachine.add('SAY_RETRY_NOT_SUCCEEDED', Say(robot, "I failed grasping the object again"),
394+
transitions={'spoken': 'RESET_NOT_GRASPED'})
395395

396396
smach.StateMachine.add('RESET_FAILURE', ResetOnFailure(robot, arm),
397397
transitions={'done': 'failed'})
398398

399+
smach.StateMachine.add('RESET_NOT_GRASPED', ResetOnFailure(robot, arm),
400+
transitions={'done': 'object_not_grasped'})
401+
399402
check_arm_requirements(self, robot)

0 commit comments

Comments
 (0)