ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Couldn't find executable named publish below /home/jcardenasc93/catkin_ws/src/publisher

asked 2015-03-10 14:31:29 -0500

jcardenasc93 gravatar image

updated 2015-03-11 02:55:26 -0500

gvdhoorn gravatar image

Hi I'm trying to create a simple publisher program following the tutorial 'A gente introduction to ROS' Jason M. O'Kane. So the problem is that when I try to compile the program rosrun publisher publish I get an error: Couldn't find executable named publish below. My CMakelist.txt is modified as in the tutorial and I add the excecutable in it:

## Declare a cpp executable
add_executable(publish pubmes.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(publish ${catkin_LIBRARIES})

I don't think that was bash configuration because in another example I could compile the 'Hello ROS' program without any problems.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-11 02:35:31 -0500

gvdhoorn gravatar image

So the problem is that when I try to compile the program rosrun publisher publish I get an error

Compiling and running are two different things.

rosrun will try to run your program, but you'll have to have compiled it first, which is typically done with catkin_make.

Make sure you have build your workspace first, and have sourced the correct setup.bash, as explained in the book.

edit flag offensive delete link more

Comments

That's you right y forgot it... Now it's everything OK... Thank you a lot

jcardenasc93 gravatar image jcardenasc93  ( 2015-03-11 08:15:00 -0500 )edit

Question Tools

Stats

Asked: 2015-03-10 14:31:29 -0500

Seen: 772 times

Last updated: Mar 11 '15