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

How to connect ROS to a MQTT broker

asked 2015-02-11 10:11:08 -0600

anhar gravatar image

Hi all,

I'm totally new to ROS, and I want ROS to communicate with a MQTT broker through the tcp protocol. I have seen the TCPROS package but it needs the md5 sum which i don't have. Is it possible to use TCPROS without md5 sum? How to do it?

Thanks

edit retag flag offensive close merge delete

Comments

Have you solved your issue?

Johan gravatar image Johan  ( 2015-03-21 09:07:21 -0600 )edit

is there a project already begin worked-out ? I would like to write this package/ process. Or contribute to it.

Meet H Thakkar gravatar image Meet H Thakkar  ( 2015-10-06 18:23:44 -0600 )edit
1

Please don't add answers that are not answers; it is preferred to ask a new question. I found this ros-users that discusses this package. Perhaps it is worth looking into.

jarvisschultz gravatar image jarvisschultz  ( 2015-10-06 18:38:24 -0600 )edit

I'm new to ROS, but I have written a rospy script that changes messages from MQTT to ROS and vice versa. I have a few problems with it (mostly related to services being dumb and unable to send ROS images over them), but will post it once I find out how (just joined the site).

godfreap gravatar image godfreap  ( 2015-10-27 12:35:23 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-02-11 20:30:41 -0600

tfoote gravatar image

They will not talk directly. They use different protocols. You will need to write a process which translates ROS messages in to MQTT compatible messages and resends them, as well as vice versa.

edit flag offensive delete link more
2

answered 2017-06-25 21:52:08 -0600

130s gravatar image

In ROS Kinetic a package called mqtt_bridge is available. At the time it's only sparsely documented so you might want to look into the api doc or code itself, but from quick look it looks like you just pass a topic name for ROStoMQ conversion and the package internally serializes, and vice versa.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-02-11 10:11:08 -0600

Seen: 7,169 times

Last updated: Jun 25 '17