dipespandey / ropro-nao

experiments performed with the nao robot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ropro-nao

This repo contains the code for the experiments performed with the NAO robot using the official Python SDK. The following experiments were performed:

  1. Dialog
  2. Movement
  3. Obstacle Detection

NAO Robot Python SDK Installation Guide

We used the following setup for programming our robot:

  1. 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.

  2. Use the official Python SDK available in the softbanks robotics site

Windows

  1. Download the correct SDK file from the downloads page.

  2. Create a python2.7 environment.

  3. Copy the folder downloaded from 1 and paste into the environment folder/Lib/

  4. Create an environment variable with the following: PYTHONPATH=environment folder/Lib/SDK_Folder/lib/

  5. Open Python from the environment created in step 2.

import naoqi 

Mac or Linux

  1. Only the python2.7.10 downloaded from python.org works, so we downloaded that.

  2. 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 
  1. Open Python2.7.10
import naoqi

About

experiments performed with the nao robot


Languages

Language:Python 92.8%Language:HTML 7.2%