You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to communicate a non ros-program to ros kinetic via MQTT Broker. I use your node and already configurated it properly. When I launch roslaunch mqtt_bridge demo.launch it runs very well without any problem. As soon I start the communication from a non ros-programm to ros, the launch file throw this error message multiple times "Message type std_msgs/String does not have a field position".
The code is written in python and run in a non ros PC. The code doesn't throw any problem and the mqtt broker receive the message successfully. The sent data structure is string and probably in array but I'm not sure.
nearly a year old. but i can say you need to include the data key in the message. this is something you would think is done by the MqttToRos engine but no. you cant just send it a serialized message you need to add a data key with the message serialized inside it. like so:
'{"data": "{\"foo\": \"1\"}"}'
hope this helps anyone else who is looking at this kind of issue
Hello,
I am trying to communicate a non ros-program to ros kinetic via MQTT Broker. I use your node and already configurated it properly. When I launch roslaunch mqtt_bridge demo.launch it runs very well without any problem. As soon I start the communication from a non ros-programm to ros, the launch file throw this error message multiple times "Message type std_msgs/String does not have a field position".
The message program looks like this:
The code is written in python and run in a non ros PC. The code doesn't throw any problem and the mqtt broker receive the message successfully. The sent data structure is string and probably in array but I'm not sure.
the mqtt_bridge configuration:
Any idea why ros can't read the message?
The text was updated successfully, but these errors were encountered: