Ask Your Question
1

What should be written in catkin_package ?

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

Kaori Furuike gravatar image

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

Kei Okada gravatar image

Hello, my name is Kaori Furuike.

I have a question about "10. Creating msg and srv" in beginner level tutorials. ( http://wiki.ros.org/ROS/Tutorials/Cre... ) It tells us to make sure we export the message runtime dependency.

catkin_package(
  ...
  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

Comments

can you share your Cmakelist.txt

bvbdort gravatar imagebvbdort ( 2014-10-06 14:43:36 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
4

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

tfoote gravatar image

catkin_package is documented in detail here: http://wiki.ros.org/catkin/CMakeLists...

edit flag offensive delete link more

Comments

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 imageKaori Furuike ( 2014-10-14 11:43:54 -0600 )edit
-1

answered 2014-10-06 14:42:09 -0600

bvbdort gravatar image
 catkin_package(
      CATKIN_DEPENDS message_runtime
    )

is enough

edit flag offensive delete link more

Comments

That's not correct; catkin_package is used to export headers, libraries, cmake config of your project to dependend projects. E. g. for lib projects, the above does definitely not suit!

Wolf gravatar imageWolf ( 2014-10-08 01:03:51 -0600 )edit

CATKIN_DEPENDS - Other catkin projects that this project depends on

bvbdort gravatar imagebvbdort ( 2014-10-08 02:27:56 -0600 )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

Stats

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

Seen: 977 times

Last updated: Oct 14 '14