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

Custom message on MultiMachines

asked 2019-07-31 02:41:10 -0500

Usui gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-08-01 13:47:31 -0500

gvdhoorn gravatar image

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.

edit flag offensive delete link more

Comments

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

Usui gravatar image Usui  ( 2019-08-02 18:28:46 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-07-31 02:41:10 -0500

Seen: 244 times

Last updated: Aug 01 '19