First you have to setup python, then install python libraries. The recommended way to install python libraries is using pip.
sudo apt-get install python-pip
sudo pip install numpy matplotlib ipython
- download and install python: https://www.python.org/download/windows/
- install pip: https://pip.pypa.io/en/latest/installing.html
- install numpy and matplotlib
python -m pip install numpy matplotlib ipython
If you are new to python, you can try it out online, and follow Introduction to Python. If you want a little more depth, Python Tutorial is a great place to start, We also recommend to Learn Python the Hard Way.
You can try ipython notebooks that I used in the lecture by starting ipython notebook
in this folder.
SimSpark 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 which has NAO V4.
- add PPA and install
sudo add-apt-repository ppa:xu-informatik/simspark-spl
sudo apt-get update
sudo apt-get install rcssserver3d-spl
- start simspark in console:
simspark
- download zip package
- extract the zip package
- execute rcssserver3d.exe to start simspark
- download source code from https://github.com/xuyuan/SimSpark-SPL
- follow the instruction in http://simspark.sourceforge.net/wiki/index.php/Main_Page
-
start simspark
-
start a console (cmd in windows)
-
go to the introduction source code folder
cd introduction
- start sample agent:
python spark_agent.py
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.
Open the following python files, write code follow comments in files.