Changes between Version 63 and Version 64 of Tutorials


Ignore:
Timestamp:
Oct 31, 2017, 8:54:18 AM (8 years ago)
Author:
fma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials

    v63 v64  
    33= Tutorial =
    44
    5 ''This is a draft version.''
     5First, 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
     7The 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
     9Before 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
     11Once it is done, you don't need to edit/modify the source code anymore; you will write your own code in a dedicated directory.
    612
    713== Vocabulary ==
     
    1319== Tutorial 1 ==
    1420
    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
     23First, create a new empty dir in your home folder:
     24
     25{{{
     26$ mkdir tutorial_1
     27$ cd tutorial_1
     28}}}
    1829
    1930All 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:
     
    449460
    450461The only difference, here, is the scene size init, and the ground addition (optional).
     462
    451463=== Settings ===
    452464