This repo contains the code for the experiments performed with the NAO robot using the official Python SDK. The following experiments were performed:
- Dialog
- Movement
- Obstacle Detection
We used the following setup for programming our robot:
-
Connect the PC and robot to the same (wireless) network. This is required because only then we can connect to the robot using it’s IP address.
-
Use the official Python SDK available in the softbanks robotics site
-
Download the correct SDK file from the downloads page.
-
Create a python2.7 environment.
-
Copy the folder downloaded from 1 and paste into the environment folder/Lib/
-
Create an environment variable with the following:
PYTHONPATH=environment folder/Lib/SDK_Folder/lib/
-
Open Python from the environment created in step 2.
import naoqi
-
Only the python2.7.10 downloaded from python.org works, so we downloaded that.
-
Add environment variable with the following:
$ export PYTHONPATH=${PYTHONPATH}:path_to_sdk/lib/python2.7/site-packages
$ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:~/Downloads/pynaoqi/lib
$ export QI_SDK_PREFIX=~/Downloads/pynaoqi
- Open Python2.7.10
import naoqi