[rosrun] Couldn't find executable named talker or listener
Hi I created two files with name : talker.cpp and listener.cpp and put them in path : catkin_ws1>src>beginner2_tutorials>src , and the chang the CmakeLists.txt as said in 11. Writing a Simple Publisher and Subscriber (C++) ROS tutorials and then run catkin_make
and then in root workspace run : $ rosrun beginner2_tutorials talker
but I receive this result :
[rosrun] Couldn't find executable named talker below /home/fatima/catkin_ws1/src/beginner2_tutorials
I review [11. Writing a Simple Publisher and Subscriber (C++) ROS tutorials] again i have noticed that i should have two executable in directory of my devel space but i havent any executable file i have only pkgconfig and beginner2_tutorials.pc !!! i dont know how should i have executable in located by default at ~/catkin_ws/devel/lib/<package name=""> , may be this is my problem so i couldnt run $ rosrun beginner2_tutorials talker
so please help me to solve this
The default location of the executable shouldn't be in your src directory if you're following the tutorials. Did you forget to source the setup.bash file from your devel directory?
thanks , i am following the tutorials but where should be the executable ??? and what you mean about executable your mean is : the talker.cpp file? is its loacation in another place?
i edited my question if you could please help me
hi, when your using your own package called "beginner2_tutorials" i think you have completed the normal "beginner_tutorials" ? Is this so,and was the result, that you could run it ?
have you sourced your devel/setup.bash file before running rosrun ?
yes i have run true my mistake was
catkin_make
and before this , i should make msg and srv folder.thank you for reply