Robotics StackExchange | Archived questions

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

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

For instance:

When the package is compiled this error appears:

Could not find messages which 
'/home/user/../my_package_msgs/msg/array_of_foo.msg'
depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)?

Thx.

Asked by sergi_f on 2014-04-07 05:34:02 UTC

Comments

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

Asked by joq on 2014-04-07 06:05:56 UTC

Answers

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.

Asked by Tirjen on 2014-04-07 05:52:27 UTC

Comments

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 :(

Asked by sergi_f on 2014-04-07 06:29:40 UTC

Comments