|
1 | | -# Week 1: software installation and sample agent |
| 1 | +# Week 2: Introduction and Sample Agent |
2 | 2 |
|
3 | | -## Python |
4 | | -First you have to [setup python](http://learnpythonthehardway.org/book/ex0.html), then install python libraries. |
5 | | -The recommended way to install python libraries is using [pip](https://pip.pypa.io/en/stable/). |
6 | | - |
7 | | -#### Ubuntu |
8 | | - |
9 | | -``` |
10 | | -sudo apt-get install python-pip |
11 | | -sudo pip install numpy matplotlib ipython |
12 | | -``` |
13 | | -#### Windows |
14 | | -1. download and install python: https://www.python.org/download/windows/ |
15 | | -2. install pip: https://pip.pypa.io/en/latest/installing.html |
16 | | -3. install numpy and matplotlib |
17 | | - |
18 | | -``` |
19 | | -python -m pip install numpy matplotlib ipython |
20 | | -``` |
21 | | - |
22 | | -## Learn Python |
23 | | -If you are new to python, you can [try it out online](http://www.codecademy.com/en/tracks/python), and follow [Introduction to Python](http://introtopython.org/). If you want a little more depth, [Python Tutorial](http://docs.python.org/2/tutorial/) is a great place to start, We also recommend to [Learn Python the Hard Way](http://learnpythonthehardway.org/book/). |
24 | | - |
25 | | -You can try ipython notebooks that I used in the lecture by starting ```ipython notebook``` in this folder. |
26 | | - |
27 | | - |
28 | | -## SimSpark |
29 | | - |
30 | | -[SimSpark](http://simspark.sourceforge.net/) is a generic simulator for various multiagent simulations. It supports developing physical simulations for AI and robotics research with an open-source application framework. We use [customized version](https://github.com/xuyuan/SimSpark-SPL) which has NAO V4. |
31 | | - |
32 | | -#### Ubuntu |
33 | | -1. add PPA and install |
34 | | -``` |
35 | | -sudo add-apt-repository ppa:xu-informatik/simspark-spl |
36 | | -sudo apt-get update |
37 | | -sudo apt-get install rcssserver3d-spl |
38 | | -``` |
39 | | - |
40 | | -2. start simspark in console: |
41 | | - |
42 | | -``` |
43 | | -simspark |
44 | | -``` |
45 | | - |
46 | | -#### Windows |
47 | | -1. download [zip package](https://dainas.dai-labor.de:5001/sharing/9s6N1iM2K) |
48 | | -2. extract the zip package |
49 | | -3. execute *rcssserver3d.exe* to start simspark |
50 | | - |
51 | | -#### From source code (Other operation systems) |
52 | | -1. download source code from https://github.com/xuyuan/SimSpark-SPL |
53 | | -2. follow the instruction in http://simspark.sourceforge.net/wiki/index.php/Main_Page |
54 | | - |
55 | | - |
56 | | -### Try out sample agent |
57 | | -#### start sample agent |
58 | | -1. start simspark |
59 | | - * [learn how to use simspark](http://simspark.sourceforge.net/wiki/index.php/Monitor) |
60 | | - |
61 | | -2. start a console (cmd in windows) |
62 | | -3. go to the *introduction* source code folder |
63 | | -``` |
64 | | -cd introduction |
65 | | -``` |
66 | | - |
67 | | -4. start sample agent: |
68 | | -``` |
69 | | -python spark_agent.py |
70 | | -``` |
71 | | - |
72 | | -Now, the spark_agent is connected to simspark, and you can see a robot in the simulation, but it does nothing. Let's program it. |
73 | 3 |
|
74 | 4 |
|
75 | 5 | ## Programming exercise |
|
0 commit comments