ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

adding NaoQI to the PYTHONPATH

asked 2012-02-29 08:43:54 -0600

univ_maine gravatar image

updated 2014-01-28 17:11:32 -0600

ngrennan gravatar image


I loaded the nao_robot and nao_common stacks and am trying to operate the driver, however, i am a newbie to ROS, and am unsure of how to add Aldebaran's NaoQI API to the PYTHONPATH. Is this done in the file, or by physically moving the directory. Any help would be much appreciated!

Thanks, Brendan Gates Undergraduate Research Assistant - Umaine B.E.A.R. Lab

edit retag flag offensive close merge delete


Thanks for the Response Stefan! It didn't quite work though, i got the following error. No handlers could be found for logger "rosout" [ERROR] [WallTime: 1331912435.002598] Error importing NaoQI. Please make sure that Aldebaran's NaoQI API is in your PYTHONPATH. Any ideas what else to try?

univ_maine gravatar image univ_maine  ( 2012-03-16 05:50:51 -0600 )edit
AHornung gravatar image AHornung  ( 2012-03-16 06:28:36 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-02-29 20:34:36 -0600

Stefan Osswald gravatar image

Add the lib subdirectory of Aldebaran's SDK to the PYTHONPATH environment variable by executing

export PYTHONPATH=/your/path/to/naoqi-sdk-1.10.52-linux/lib:${PYTHONPATH}

before you launch nodes from nao_robot. If you do not want to type this line every time, you can add this line to your ~/.profile file, which is executed automatically whenever you start a new shell.

Afterwards, you can launch the nao driver nodes with

NAO_IP= roslaunch nao_driver nao_driver.launch

(replace by the IP of your robot).

edit flag offensive delete link more

Question Tools


Asked: 2012-02-29 08:43:54 -0600

Seen: 2,291 times

Last updated: Feb 29 '12