Difference between revisions of "Nao tutorial 2: First module"
Line 17: | Line 17: | ||
[[Image:Aldebaran downloads website.jpg|thumb|none|600px|Aldebaran's software download website.]] | [[Image:Aldebaran downloads website.jpg|thumb|none|600px|Aldebaran's software download website.]] | ||
− | You must download the last version of the Linux SDK (1.10.10 currently). After clicking on | + | You must download the last version of the Linux SDK (1.10.10 currently). After clicking on it, you have to scroll down the user license agreement, <span style="color:#228B22">"I agree"</span>, and <span style="color:#228B22">"Click here to proceed"</span>. Wait for the 162 MB file to download (it's called <span style="color:#1E90FF">''naoqi-sdk-1.10.10-linux.tar.gz''</span>). Extract its contents, and it will spawn a folder named <span style="color:#FF8C00">''naoqi-sdk-1.10.10-linux/''</span>. Move it to the location you like most. |
+ | |||
+ | ===Dependencies=== | ||
+ | |||
+ | A couple of Linux packages are needed to create and build your own applications. Luckily, this can be as easy as entering the following command in a terminal (Debian or Ubuntu only, folks): | ||
+ | |||
+ | <pre>sudo apt-get install build-essential cmake python-all libboost-all-dev libmpfr-dev -y</pre> | ||
+ | |||
+ | =Troubleshooting= | ||
+ | |||
+ | You may run into annoying problems while developing for Nao (I certainly did), some easier to solve than others. I will try to explain how to fix the most common ones. If you have any questions regarding this subject or know of a different bug, feel free to send me an email describing it, and I will add it to this section. | ||
Previous tutorial: [[Nao tutorial 1: First steps]] | Previous tutorial: [[Nao tutorial 1: First steps]] |
Revision as of 09:55, 2 February 2011
The first tutorial focused about giving you a painless introduction to Nao's world. You turned the robot on, connected to him through the web interface and SSH, configured some parameters and learnt a bit about the most important files and folders.
Now, it is time for you to delve deeper into the subject, and the best way is to code and test your own example module. Nao has some good default applications that allow you to control his behaviour (like Choregraphe), but this is nothing compared with the freedom that compiling your own applications gives to you. Hence, you will now practice with the official SDK (section "Software/Download")
NOTE: This tutorial is targeted for version 1.10.10 of the SDK and OS. Older versions like 1.8.16 or 1.6.13 are not likely to work.
Contents
Getting everything ready
I guess that your testing environment is the same as in the previous tutorial, only with your Nao connecting via wifi now. Also, you will need to download some software from Aldebaran's webpage, but if you are reading this wiki, it's because you are connected to the internet (duh!). Remember to turn your robot off if it isn't already.
Downloading the software
Official SDK
The guys from Aldebaran Robotics have an official SDK (Software Development Kit) available for registered users, on their webpage. Navigate to this link, enter your login info (you have it, right?), then click the "Software" and "Download" links.
You must download the last version of the Linux SDK (1.10.10 currently). After clicking on it, you have to scroll down the user license agreement, "I agree", and "Click here to proceed". Wait for the 162 MB file to download (it's called naoqi-sdk-1.10.10-linux.tar.gz). Extract its contents, and it will spawn a folder named naoqi-sdk-1.10.10-linux/. Move it to the location you like most.
Dependencies
A couple of Linux packages are needed to create and build your own applications. Luckily, this can be as easy as entering the following command in a terminal (Debian or Ubuntu only, folks):
sudo apt-get install build-essential cmake python-all libboost-all-dev libmpfr-dev -y
Troubleshooting
You may run into annoying problems while developing for Nao (I certainly did), some easier to solve than others. I will try to explain how to fix the most common ones. If you have any questions regarding this subject or know of a different bug, feel free to send me an email describing it, and I will add it to this section.
Previous tutorial: Nao tutorial 1: First steps