diff --git a/psConfig/demos/demoErsti.conf b/psConfig/demos/demoErsti.conf index 6a7b4b62eae30b777617843b0b809a6c03732c60..c72793fc5badce25eaeecade3b803f045c9c46ef 100644 --- a/psConfig/demos/demoErsti.conf +++ b/psConfig/demos/demoErsti.conf @@ -13,6 +13,13 @@ rsbscope=/speechrec/psa/confirm; bestpath=no; autoload=yes; +[pocketsphinxinstance] +name=stop; +rsbscope=/speechrec/psa/stop; +jsgf=../../psGrammar/confirm/stop.jsgf; +bestpath=no; +autoload=yes; + [pocketsphinxinstance] name=commands; rsbscope=/speechrec/psa/commands; @@ -21,8 +28,22 @@ bestpath=no; autoload=yes; [pocketsphinxinstance] -name=commands; -rsbscope=/speechrec/psa/actions; -jsgf=../../psGrammar/demos/demoErsti/actions.jsgf; +name=objects; +rsbscope=/speechrec/psa/objects; +jsgf=../../psGrammar/demos/demoErsti/objects.jsgf; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=learning; +rsbscope=/speechrec/psa/learning; +jsgf=../../psGrammar/demos/learning.jsgf; +bestpath=no; +autoload=yes; + +[pocketsphinxinstance] +name=listen; +rsbscope=/speechrec/psa/listen; +jsgf=../../psGrammar/demos/listen.jsgf; bestpath=no; autoload=yes; diff --git a/psGrammar/demos/demoErsti/commands.jsgf b/psGrammar/demos/demoErsti/commands.jsgf index 1807ef716601d27fd644d7c4551b2a7e3e7221ac..cda48d66e6f378dad433b469d105e70fbbd0f0f9 100644 --- a/psGrammar/demos/demoErsti/commands.jsgf +++ b/psGrammar/demos/demoErsti/commands.jsgf @@ -1,26 +1,37 @@ #JSGF V1.0; grammar commands; -public <command> = [<robot>] ( <followMe> | <stop> | <ordering> | <learn> | <rec> | <count> | <explain> | <goto> | <hand> | <see> | <save> | <who> | <gripper> | <demo> | <grasp> | <kitchenDrawer> | <cleanup> | <setTable> | <lookAt> ); +public <command> = [<robot>] ( <introduce> | <save> | <wait> | <goTo> | <followMe> | <followHand> | <gravity> | <exit> | <lookAt> | <trash> | <drop> | <nothing> | <search> | <describe> | <difference> | <take> | <give> | <count> | <explain> ); -<robot> = (tiago | robot | tobi); +<robot> = (tobi | robot | tiago); + +<introduce> = (introduce yourself) | (who are you); -<followMe> = (follow me); -<stop> = (stop); -<ordering> = (start taking orders) | (take my order); -<learn> = (learn a person); -<rec> = (recognize me); -<count> = (count the people); -<explain> = (what can you do) | (explain your skills); -<goto> = (go to location); -<hand> = (wait for waving); -<see> = (tell me what you see); <save> = (save location); -<who> = (who are you); -<gripper> = (show me your gripper); -<demo> = (end the (demonstration | demo)); -<grasp> = ((grasp | give ) [me] ( an | the ) object); -<kitchenDrawer> = (tell me about the kitchen); -<cleanup> = (clean up the table); -<setTable> = (set the table); +<wait> = (wait for me); +<goTo> = (go to location); + +<followMe> = (follow me); +<followHand> = (come with me); + +<gravity> = (gravity compensation) | (show me your gripper) | (switch to gravity mode); + +<exit> = (end the (demonstration | demo)) + <lookAt> = (look at camera one | look at the camera); + +<trash> = (((take out the trash) | (take out the garbage))); +<drop> = (((throw it away))); +<nothing> = (do nothing); + +<search> = ( search for [a] [waving] person); + +<describe> = (tell me what you see); +<difference> = (spot the difference); + +<take> = (handover); +<give> = (((give it to me) | (give me the object))); + +<count> = (count the people); + +<explain> = (what can you do) | (explain your skills); \ No newline at end of file diff --git a/psGrammar/demos/demoErsti/object.jsgf b/psGrammar/demos/demoErsti/object.jsgf new file mode 100644 index 0000000000000000000000000000000000000000..c98b10ba6f2a0463339d6f00f1d629b38d7e666a --- /dev/null +++ b/psGrammar/demos/demoErsti/object.jsgf @@ -0,0 +1,15 @@ +#JSGF V1.0; +grammar ToBI_object; +public <statement> = [<verb>] [<article>] <objects> [please]; + +<objects> = <object>; +<object> = <grab_object>; + +<grab_object> = <cleaning_class> | <food_class> | <other_class> | anything; + +<cleaning_class> = cloth | soap | sponge; +<food_class> = salt | apple | pringles | cereals | cornflakes | peas | (coconut milk); +<other_class> = trash | garbage ; + +<verb> = (bring me) | bring | carry | retrieve | fetch | get | remember | memorize; +<article> = the | an | some | a | this; \ No newline at end of file