-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I publish same ROS topic on multiple MQTT messages? #18
Comments
Hi, sorry for the delayed response. What you are reporting is actually expected behavior. We are storing the ROS subscribers in a map structure, such that we can only store one ros2mqtt connection per ROS topic (see this line of code). I guess we could change this behavior or at least issue a warning, but first, could you please describe why you would want to publish the same data to multiple topics? |
Apologies for the delay in getting back to you. We currently have a situation where we need to transmit Lidar data to both a ROS-based environment and a web-based environment for visualization. The ROS-based environment is capable of decoding non-primitive data, whereas the web-based environment lacks a decoding library that can convert this data into a ROS object. Therefore, our aim is to send the Lidar data as primitive data to enable easy decoding. If you are aware of any library that can assist us in decoding non-primitive messages into ROS object on the web side, please inform us. |
For the web based interpretation, it would probably help a lot if we had #9, unfortunately that's an open issue at the moment. For the other issue, that we cannot publish the same ROS topic to multiple MQTT topics, you would have two options at the moment:
|
We attempted to publish a ROS topic message on multiple MQTT topics, but only one of the topics received the message. Is there a way to publish a single ROS message to multiple MQTT topics?
Config File:
The text was updated successfully, but these errors were encountered: