-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Feature Request] Send messages as JSON to generic MQTT clients #9
Comments
Hi, happy that you are using the mqtt_client! You are right, the primitive message support only covers the primitives (int, float, bool, ...) from I'm wondering how the target state would look like to you? Receiving a stringified JSON of the message? |
Hello, thank you for the quick reply! Yes, my goal is to receive messages in a JSON string, ideally. Right now, my MQTT client (Mosquitto) receives essentially gibberish and I presumed it was due to Is there support for mqtt_client to de/serialize ROS messages as JSON strings? |
There is no support of such functionality as of now. Unfortunately, it's not that easy to do from C++, without having access to proper type introspection at runtime. Python would be easy for this (and could also simply use rosbridge_suite). ros_msg_parser could potentially help to implement such a feature in our C++ node. We are already using a |
I'll look into these topics in order to implement this functionality. Thank you for your assistance and I'd like to apologize for not being very clear in my request -- clearly I didn't have a solid grasp on ROS-MQTT communications. |
Nothing to apologize for! Feel free to open a pull request if you get this implemented in the mqtt_client! |
Hello,
First of all, I'd like to thank you for publishing this, it's been very useful.
I'm interested in transmitting ROS messages typed
sensor_msgs/JointStates
to a broker outside of the ROS environment. As is, my MQTT subscriber, outside of the ROS environments, receives mostly gibberish. I presume this is because primitives messages do not support messages typedsensor_msgs
. Are there any plans to support these?The text was updated successfully, but these errors were encountered: