This shows you the differences between the selected revision and the current version of the page.
topics:a_detailed_sample_for_the_robot_control 2009/03/26 22:43 | topics:a_detailed_sample_for_the_robot_control 2009/07/22 13:37 current | ||
---|---|---|---|
Line 5: | Line 5: | ||
File c:\...\PikkuBot\config\**Botfirstname_Botlastname-ROBOT.txt**: | File c:\...\PikkuBot\config\**Botfirstname_Botlastname-ROBOT.txt**: | ||
- | ** Create this file in the \PikkuBot\config\ directory. This file has to contain one Robot command in each line. Parameters follow in the same line separated by a [Tab]. ** \\ | + | ** Create this file in the \PikkuBot\config\ directory. \\ This file has to contain one Robot command in each line. \\ Parameters follow in the same line separated by a [Tab]. ** \\ |
+ | {{blog:tab-key.jpg?100|}} <- that is your TAB-key ;) | ||
+ | |||
+ | ===== A simple sample for the Robot control ===== | ||
+ | |||
+ | <code> | ||
+ | # Simple Robot-script | ||
+ | # you can add every comment with a "#" as first character in a line | ||
+ | |||
+ | sit 58f9545f-2f66-2cf1-cfcc-666c7bdcb9ad | ||
+ | pause 720 | ||
+ | stand | ||
+ | say Ok, battery's loaded again | ||
+ | |||
+ | move 39,234,21 | ||
+ | pause 5 | ||
+ | |||
+ | # I prefer "move" instead of "position" as its not needed that the bot arrives exactly | ||
+ | # at given position, but he gets a time limit with "pause" until it should reach it, | ||
+ | # otherwise goes on with next command.... | ||
+ | |||
+ | move 34,217,21 | ||
+ | pause 10 | ||
+ | |||
+ | move 57,207,21 | ||
+ | pause 15 | ||
+ | |||
+ | # ... | ||
+ | |||
+ | </code> | ||
+ | \\ | ||
+ | ~~UP~~ | ||
+ | ---- | ||
===== A detailed sample for the Robot control ===== | ===== A detailed sample for the Robot control ===== |