Robotics StackExchange | Archived questions

Custom message on MultiMachines

HI so I have a node that uses and publish a custom message call listener and it publish a message called list. Inside, it would include listener/list.h. If I was just gonna use another node, then I can just put an

add_dependency()

in the CMakeList. However, if I want to subscribe it using another machine using multimachine, how would I include the message list? Any help is appreciated!

Asked by Usui on 2019-07-31 02:41:10 UTC

Comments

Answers

If you want to use message definitions on other machines you'll have to make the messages available on those other machines.

You cannot add_dependency() on files in workspaces on other machines.

The best way to make the messages available on other machines would be to create a stand-alone package that contains just the messages. Nothing more.

Then let any package that needs it depend on that message package.

On the other machines, place a copy of the package in their workspace (using something like Git is recommended for this), build the workspace and source it. You should now be able to use the messages on the other machines as well.

Asked by gvdhoorn on 2019-08-01 13:47:31 UTC

Comments

Thanks for the answer. I will try it out and let you know.

Asked by Usui on 2019-08-02 18:28:46 UTC