Using a ROS custom message type across machines/hosts [closed]
I am unable to use a custom ROS message type on machine B that I have created on machine A.
Machine A:
- runs roscore.
- has the custom message code as a ROS package.
- has sourced the setup.bash of the package.
- runs a python script that publishes on a topic using the custom message type.
Machine B:
- when I run: "rostopic list", I do see the topic I am publishing to on machine A.
- when I run: "runmsg list", I DO NOT see the custom message type I am looking for (the one, my topic is using)
When I do these things locally, means all on machine A, everything works as expected: my pyhton script publishes a test message using my custom message type and with "rostopic echo" I can even successfully subscribe to it with getting all the messages that are sent displaxed correctly.
So, what am I missing in order to use my custom message from machine A also on machine B?
Please, I really need help on that!
the fact that message definitions are just files and you need to make sure those files are present on all hosts involved in the communication.
Please see #q329712, of which your question is a recent duplicate. And #q286263 and #q202743.
Having the same package with my custom message on all machine where I need to use them, works fine and solved my problem!
Thank you very much!