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

adding NaoQI to the PYTHONPATH

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

univ_maine gravatar image

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

ngrennan gravatar image

Hi,

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 setup.sh 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

Comments

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 -0500 )edit
AHornung gravatar image AHornung  ( 2012-03-16 06:28:36 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

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

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=127.0.0.1 roslaunch nao_driver nao_driver.launch

(replace 127.0.0.1 by the IP of your robot).

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 2,326 times

Last updated: Feb 29 '12