ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
rosrun
is looking in a path
/home/exuvo/code/catkin_ws/build/beginner_tutorials/catkin_generated/stamps/beginner_tutorials
which is different from the one you use
~/code/catkin_ws/devel/lib/beginner_tutorials/
Now first of all a binary shouldn't be under a lib folder. Nothing actually prevents you from doing it, but it's not a good habit.
Have you followed the tutorial to correctly setup your workspace?
My supposition is that you didn't correctly write your CMakeLists.txt file: should you have something like
rosbuild_add_library(talker ${PROJECT_SOURCE_DIR}/src/talker.cpp)
rosbuild_add_library(listener ${PROJECT_SOURCE_DIR}/src/listener.cpp)
then your poblem is there. You have to build binaries, not libraries. So it should be:
rosbuild_add_executable(talker ${PROJECT_SOURCE_DIR}/src/talker.cpp)
rosbuild_add_executable(listener ${PROJECT_SOURCE_DIR}/src/listener.cpp)
Variations of this error (wrong cmake folder definitions for example) may lead to binaries being copied to the wrong folder and thus being unavailable to roslaunch.