custom message from other host
Hello everyone,
this is a small design question. I have a Rasberry PI that runs ros and gets everything from the sensors on the robot. It is all working great while sending standard messages, but I bumped into an issue with the custom ones.
Say, I want to send a string name of the button, a boolean of its state and a timestamp. I would need to define a new msg for this purpose. The question is: how can I include this message's header, when receiving this message on another machine?
Can I just create a message with the same parameters in the recipient package? I believe this cannot work, because the type will be different.
Any ideas are greatly appreciated.