Skip to content

Commit b41f2ba

Browse files
Updated demo
1 parent fa33068 commit b41f2ba

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

harmoni_core/harmoni_decision/config/configuration.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ demo:
1515
tts: ["default"]
1616
face: ["default"]
1717
speaker: ["default"]
18-
gesture: ["qt"]
18+
demo2:
19+
gesture: ["qt"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<launch><include file="$(find harmoni_gesture)/launch/gesture_service.launch"><arg name="instance_id" value="qt" /></include></launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<launch><include file="$(find harmoni_tts)/launch/tts_service.launch"><arg name="instance_id" value="default" /></include><include file="$(find harmoni_face)/launch/face_service.launch"><arg name="instance_id" value="default" /></include><include file="$(find harmoni_speaker)/launch/speaker_service.launch"><arg name="instance_id" value="default" /></include></launch>

harmoni_core/harmoni_pattern/pattern_scripting/speak_for_demo.json

+27-19
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
{
33
"set": "sequence",
44
"steps": [
5+
{
6+
"gesture_qt": {
7+
"action_goal": "DO",
8+
"resource_type": "actuator",
9+
"wait_for": "",
10+
"trigger": "{'gesture':'QT/bye', 'timing': 0.5}"
11+
}
12+
},
513
{
614
"tts_default": {
715
"action_goal": "REQUEST",
816
"resource_type": "service",
917
"wait_for": "new",
10-
"trigger": "Hi Ashley, how are you doing today? I know it has been a tough time lately."
18+
"trigger": "Hey Ashley, it is good to see you! How are you doing today?"
1119
}
1220
},
1321
[
@@ -18,14 +26,6 @@
1826
"wait_for": ""
1927
}
2028
},
21-
{
22-
"gesture_qt": {
23-
"action_goal": "DO",
24-
"resource_type": "actuator",
25-
"wait_for": "",
26-
"trigger": "{'gesture':'QT/bye', 'timing': 0.5}"
27-
}
28-
},
2929
{
3030
"face_mouth_default": {
3131
"action_goal": "DO",
@@ -39,12 +39,20 @@
3939
{
4040
"set": "sequence",
4141
"steps": [
42+
{
43+
"gesture_qt": {
44+
"action_goal": "DO",
45+
"resource_type": "actuator",
46+
"wait_for": "",
47+
"trigger": "{'gesture':'QT/sad', 'timing': 0.5}"
48+
}
49+
},
4250
{
4351
"tts_default": {
4452
"action_goal": "REQUEST",
4553
"resource_type": "service",
4654
"wait_for": "new",
47-
"trigger": "That is good to hear, thank you for sharing."
55+
"trigger": "Thank you for sharing. It sounds as though you are having a hard time with frustration right now. Would you like to expand on that? We can talk more about why you are feeling frustrated."
4856
}
4957
},
5058
[
@@ -55,22 +63,22 @@
5563
"wait_for": ""
5664
}
5765
},
58-
{
59-
"gesture_qt": {
60-
"action_goal": "DO",
61-
"resource_type": "actuator",
62-
"wait_for": "",
63-
"trigger": "{'gesture':'QT/bye', 'timing': 0.5}"
64-
}
65-
},
6666
{
6767
"face_mouth_default": {
6868
"action_goal": "DO",
6969
"resource_type": "actuator",
7070
"wait_for": "new"
7171
}
7272
}
73-
]
73+
],
74+
{
75+
"gesture_qt": {
76+
"action_goal": "DO",
77+
"resource_type": "actuator",
78+
"wait_for": "new",
79+
"trigger": "{'gesture':'QT/bye', 'timing': 0.5}"
80+
}
81+
}
7482
]
7583
}
7684
]

0 commit comments

Comments
 (0)