ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

How to add message dependencies if they are located in the same package? [closed]

asked 2014-04-07 05:34:02 -0500

sergi_f gravatar image

updated 2014-04-07 05:44:11 -0500

Hi everybody, imaging you have two messages defined in the same package my_package_msgs and one of them is dependent on the other:

For instance:

  • foo.msg:
    • geometry_msgs/Point position
  • array_of_foo.msg
    • my_package_msgs/foo[] foo_array

When the package is compiled this error appears:

Could not find messages which 
depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sergi_f
close date 2014-04-08 21:59:35



there is probably something wrong with your CMakeLists.txt. Please post the relevant parts.

joq gravatar imagejoq ( 2014-04-07 06:05:56 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-04-07 05:52:27 -0500

Tirjen gravatar image

updated 2014-04-07 05:53:42 -0500

I think it should work normally... Look for example at this package and see if you are missing something. Here for example JointVelocities.msg depends on JointValue.msg.

Let me know if it works, otherwise please post the CMakeLists.txt you are using.

edit flag offensive delete link more

answered 2014-04-07 06:29:40 -0500

sergi_f gravatar image

Thanks for the answer and comment. I've just solved it.

The CMakeLists.txt was ok. It was a bad file naming due to a capital letter, sorry :(

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-07 05:34:02 -0500

Seen: 400 times

Last updated: Apr 07 '14