Appendix B: Reaction Implementation
(Words in Italics represent Conversational Phenomena, see section 4.4.3)
ReactToOwnMovement and ReactToMovement
--> LookAtPartner
ReactToApproach
--> Reacting
ReactToCloseApproach
If Already Saluted at Distance --> CloseSalutation
ReactToOwnInitiative
--> ShowWillingness
ReactToInitiative
If SELF.AVAILABLE
If in CONVERSATIONAL RANGE --> CloseSalutation
Else If in REACTIONAL RANGE --> DistanceSalutation
Else
If in REACTIONAL RANGE --> Reacting
ReactToBreakAway
If SELF.BREAKAWAY --> Farewell
ReactToSpeech
If it is the current partner that is speaking --> LookAtPartner
Else --> Reacting
Say (utterance start)
If long utterance --> Planning
Say (each word)
--> AccompanyWord
Say (utterance end)
If SELF.BREAKAWAY and PARTNER.BREAKAWAY --> Farewell
Else --> GiveFloor