Robotics StackExchange | Archived questions

ROS says it can't find any executable file

I made a .cpp executable and put it in the src folder and modified the make file to add executable as in the tutorial, but when I run the launch file it runs the node but then exits because it says it didn't find the executable file. I don't know if there have to be more changes to the make file or if the problem lies someplace else. Im running ROS indigo. Thank you

Asked by Orlandog95 on 2018-03-16 15:19:04 UTC

Comments

Have you used ´catkin_make´ afterwards?

Asked by JaFeKl on 2018-03-17 14:50:31 UTC

yes, I ran catkin_make and ran the launch file and it starts normally and opens the node, but because it says it doesn't find any executable in the src folder it exits, but it is there.

Asked by Orlandog95 on 2018-03-17 19:13:47 UTC

maybe

source ./devel/setup.bash

in your catkin

Asked by Hamid Didari on 2018-03-18 00:39:23 UTC

Please provide more information:

  • How did you create an executable file and why are you putting it in src folder? I am guessing you are referring to a simple .cpp source file, and not a real .exe file.
  • Which tutorial are you referring to?
  • Can you provide your CMakeLists.txt file?

Asked by dljubic on 2018-03-18 07:46:49 UTC

Answers