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

Cannot locate python node

asked 2011-05-27 21:40:33 -0600

bostonian gravatar image

updated 2011-05-28 05:11:36 -0600

kwc gravatar image

When executing my launch file, I get the error

ERROR: cannot launch node of type [package/node.py]: Cannot locate node of type [node.py] in package [robot]

for every node in the launch file. This script was working about 8 hours ago, and no files have been changed. Tried re-running rosmake.

using roslib.packages.findnode returns nothing for any node/package pair in the project.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
8

answered 2011-05-28 01:05:21 -0600

Pi Robot gravatar image

If no files have been changed, it's a bit of mystery, but the only time I have run into this error in the past when a node script is really in the right place pointed to by the launch file is that the execute bit on the script is not set. To fix: "chmod 755 node.py". But I'm guessing you have already checked this. You could also try running "make clean" followed by "rosmake" in the package directory as well as "rospack profile".

--patrick

edit flag offensive delete link more

Comments

+1 I had an similar problem with a ros launch-file. chmod 744 node.launch did the magic for me.

hitimo gravatar image hitimo  ( 2015-08-09 07:03:48 -0600 )edit
0

answered 2011-05-28 02:23:47 -0600

bostonian gravatar image

Thanks for the response. Our file syncing tool had reset the permissions on source files to 744, so chmod-ing was the answer.

edit flag offensive delete link more

Comments

Glad to hear that's all it was!
Pi Robot gravatar image Pi Robot  ( 2011-05-28 03:33:04 -0600 )edit

Please read the support page. Please do not create new answers for discussion, updates or comments. Instead, please use the comment functionality or edit your original post.

Lorenz gravatar image Lorenz  ( 2012-11-21 22:20:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2011-05-27 21:40:33 -0600

Seen: 5,413 times

Last updated: May 28 '11