Ask Your Question

rosrun turtlesim turtlesim_node -- couldn't find executable

asked 2013-03-28 03:03:05 -0500

logicalguy gravatar image


I just installed ros groovy from source on gentoo amd64 and am working through the beginner's tutorials. I'm on the "Understanding ROS Nodes" tutorial and installed the ros_tutorials metapackage from git using catkin_make in a catkin ws. I've sourced the correct env variables and rospack list shows that ros_tutorials/turtlesim package is installed. However, the above mentioned command fails, and a listing of all the turtlesim related directories shows no file named as turtlesim_node. Here is my output:

$ rosrun turtlesim turtlesim_node
[rosrun] Couldn't find executable named turtlesim_node below /home/user/ros-groovy-metapackages/src/ros_tutorials/turtlesim
$ roscd turtlesim
$ ls *
CMakeLists.txt  mainpage.dox  package.xml

box-turtle.png   electric.png  groovy.png   robot-turtle.png  turtle.png
diamondback.png  fuerte.png    palette.png  sea-turtle.png    turtle.xar



Color.msg  Pose.msg

turtle.cpp  turtle_frame.cpp  turtlesim  turtlesim.cpp

Kill.srv  SetPen.srv  Spawn.srv  TeleportAbsolute.srv  TeleportRelative.srv

draw_square.cpp  mimic.cpp  teleop_turtle_key.cpp
edit retag flag offensive close merge delete


does anybody know anything about what may be wrong, either with the wiki or with what I've done??

logicalguy gravatar image logicalguy  ( 2013-03-30 19:46:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-05 11:19:00 -0500

tfoote gravatar image

updated 2013-04-05 11:19:51 -0500

You need to compile it before you can run it. rosmake turtlesim will likely do what you need. Note the tutorials assume you're using prebuilt binaries, so you will have to make some adjustments throughout for running on gentoo.

edit flag offensive delete link more


I am using pandaboard and have the same problem even after running catkin_make. After searching of this file turtlesim_node inside my ~/catkin_ws working directory, I found it under ~/catkin_ws/devel/lib/turtlesim. So I run the turtlesim_node right there with ./turtlesim_node.

adiprasojo gravatar image adiprasojo  ( 2013-04-14 03:56:58 -0500 )edit

it works there, but why can't rosrun find it ? btw, the output of echo $ROS_PACKAGE_PATH shows that it points to my ~/ros_ws working directory. How to correct this, so I could use rosrun easily ?

adiprasojo gravatar image adiprasojo  ( 2013-04-14 04:00:46 -0500 )edit

found it !. I have to source my devel path too. So I put this source ~/catkin_ws/devel/setup.bash at the end of my ~/.bashrc

adiprasojo gravatar image adiprasojo  ( 2013-04-14 05:40:52 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-03-28 03:03:05 -0500

Seen: 3,747 times

Last updated: Apr 05 '13