rosrun not finding executable
I am at the "Writing a Simple Publisher and Subscriber (C++)" step in the tutorial and catkin_make
works and i can manually run both talker
and listener
correctly from ~/code/catkin_ws/devel/lib/beginner_tutorials/
where the binaries are. The issue is that rosrun can't find them:
$ rosrun beginner_tutorials talker
[rosrun] Couldn't find executable named talker below /home/exuvo/code/catkin_ws/build/beginner_tutorials/catkin_generated/stamps/beginner_tutorials
I do not understand why it's not looking in the correct place as the ros path looks correct to me.
$ echo $ROS_PACKAGE_PATH
/home/exuvo/code/catkin_ws:/opt/ros/groovy/share:/opt/ros/groovy/stacks
Any ideas what I am doing wrong?
Edit:
$ rospack profile
0.020060 /opt/ros/groovy/share
0.009610 /home/exuvo/code/catkin_ws
0.005365 /home/exuvo/code/catkin_ws/build
0.005278 * /opt/ros/groovy/share/common-lisp
0.005180 * /opt/ros/groovy/share/common-lisp/ros
0.002913 * /home/exuvo/code/catkin_ws/devel
0.002156 /home/exuvo/code/catkin_ws/build/beginner_tutorials
0.001267 /home/exuvo/code/catkin_ws/build/serial
0.001108 * /home/exuvo/code/catkin_ws/devel/share
0.001090 * /home/exuvo/code/catkin_ws/build/beginner_tutorials/CMakeFiles
0.000988 * /home/exuvo/code/catkin_ws/devel/lib
0.000923 * /home/exuvo/code/catkin_ws/build/serial/CMakeFiles
0.000882 * /home/exuvo/code/catkin_ws/src
0.000745 /home/exuvo/code/catkin_ws/build/beginner_tutorials/catkin_generated
0.000624 /home/exuvo/code/catkin_ws/build/kbot
0.000565 * /home/exuvo/code/catkin_ws/build/CMakeFiles
0.000561 * /home/exuvo/code/catkin_ws/src/kbot
0.000554 * /opt/ros/groovy/share/common-lisp/ros/std_msgs
0.000554 /home/exuvo/code/catkin_ws/build/kbot/kbot_bridge
0.000468 * /opt/ros/groovy/share/common-lisp/ros/sensor_msgs
OS: Arch Linux. Kernel: 3.8.5-1-ARCH x86_64. ROS: Desktop Install built from source.