ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Mqtt To ROS : [ERROR] Expecting property name: line 1 column 2 (char 1) [closed]

asked 2020-05-29 04:02:07 -0500

Evan gravatar image

updated 2020-05-29 05:02:56 -0500

gvdhoorn gravatar image

I want to use MQTT Bridge for robot application. I have installed this package : https://github.com/groove-x/mqtt_bridge . Ros can speak to MQTT but MQTT can't speak to ROS. I installed rosbridge_library and the diferents dipedencies like paho-mqtt, inject, mgpack-python and pymongo.

Before install pymongo, i installed bson but i have this error on screen :

 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosbridge_library/util/__init__.py", line 24, in <module>
    "BSON installation does not support all necessary features. "
Exception: BSON installation does not support all necessary features. Please use the MongoDB BSON implementation. See: https://github.com/RobotWebTools/rosbridge_suite/issues/198

So i have install pymongo and ROS can't decode MQTT message like that : mosquitto -t 'testt' -m {"test"} But ROS can decode this message with nothing : mosquitto -t 'testt' -m {""} and send to a topic 'data' : ' '

Thank for help !

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Evan
close date 2021-03-10 07:08:13.095207

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-29 09:40:54 -0500

Evan gravatar image

I find the solution ! The format of mqtt message depend of std format (String or Bool or others)

an example of message :

mosquitto -t 'echo' -m '{"data":"test"}'

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-05-29 04:02:07 -0500

Seen: 416 times

Last updated: May 29 '20