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

Couldn’t find executable named talker.cpp

asked 2021-08-31 14:39:03 -0500

Babor gravatar image

updated 2021-09-15 18:35:42 -0500

Mike Scheutzow gravatar image

When I run catkin_make, talker listener all files are linked and showed build target talker listener 100%. But when i want to run this using rosrun it says "couldn’t find executable named talker". I have changed the code in CmakeLists.txt

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2021-09-14 22:26:56 -0500

Babor gravatar image

Later I solved it. I made some mistake in cmakelist file

edit flag offensive delete link more

Comments

@Babor Congratulations on the solution. Also, sorry for the wrong comment. If you'd like, you can add to your answer what you fixed, which will help others with the same issue.

miura gravatar image miura  ( 2021-09-16 05:21:42 -0500 )edit
0

answered 2021-08-31 18:21:31 -0500

miura gravatar image

Maybe you are missing a path setting. Try the following in your workspace

$ source devel/setup.bash # In bash, run setup.XXXX to match the shell you are using.
edit flag offensive delete link more

Comments

I did that. i noticed that listener and talker executable file are being created in build folder. is that okay? Or those file should be created in devel folder?

Babor gravatar image Babor  ( 2021-08-31 20:00:42 -0500 )edit

This is correct. When you build, the executable will be created in build. As a side note, this was during development.

You can set up the installation setting and install the executable elsewhere.

miura gravatar image miura  ( 2021-09-01 19:35:28 -0500 )edit
1

@miura Did you notice the description says he used catkin_make? Therefore, the executable should be somewhere in catkin_ws/devel/lib/.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-15 18:31:40 -0500 )edit

@Mike Scheutzow Thank you for pointing this out. I must have made a mistake with build and devel.

miura gravatar image miura  ( 2021-09-16 05:19:47 -0500 )edit

Question Tools

Stats

Asked: 2021-08-31 13:50:10 -0500

Seen: 198 times

Last updated: Sep 14 '21