Skip to content

Commit 696a1c5

Browse files
GustavoDCCIasonTheodorou
authored andcommitted
Remove process answer for drink (HMIResult)
1 parent 328dd9c commit 696a1c5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

challenge_receptionist/src/challenge_receptionist/learn_guest.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def __init__(self, robot,
4545

4646
self.drink_spec_des = ds.Designator(challenge_knowledge.common.drink_spec, name='drink_spec')
4747
reset_des = ds.VariableDesignator(resolve_type=bool).writeable
48-
answer = ds.VariableDesignator(resolve_type=HMIResult)
4948

5049
with self:
5150
smach.StateMachine.add('GOTO_DOOR',
@@ -134,14 +133,10 @@ def __init__(self, robot,
134133
else:
135134
smach.StateMachine.add('HEAR_DRINK_ANSWER',
136135
HearOptionsExtraPicoVoice(
137-
robot, "receptionist", answer.writeable, "drinks", look_at_standing_person=True),
138-
transitions={'heard': 'PROCESS_ANSWER',
136+
robot, "receptionist", guest_drink_des.writeable, ["drinks"], look_at_standing_person=True),
137+
transitions={'heard': 'RESET_1',
139138
'no_result': 'CHECK_TRIES'})
140139

141-
smach.StateMachine.add('PROCESS_ANSWER',
142-
smach.CBState(process_answer, cb_args=["drink", answer, guest_drink_des.writeable]),
143-
transitions={"succeeded": "RESET_1", "failed": "CHECK_TRIES"})
144-
145140
smach.StateMachine.add("CHECK_TRIES",
146141
CheckTries(max_tries=3, reset_des=reset_des),
147142
transitions={"not_yet": "SAY_DRINK_QUESTION", "max_tries": "DEFAULT_DRINK"})

0 commit comments

Comments
 (0)