All Tutorials / Jlucben / Synbot Plugin Tutorial - interface to Syn Bot Software

Synbot Plugin Tutorial - interface to Syn Bot Software

EZ Robots Commands SIML Framework - Configuration - Managing movement Speed

Configuring Movement Speed]

For Global Robot Movement direction control commands ,
a [Speed Adjective] can be used to define movement speed.
Maps move_speed_fr and move_speed_en are used to configure for the suffixed language (fr and en) the text keywords which will be recognized in User Input messages as a [Speed Adjective)

Code:

[Map Name="move_speed_en"]
[MapItem Content="SPEEDNORMAL" Value="NORMAL" /]
[MapItem Content="normally" Value="NORMAL" /]
[MapItem Content="very slowly" Value="VERYSLOW" /]
[MapItem Content="slowly" Value="SLOW" /]
[MapItem Content="at full speed" Value="FULL" /]
[MapItem Content="full speed" Value="FULL" /]
[MapItem Content="quickly" Value="FAST" /]
[MapItem Content="fast" Value="FAST" /]
[MapItem Content="very fast" Value="VERYFAST" /]
[MapItem Content="very quickly" Value="VERYFAST" /]
[/Map]

Value is a one word mnemonic link to the Map move_speed_global in which are defined for the mnemonic link entry speed parameters (valid for every language used).

Code:

 [Map Name="move_speed_global"]
[MapItem Content="NORMAL" Value="100" /]
[MapItem Content="LOWNORMAL" Value="80" /]
[MapItem Content="SLOW" Value="60" /]
[MapItem Content="VERYSLOW" Value="20" /]
[MapItem Content="FULL" Value="255" /]
[MapItem Content="FAST" Value="160" /]
[MapItem Content="VERYFAST" Value="200" /]
[MapItem Content="VERYVERYFAST" Value="230" /]
[MapItem Content="ALMOSTNULL" Value="2" /]
[/Map]

For each Entry is specify the speed value corresponding between 1 to 255 ( See EZ Builder Documentation)

Movement Speed Command]

Maps move_speed_fr and move_speed_en are used to configure for the suffixed language (fr and en) the text keywords which will be recognized in User Input messages as a [Action on speed]

Code:

[Map Name="action_speed_en"]
[MapItem Content="much slower" Value="D 50" /]
[MapItem Content="much faster" Value="I 50" /]
[MapItem Content="much quicker" Value="I 50" /]
[MapItem Content="faster" Value="I 20" /]
[MapItem Content="quicker" Value="I 20" /]
[MapItem Content="slower" Value="D 20" /]
[MapItem Content="slow down" Value="D 20" /]
[MapItem Content="more gently" Value="D 20" /]
[MapItem Content="more slowly" Value="D 20" /]
[MapItem Content="full speed" Value="X 255" /]
[/Map]

Word 1 is a character indicating if action is Decreasing D or Increasing I speed - Value X is reserved for future use

Word 2 is the speed increment or decrement
when several successive commands are input by user , control is done to keep speed values between 0 and 255.