diff --git a/gestures/call_911.py b/gestures/call_911.py index 8e0e4f89..75aa2631 100644 --- a/gestures/call_911.py +++ b/gestures/call_911.py @@ -1,6 +1,7 @@ def call_911(): #i01.startedGesture() - i01.speakBlocking("I am calling 9.1.1.") + if runtime.isStarted('i01.chatBot'): + i01_chatBot.getResponse("call_911_1") i01.setHandSpeed("left", 500.0, 500.0, 500.0, 500.0, 500.0, 500.0) i01.setHandSpeed("right", 500.0, 500.0, 500.0, 500.0, 500.0, 500.0) i01.setArmSpeed("left", 500.0, 500.0, 500.0, 500.0) @@ -21,8 +22,9 @@ def call_911(): sleep(0.5) i01_audioPlayer.playFileBlocking('resource/InMoov2/system/sounds/911.mp3') sleep(0.5) - i01.speakBlocking("Help, I am calling because there is a human that wants to hurt me!!") + if runtime.isStarted('i01.chatBot'): + i01_chatBot.getResponse("call_911_2") i01.moveHead(90,90) - sleep(0.2) + sleep(0.5) i01.finishedGesture() relax() diff --git a/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml b/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml index 24162914..9fa5b054 100644 --- a/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml +++ b/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml @@ -85,5 +85,17 @@ I think it is a ball. + + call_911_1 + + + + call_911_2 + + diff --git a/peers/ProgramAB/fr-FR/aiml/_inmoovChatBot.aiml b/peers/ProgramAB/fr-FR/aiml/_inmoovChatBot.aiml index 429509a1..176df046 100644 --- a/peers/ProgramAB/fr-FR/aiml/_inmoovChatBot.aiml +++ b/peers/ProgramAB/fr-FR/aiml/_inmoovChatBot.aiml @@ -334,27 +334,35 @@ WAKE_UP diff --git a/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml b/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml index 5b3e92c5..79d78a8d 100644 --- a/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml +++ b/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml @@ -1,95 +1,123 @@ - + -ABOUT_1 -