groove-x / mqtt_bridge

mqtt_bridge provides a functionality to bridge between ROS and MQTT in bidirectional
MIT License
160 stars 146 forks source link

Encoding problem on Ubuntu 20.04 ROS Noetic #59

Closed iscsrl closed 3 years ago

iscsrl commented 3 years ago

Hi, I recently moved my project to Ubuntu 20.04 and ROS Noetic from 18.04 and Melodic. I installed on the new environment the ros-noetic-mqtt-bridge executing the same exacly code, but I'm experiencing a very weird problem. It looks like the bridge is publishing, on my mosquitto mqtt broker, messages with a wrong encoding despite all other publications coming from the classic mosquitto client are correctly encoded.

I tried with no luck to add the serialize/deserialize params in config:

mqtt:
  serializer:
    json: dumps
  deserializer:
    json: loads
  client:
    protocol: 4      # MQTTv311

There are other parameters allowed on serializer that helps me specifying the published message encoding?

HappySamuel commented 3 years ago

Hi

I am using mqtt_bridge with ROS Noetic on Ubuntu 20.04 as well. But i didn't encounter the issue you mentioned.

This is my config for your reference: Screenshot from 2021-09-22 17-28-44

Hope it helps.

Best, Samuel

ledmonster commented 3 years ago

@iscsrl Umm, it's weird. Have you resolved the issue? If not, please reopen and provide extra information.