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

Revision history [back]

click to hide/show revision 1
initial version

need i add some things like Include_library(xx)? the .h files is in a directory named "msg_gen" some thing like a generation directory...

Regarding issue 1: you don't give any specific errors you are encountering, but no, the message headers are header only, so no linking is required.

If suspect you are getting errors telling you that your generated headers cannot be found when compiling the nodes that include them: if that is the case, then you are missing a add_dependencies(TARGET dep), where dep is the message generation target for a specific language (or all of them). Example (with the messages in the same package as the node that uses them):

add_dependencies(foo foo_generate_messages_cpp)

See also:

need i add some things like Include_library(xx)? the .h files is in a directory named "msg_gen" some thing like a generation directory...

Regarding issue 1: you don't give any specific errors you are encountering, but no, the message headers are header only, so no linking is required.

If I suspect you are getting errors telling you that your generated headers cannot be found when compiling the nodes that include them: if that is the case, then you are missing a add_dependencies(TARGET dep), where dep is the message generation target for a specific language (or all of them). Example (with the messages in the same package as the node that uses them):

add_dependencies(foo foo_generate_messages_cpp)

See also:

need i add some things like Include_library(xx)? the .h files is in a directory named "msg_gen" some thing like a generation directory...

Regarding issue 1: you don't give any specific errors you are encountering, but no, the message headers are header only, so no linking is required.

I suspect you are getting errors telling you that your generated headers cannot be found when compiling the nodes that include them: if that is the case, then you are missing a add_dependencies(TARGET dep), where dep is the message generation target for a specific language (or all of them). Example (with the messages in the same package as the node that uses them):

add_dependencies(foo foo_generate_messages_cpp)

See also: