Ask Your Question

The problem of the creation msg when I learn as the tutorials(Creating a ROS msg and srv) in the

asked 2016-03-13 03:16:43 -0500

Fighting_bird gravatar image

updated 2016-03-14 06:58:57 -0500

I don't understand the sentence "Also make sure you export the message runtime dependency." image description The related files is in my google email:link text

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-05-19 11:05:27 -0500

Fighting_bird gravatar image

The name of the file "AddTowInts.srv" is wrong in the CMakeLists.It should be "AddTwoInts.srv", so it appeared "Message service file not found" when building. It is a very stupid mistake!

edit flag offensive delete link more

answered 2016-03-13 07:49:44 -0500

Oded gravatar image

You need to add the line message_runtime to catkin_package e.g.


BTW, you should also add to the package.xml file the following line

edit flag offensive delete link more


Thank you for your help. I did as what you said, but it doesn't work.I couldn't find where errors are now! When I used catkin_make install in my catkin workspace, it outputed these:

make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
Fighting_bird gravatar imageFighting_bird ( 2016-03-14 00:35:49 -0500 )edit

I need more information to understand the source of the problem. maybe post the whole output. Maybe this question can help you.

Oded gravatar imageOded ( 2016-03-14 01:17:17 -0500 )edit

Can you post the CMakeLists.txt and package.xml files?

Oded gravatar imageOded ( 2016-03-14 01:17:53 -0500 )edit

Yes,of course! But would you mind offerring your email?

Fighting_bird gravatar imageFighting_bird ( 2016-03-14 04:09:44 -0500 )edit

Update you question and add the files. This way it could help others in the future.

Oded gravatar imageOded ( 2016-03-14 04:27:47 -0500 )edit

I don't have enough points to upload files, so I share them in my google email.

Fighting_bird gravatar imageFighting_bird ( 2016-03-14 06:57:03 -0500 )edit

Hmm... Everything looks in order. Try running catkin make install a few times. Sometimes it helps

Oded gravatar imageOded ( 2016-03-14 11:30:58 -0500 )edit

I found the error!The name of the file AddTowInts.srv is wrong in the CMakeLists.It should be AddTwoInts.srv.

Fighting_bird gravatar imageFighting_bird ( 2016-03-17 03:19:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-03-13 03:16:43 -0500

Seen: 124 times

Last updated: May 19 '16