From 5c8f5e2c4e74f36648f2cee6084336a134446308 Mon Sep 17 00:00:00 2001
From: Leroy Ruegemer <lruegeme@techfak.uni-bielefeld.de>
Date: Mon, 28 Mar 2016 18:00:42 +0200
Subject: [PATCH] restaurant

---
 psConfig/tasks/restaurant/restaurant.conf     |  41 +++++++++++++++++
 psConfig/tasks/restaurant/restaurantOLD.conf  |  42 ++++++++++++++++++
 .../tasks/restaurant/.order.jsgf.kate-swp     | Bin 0 -> 104 bytes
 psGrammar/tasks/restaurant/commands.jsgf      |   9 ++++
 psGrammar/tasks/restaurant/goTable.jsgf       |   6 +++
 psGrammar/tasks/restaurant/old/ordering.jsgf  |  13 ++++++
 .../tasks/restaurant/old/saveCommand.jsgf     |  11 +++++
 psGrammar/tasks/restaurant/order.jsgf         |  12 +++++
 psGrammar/tasks/restaurant/saveTable.jsgf     |  10 +++++
 9 files changed, 144 insertions(+)
 create mode 100644 psConfig/tasks/restaurant/restaurant.conf
 create mode 100644 psConfig/tasks/restaurant/restaurantOLD.conf
 create mode 100644 psGrammar/tasks/restaurant/.order.jsgf.kate-swp
 create mode 100644 psGrammar/tasks/restaurant/commands.jsgf
 create mode 100644 psGrammar/tasks/restaurant/goTable.jsgf
 create mode 100644 psGrammar/tasks/restaurant/old/ordering.jsgf
 create mode 100644 psGrammar/tasks/restaurant/old/saveCommand.jsgf
 create mode 100644 psGrammar/tasks/restaurant/order.jsgf
 create mode 100644 psGrammar/tasks/restaurant/saveTable.jsgf

