Ask Your Question
1

Problems with python when trying to control a Nao robot with a Kinect

asked 2011-02-16 05:57:14 -0600

tecedge gravatar image

updated 2016-10-24 09:07:13 -0600

ngrennan gravatar image

My team is trying to implement the nao_openni package from WPI(code here). Following the readme file we've gotten to step 5e, where we get a python import error.

"$ rospack find [PACKAGE]" finds the all packages that it says it depends on.

"$ echo $PYTHONPATH" returns:

/opt/ros/cturtle/ros/core/roslib/src:/home/[username]/Desktop/aldebaran-sdk-1.6.13-linux-i386/lib

The error when running:

"$ ./nao_ni_walker.py" (and ./nao_walker.py and ./nao_sensors.py) is:

File "./nao_walker.py", line 51, in <module> from nao_ctrl.msg import MotionCommandBtn ImportError: No module named nao_ctrl.msg

We aren't very familiar with Python, I've been trying to read about it to figure out what's going on but it hasn't been working so far.

We're fairly new to ROS, so any help would be appreciated.

edit retag flag offensive close merge delete

Comments

I believe my teammate did it before, is there a way that to check to see that it's been done before?
tecedge gravatar imagetecedge ( 2011-02-16 06:14:14 -0600 )edit
If you're unsure, it's best to just run the command again.
tfoote gravatar imagetfoote ( 2011-02-16 06:37:18 -0600 )edit
When running rosmake nao_ctrl there are errors that say gcc is broken, the interesting part can be found here: http://pastebin.com/ZmqKa0vJ. EDIT: There seems to be something wrong with the permissions too.
tecedge gravatar imagetecedge ( 2011-02-16 06:42:32 -0600 )edit
You likely don't have permissions to write to that directory (check with 'ls -lh /opt/ros/cturtle/stacks/nao_0.2'). If you installed nao_ctrl from a source checkout, you should install it to a directory that you have write access to. You could also try running 'sudo make' to force a make to happen.
Eric Perko gravatar imageEric Perko ( 2011-02-16 06:48:45 -0600 )edit
Alright. I have to go to class right now but I'll try that later. Thanks a lot for the help everyone.
tecedge gravatar imagetecedge ( 2011-02-16 06:53:49 -0600 )edit
That worked for that error. Thanks again everyone. We're on to another error now though. If we can't figure it out in a few days I'll be back.
tecedge gravatar imagetecedge ( 2011-02-22 06:58:37 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-02-16 06:03:30 -0600

fergs gravatar image

updated 2011-02-16 06:03:55 -0600

Have you done 'make' in the nao_ctrl package (or 'rosmake nao_ctrl') -- if not, you won't have the message headers generated yet.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-16 05:57:14 -0600

Seen: 1,657 times

Last updated: Feb 16 '11