From ee7eb2bcb3c7afc39ccfe92cbef7181ac05b7fe9 Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Mon, 2 Dec 2024 10:59:19 +0100 Subject: [PATCH 1/5] Add files via upload --- gestures/call_911.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gestures/call_911.py b/gestures/call_911.py index 8e0e4f891..75aa26315 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() From f310ac5066c47c919adbdb8241d0e5c96c55c37f Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Mon, 2 Dec 2024 11:01:30 +0100 Subject: [PATCH 2/5] add call_911 --- .../ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml b/peers/ProgramAB/en-US/aiml/_inmoovGestureResponse.aiml index 241629149..9fa5b0548 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 + + From c53b715906146c7d64fcb2b0b4b7ade0aad3df9b Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Mon, 2 Dec 2024 11:02:28 +0100 Subject: [PATCH 3/5] add call_911 --- .../fr-FR/aiml/_inmoovGesturesResponse.aiml | 150 +++++++++++------- 1 file changed, 89 insertions(+), 61 deletions(-) diff --git a/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml b/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml index 5b3e92c53..79d78a8d9 100644 --- a/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml +++ b/peers/ProgramAB/fr-FR/aiml/_inmoovGesturesResponse.aiml @@ -1,95 +1,123 @@ - + -ABOUT_1 -