This is a guide for people [e.g my students] interested in running the software I've been going on about, experimenting with it, improving it, and joining me in this exciting research to produce open-ended adaptation in a cognitive architecture on the Nao H25 Humanoid Robot. It can all be done in simulation using Webots.
If you get stuck on any of these points, just post a comment and I'll try to help you out.
1. Register for an account here.
http://www.aldebaran-robotics.com/component/option,com_comprofiler/task,registers/
2. Download Webots for Nao as instructed here using the Corporate login that you've got above.
http://www.aldebaran-robotics.com/documentation/software/webots/webots_index.html
http://www.aldebaran-robotics.com/Downloads/85-Software/Voir-categorie.html
3. While you're at it download Choregraphe as well which will be useful for monitoring of Nao sometimes but is not needed to run my code.
4. Now follow the instructions given here.
http://www.aldebaran-robotics.com/documentation/dev/python/install_guide.html
You should have Python installed, but if not install it. To get, pynaoqi-python-2.7-naoqi-x.x.win32.exe you'll need to be a User/Developer. If you're working with me, just ask me for this and I'll send it to you.
To test it you should type import naoqi in the python command line and there should be no error message. Check with someone who knows about Python if there is a problem here. Idle is the Python editor that comes with Python for windows, use that, its perfectly lovely.
5. Download my latest code which is found here.
https://github.com/ctf20/DarwinianNeurodynamics
At the time of writing this is Living_Machines_11, which is the software that I am preparing for the submission to Living Machines 2013 at the science museum. Later versions will have higher numbers, until final submission.
Install this version (at the time of writing of this page, this is the latest version, but later you should install the currently latest version :))
https://github.com/ctf20/DarwinianNeurodynamics/tree/master/LivingMachines2013_13
6. In runBrain.py change the PARENTBROKER_IP to the IP of your Nao in Webots which can be found out by connecting to the Webots Nao using Choregraphe. Mine was 192.168.1.69 this time, but it varies. If its not right, you'll get the error in Windows...
Connection Failed. Count not contact endpoint... Please verify that NAOqi is running at this address.
7. When you press F5 in IDLE and run runBrain.py you'll get a range of missing library errors. The first will be ImportError: No module named matplotlib.pyplot.
So this means you've got to install matplotlib, which you can download here. This is what I use for a lot of visualisation. http://matplotlib.org/
8. Then download SciPy and numpy at http://www.scipy.org/
9. Where ctf20.local appears in the files, it must be changed to your robots IP, e.g. in basicMotorFunctionClass.py
10. Download networkx here http://networkx.github.io/ You may need to download easy_install, to install the egg file for networkx in windows. You may need to change the system PATH to include the Python27/Scripts which contains the easy_install.exe program.
11. Then it should run!
No comments:
Post a Comment