This shows you the differences between the selected revision and the current version of the page.
topics:a_detailed_sample_for_the_robot_control 2008/11/22 17:44 | 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 ===== | ||
Line 46: | Line 78: | ||
# wait a short while | # wait a short while | ||
# | # | ||
- | sleep 3 | + | pause 3 |
# | # | ||
# ask a question via IM | # ask a question via IM | ||
Line 79: | Line 111: | ||
# | # | ||
im you have to right mouse click and then choose "sit" | im you have to right mouse click and then choose "sit" | ||
- | sleep 5 | + | pause 5 |
im don´t hesitate it´s easy ;O) | im don´t hesitate it´s easy ;O) | ||
- | sleep 5 | + | pause 5 |
sit 51af9046-0278-c064-be11-e6d9b06ac22c | sit 51af9046-0278-c064-be11-e6d9b06ac22c | ||
- | sleep 120 | + | pause 120 |
stand | stand | ||
im Thank you so much for your attention! bye ;O) | im Thank you so much for your attention! bye ;O) | ||
- | sleep 10 | + | pause 10 |
reload | reload | ||
</code> | </code> |