Echo own messages on remote ROS master
Hi I have a self written message that is published by a ROS node on PC1 and the ROS master is running on PC2. The network connection is working fine and I am able to echoing standard messages form PC1 on PC2. I also see my self written message with rostopic list. But when I trie to echo the message the tool says that the message is not installed. What must I do to install only the message on PC2 and not the complete node?! I tried to copy the msg file to the ros path but it was not working and I also found no instruction?! br Harald
Asked by Fresh on 2018-06-08 08:35:53 UTC
Answers
What must I do to install only the message on PC2 and not the complete node?!
Distribute your ROS API (ie: msgs, srvs, actions) in a separate package. There is no need for your nodes and your msgs to be kept in the same package.
Please search this site for previous Q&As about this.
Separating your ROS API from your nodes is good practice in any case, and will also solve the issue you are having.
I tried to copy the msg file to the ros path but it was not working [..]
I don't really understand what you're trying to say here.
I also found no instruction?!
What sort of instruction were you expecting to find?
Asked by gvdhoorn on 2018-06-09 06:01:46 UTC
Comments