Synbot Plugin Tutorial - interface to Syn Bot Software

EZ Robot Commands SIML Framework - New command creation step to step

To better illustrate , below are a step to step example some new commandsInstructions are for English configuration.

Adding Take Photo Command

Think first at the phrase structure - can be : "photograph" , "take" or "shoot" or "do" "a photo" , and same ("take" or "shoot" or "do") with "photo" , "picture" ,"a picture" , "snapshot" , "a snapshot"

We have 4 verb forms - Do , Shoot , Take and PhotographDo is already configured - Shoot , Take and Photograph need to be created.We have a complement with several possible forms : picture , photo , a picture , a photo , a photography , ......The best way is to create a complement with CAMERA prefix for exemple CAMERA_PHOTO

Note that in order to be able to understood "Lower sound to minimum" , we add FREEPOSSIBLE and control of free attribute in map VolumemincomplementNote also than in order to be able to understand "Lower Sound to 67", we add a NUMERIC Control Keyword which means that if Free attribute value is not found in map Volumemincomplement A numeric Control will be done to validate or not the free attribute valueNote the option DECODE1 used and the TO mnemonic for preposition authorization flags word and the NOTHE mnemonic for article authorization flag."Lower sound TO min" and "Lower sound TO THE min" will be accepted and will return "min" as free attribute value after decoding.

in map movement_verb1_en , we need to create entries for the new verbs

With redirections to model XXXXXXXPROCESSCOMMAND_SOUND_CHANGE first parameter (UP , DOWN , SET) and second parameter (MAX , MIN , MEAN or number)Note that Variable Complementactionfree is automatically set in the framework either to the third word in entry content of map used to control the free attribute value or if entry not found in map to the decoded value of free attribute.

Where we first get the current EZB Sound volume , next compute the new volume to set depending on UP and Down parameternext test the second parameter if present, and finally build the response message with the EZB Command Setvolume.

We will add some more commands :Sing Less loud and Sing Louder Speak Less loud and Speak louderHere we will use structure [Verb] [Attribute]

Code:

Code:

We add next the combination map entries in map combination_verb_comp_att_posNote we add also a combination entry for Speak without attribute to enable the "speak" input - As ATTNEED - Bot will ask precision to the user