Changes between Version 63 and Version 64 of Tutorials
- Timestamp:
- Oct 31, 2017, 8:54:18 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials
v63 v64 3 3 = Tutorial = 4 4 5 ''This is a draft version.'' 5 First, you need to know that '''Py4bot''' is just a framework, not a ready-to-use software. So it is up to you to write the application matching your robot. But don't worry, it is very easy. 6 7 The framework contains all base code to setup a working multi-legs robot. All you will have to do is overwrite a few classes, and implement virtual methods. It means that you need to know how to code in Python, and what classes / methods are... If it is not the case, have a look [https://wiki.python.org/moin/BeginnersGuide/NonProgrammers here]. 8 9 Before you start these tutorials, you need to install '''Py4bot''', as described in the [[InstallationGuide]]. I strongly suggest you install it from git, so you can keep it up-to-date very easily. 10 11 Once it is done, you don't need to edit/modify the source code anymore; you will write your own code in a dedicated directory. 6 12 7 13 == Vocabulary == … … 13 19 == Tutorial 1 == 14 20 15 ''Files for this tutorial are available in [source:/py4bot/examples/tutorial_1/]'' 16 17 '''Py4bot''' is just a framework, so it is up to you to write the application matching your robot. But don't worry, it is very easy. 21 ''Files for this tutorial are available in [source:/py4bot/examples/tutorial_1/]. But don't just copy them here: write them from scratch, following the tutorial.'' 22 23 First, create a new empty dir in your home folder: 24 25 {{{ 26 $ mkdir tutorial_1 27 $ cd tutorial_1 28 }}} 18 29 19 30 All usefull classes are available from the '''{{{api.py}}}''' module. So, we just have to import things from here. Let's create a '''{{{hexapod.py}}}''' file to put our code, and import what we are going to use in this tutorial: … … 449 460 450 461 The only difference, here, is the scene size init, and the ground addition (optional). 462 451 463 === Settings === 452 464
