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

What should be written in catkin_package ?

asked 2014-10-06 03:49:16 -0500

Kaori Furuike gravatar image

updated 2014-10-07 22:16:36 -0500

Kei Okada gravatar image

Hello, my name is Kaori Furuike.

I have a question about "10. Creating msg and srv" in beginner level tutorials. ( ) It tells us to make sure we export the message runtime dependency.

  CATKIN_DEPENDS message_runtime ...

But there is no statement like "CATKIN_DEPENDS message_runtime ..." in my catkin_package. And when I run without such a statement, I got this error message.

"Unable to load msg [beginner_tutorials/Num]: Cannot locate message [Num]: unknown package [beginner_tutorials] on search path [{'rosconsole': ['/opt/ros/hydro/share/rosconsole/msg'], ..."

Would you tell me what is (or what shold be) written in catkin_package at beginner_tutorials/CMakeLists.txt ?

Thank you.

edit retag flag offensive close merge delete


can you share your Cmakelist.txt

bvbdort gravatar image bvbdort  ( 2014-10-06 14:43:36 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-06 19:30:34 -0500

tfoote gravatar image

catkin_package is documented in detail here:

edit flag offensive delete link more



Sorry for my late reply. And thank you for your help. I finally succeeded to build this program. catkin_package( CATKIN_DEPENDS message_runtime } was enough actually in this case. But I did not understand what catkin_package was, so the HP was very helpful.

Kaori Furuike gravatar image Kaori Furuike  ( 2014-10-14 11:43:54 -0500 )edit

answered 2021-05-18 01:05:02 -0500

if you follow the tutorial step by step, then you may want this

     INCLUDE_DIRS include
     LIBRARIES beginner_tutorials
     CATKIN_DEPENDS std_msgs
     CATKIN_DEPENDS roscpp
     DEPENDS system_lib)
edit flag offensive delete link more


Multiple CATKIN_DEPENDS may not work correctly.

You should merge those, so it reads: CATKIN_DEPENDS std_msgs rospy roscpp.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-19 03:26:34 -0500 )edit

Question Tools


Asked: 2014-10-06 03:49:16 -0500

Seen: 1,784 times

Last updated: May 18 '21