From 2f0c20b6bbec8a59c64b5026fa0041f4ea486132 Mon Sep 17 00:00:00 2001
From: Lukas Hindemith <lukas.hindemith@web.de>
Date: Thu, 4 May 2017 09:38:53 +0200
Subject: [PATCH] changes

---
 psConfig/tasks/restaurant/restaurant.conf    |  6 ++++++
 psGrammar/tasks/restaurant/anotherGuest.jsgf |  9 +++++++++
 psGrammar/tasks/restaurant/goTable.jsgf      | 11 ++++++++---
 psGrammar/tasks/restaurant/order.jsgf        |  4 ++--
 4 files changed, 25 insertions(+), 5 deletions(-)
 create mode 100644 psGrammar/tasks/restaurant/anotherGuest.jsgf

diff --git a/psConfig/tasks/restaurant/restaurant.conf b/psConfig/tasks/restaurant/restaurant.conf
index 18b2ca02..a3331785 100644
--- a/psConfig/tasks/restaurant/restaurant.conf
+++ b/psConfig/tasks/restaurant/restaurant.conf
@@ -27,3 +27,9 @@ rsbscope=/speechrec/psa/goTable;
 bestpath=no;
 autoload=yes;
 
+[pocketsphinxinstance]
+name=anotherGuest;
+jsgf=../../../psGrammar/tasks/restaurant/anotherGuest.jsgf;
+rsbscope=/speechrec/psa/anotherGuest;
+bestpath=no;
+autoload=yes;
diff --git a/psGrammar/tasks/restaurant/anotherGuest.jsgf b/psGrammar/tasks/restaurant/anotherGuest.jsgf
new file mode 100644
index 00000000..8cf4e865
--- /dev/null
+++ b/psGrammar/tasks/restaurant/anotherGuest.jsgf
@@ -0,0 +1,9 @@
+#JSGF V1.0;
+grammar restaurant_save_command;
+
+public <restaurant> = [<title>] (<wait> | <stop>);
+
+<title> = tobi | biron;
+
+<wait> = wait;
+<stop> = stop;
diff --git a/psGrammar/tasks/restaurant/goTable.jsgf b/psGrammar/tasks/restaurant/goTable.jsgf
index 86708d3c..8df72071 100644
--- a/psGrammar/tasks/restaurant/goTable.jsgf
+++ b/psGrammar/tasks/restaurant/goTable.jsgf
@@ -1,11 +1,16 @@
 #JSGF V1.0;
 grammar restaurant_save_command;
 
-public <restaurant> = <title> (<go> | <wait>);
-<title> = <tobititle> | <robottitle>;
+public <restaurant> = (<tobigo> | <tobiwait> | <robotgo> | <robotwait>);
+
+<tobigo> = <tobititle> <go>;
+<tobiwait> = <tobititle> <wait>;
+
+<robotgo> = <robottitle> <go>;
+<robotwait> = <robottitle> <wait>;
 
 <tobititle> = tobi | biron;
-<robottitle> = robot;
+<robottitle> = lisa | homer | sergio | amigo;
 
 <go> =  [please] (take the order) [please];
 <wait> = wait | stop;
diff --git a/psGrammar/tasks/restaurant/order.jsgf b/psGrammar/tasks/restaurant/order.jsgf
index 7f6727a3..c0a79ded 100644
--- a/psGrammar/tasks/restaurant/order.jsgf
+++ b/psGrammar/tasks/restaurant/order.jsgf
@@ -6,5 +6,5 @@ public <restaurant> = ([tobi] [bring me] [one | a ] <objects> [please]);
 <objects> = (<drinks> | <combo>);
 <combo> = (<food> (and | with) <food>);
 
-<drinks> = ((coconut milk) | (beer) | (coke) | (tea));
-<food> = ((apple) | (paprika) | (pumpernickel) | (chips) | (pretzels) | (pringles) | (biscuits) | (choco syrup) | (baby sweets) | (egg));
+<drinks> = ((banana milk) | (cappuccino) | (coke) | (orange drink) | (water));
+<food> = ((apple) | (bread) | (cereals) | (pear) | (chocolate cookies) | (party cracker) | (corn flakes) | (crackers) | (lemon) | (noodles) | (pepper) | (potato soup) | (potato) | (pringles) | (salt) | (tomato pasta) | (egg));
-- 
GitLab