diff --git a/psConfig/tasks/restaurant/restaurant.conf b/psConfig/tasks/restaurant/restaurant.conf
new file mode 100644
index 00000000..be044a52
--- /dev/null
+++ b/psConfig/tasks/restaurant/restaurant.conf
@@ -0,0 +1,41 @@
+[main]
+startdb=43;
+uttdb=47;
+silence=400;
+timeout=8;
+openDeviceDirectly=yes;
+
+[pocketsphinxinstance]
+name=confirm;
+jsgf=../../psGrammar/confirm/confirm.jsgf;
+rsbscope=/speechrec/psa/confirm;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=ordering;
+jsgf=../../psGrammar/tasks/restaurant/order.jsgf;
+rsbscope=/speechrec/psa/ordering;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=goTable;
+jsgf=../../psGrammar/tasks/restaurant/goTable.jsgf;
+rsbscope=/speechrec/psa/goTable;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=saveTable;
+jsgf=../../psGrammar/tasks/restaurant/saveTable.jsgf;
+rsbscope=/speechrec/psa/saveTable;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=commands;
+jsgf=../../psGrammar/tasks/restaurant/commands.jsgf;
+rsbscope=/speechrec/psa/commands;
+bestpath=no;
+autoload=yes;
diff --git a/psConfig/tasks/restaurant/restaurantOLD.conf b/psConfig/tasks/restaurant/restaurantOLD.conf
new file mode 100644
index 00000000..056bbca0
--- /dev/null
+++ b/psConfig/tasks/restaurant/restaurantOLD.conf
@@ -0,0 +1,42 @@
+[main]
+startdb=47;
+uttdb=52;
+silence=400;
+timeout=8;
+openDeviceDirectly=yes;
+
+[pocketsphinxinstance]
+name=confirm;
+hmm=/vol/robocup/2014/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k;
+dict=/vol/robocup/2014/share/SpeechRec/psGrammar/dictionary/tobiDic.dic;
+jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/confirm/confirm.jsgf;
+rsbscope=/speechrec/psa/confirm;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=ordering;
+hmm=/vol/robocup/2014/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k;
+dict=/vol/robocup/2014/share/SpeechRec/psGrammar/dictionary/tobiDic.dic;
+jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/ordering.jsgf;
+rsbscope=/speechrec/psa/ordering;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=saveCommand;
+hmm=/vol/robocup/2014/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k;
+dict=/vol/robocup/2014/share/SpeechRec/psGrammar/dictionary/tobiDic.dic;
+jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/saveCommand.jsgf;
+rsbscope=/speechrec/psa/saveCommand;
+bestpath=no;
+autoload=yes;
+
+[pocketsphinxinstance]
+name=otherCommand;
+hmm=/vol/robocup/2014/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k;
+dict=/vol/robocup/2014/share/SpeechRec/psGrammar/dictionary/tobiDic.dic;
+jsgf=/vol/robocup/2014/share/SpeechRec/psGrammar/restaurant/otherCommand.jsgf;
+rsbscope=/speechrec/psa/otherCommand;
+bestpath=no;
+autoload=yes;
diff --git a/psGrammar/tasks/restaurant/.order.jsgf.kate-swp b/psGrammar/tasks/restaurant/.order.jsgf.kate-swp
new file mode 100644
index 0000000000000000000000000000000000000000..738627be8ae553857d9420819f291b70c6c2f07e
GIT binary patch
literal 104
zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn@MzmNeR;<I^soN!Px{O`&>I{C6lDft
eDIk`1g>%J#TyfW6PpGUUkY-ds@Ik5>Yg_?AKNJxF

literal 0
HcmV?d00001

diff --git a/psGrammar/tasks/restaurant/commands.jsgf b/psGrammar/tasks/restaurant/commands.jsgf
new file mode 100644
index 00000000..6b556526
--- /dev/null
+++ b/psGrammar/tasks/restaurant/commands.jsgf
@@ -0,0 +1,9 @@
+#JSGF V1.0;
+grammar restaurant_save_command;
+
+public <restaurant> = [tobi] [please] (<followMe> | <stop> | <place> | <table>);
+<followMe> = ((follow me) | (come [(with me) | here]) | (keep up));
+<stop> = (stop [this]);
+<place> = (save (place | location));
+<table> = (this [is] table <number>);
+<number> = (one | two | three);
diff --git a/psGrammar/tasks/restaurant/goTable.jsgf b/psGrammar/tasks/restaurant/goTable.jsgf
new file mode 100644
index 00000000..5a63408d
--- /dev/null
+++ b/psGrammar/tasks/restaurant/goTable.jsgf
@@ -0,0 +1,6 @@
+#JSGF V1.0;
+grammar restaurant_save_command;
+
+public <restaurant> = [tobi] [please] [(take a oder from) | (go to)] <deliveryLocations> [please];
+<deliveryLocations> = (table <numberOfTable>);
+<numberOfTable> = (one | two | three | four | five | six | seven | eight | nine);
\ No newline at end of file
diff --git a/psGrammar/tasks/restaurant/old/ordering.jsgf b/psGrammar/tasks/restaurant/old/ordering.jsgf
new file mode 100644
index 00000000..5fdc54d0
--- /dev/null
+++ b/psGrammar/tasks/restaurant/old/ordering.jsgf
@@ -0,0 +1,13 @@
+#JSGF V1.0;
+grammar restaurant_ordering;
+
+public <restaurant> = ([tobi] [please] bring <objects> to <deliveryLocations>);
+
+<deliveryLocations> = (table <numberOfTable>);
+
+<numberOfTable> = (one | two | three | four | five | six | seven | eight | nine);
+
+<objects> = (<drinks> | <snacks>);
+
+<drinks> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water;
+<snacks> = (chocolate cookies) | chips | biscuits | bread | pringles | (strawberry cookies);
diff --git a/psGrammar/tasks/restaurant/old/saveCommand.jsgf b/psGrammar/tasks/restaurant/old/saveCommand.jsgf
new file mode 100644
index 00000000..30cf8e4b
--- /dev/null
+++ b/psGrammar/tasks/restaurant/old/saveCommand.jsgf
@@ -0,0 +1,11 @@
+#JSGF V1.0;
+grammar restaurant_save_command;
+
+public <restaurant> = ([tobi] [please] save ( <deliveryLocations> | <objectCategory> ) [[to | on] [the | my]] ( <savePlaceLeft> | <savePlaceRight> | <savePlaceFront> | <savePlaceBack> ));
+<savePlaceFront> = front;
+<savePlaceBack> = back;
+<savePlaceLeft> = left;
+<savePlaceRight> = right;
+<deliveryLocations> = (table <numberOfTable>);
+<numberOfTable> = (one | two | three);
+<objectCategory> = (drinks | snacks);
diff --git a/psGrammar/tasks/restaurant/order.jsgf b/psGrammar/tasks/restaurant/order.jsgf
new file mode 100644
index 00000000..d387465f
--- /dev/null
+++ b/psGrammar/tasks/restaurant/order.jsgf
@@ -0,0 +1,12 @@
+#JSGF V1.0;
+grammar restaurant_ordering;
+
+public <restaurant> = ([tobi] [bring me] [one | a ] <objects> [please]);
+
+<objects> = (<drinks> | <combo>);
+<combo> = (<item> (and | with) <item>);
+<item> = (<snacks> | <food>);
+
+<drinks> = ((green tea) | (papaya milk) | (pure milk) | water | (orange juice) | (beer));
+<food> = ((coconut cereals) | (coco balls) | (egg stars) | (gram soup) | (bean sauce) | (apple) | (lemon) | (pear));
+<snacks> = ((biscuits) | (bubble gum) | (chocolates) | (tomato chips) | (barbeque chips) | (honey chips));
\ No newline at end of file
diff --git a/psGrammar/tasks/restaurant/saveTable.jsgf b/psGrammar/tasks/restaurant/saveTable.jsgf
new file mode 100644
index 00000000..d9b33a49
--- /dev/null
+++ b/psGrammar/tasks/restaurant/saveTable.jsgf
@@ -0,0 +1,10 @@
+#JSGF V1.0;
+grammar restaurant_save_command;
+
+public <restaurant> = [tobi] [please] [save] ( <deliveryLocations> ) [[to | on] [the | my]] ( <savePlaceLeft> | <savePlaceRight> | <savePlaceFront> | <savePlaceBack> );
+<savePlaceFront> = front;
+<savePlaceBack> = back;
+<savePlaceLeft> = left;
+<savePlaceRight> = right;
+<deliveryLocations> = table <numberOfTable>;
+<numberOfTable> = (one | two | three | four | five | six | seven | eight | nine);
\ No newline at end of file
-- 
GitLab