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

How to ROS messages via bluetooth? (arduino)

asked 2016-03-12 11:45:41 -0600

thepirate16 gravatar image

Hi everyone, maybe this could be a novice question:

As the title suggests, i would like to know if it's possible to do that.

Specifically, my aim is to send messages from an arduino to the master computer via bluetooth, as i want to build the typical object avoiding robot, but sending custom messages (encoder's data, distance to an object,...) via bluetooth instead of doing it via serial (USB) to that master.

Maybe i could use a BLE module like the HM-06 to do that, but i'm not sure (with the laptops own bluetooth as a receiver?). Maybe there's a bluetooth methodology that i don't know.

As you see, i am a little bit lost.

I would appreciate a detailed answer (if it's possible) of the steps to do.

Thank you in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-12 20:52:01 -0600

ozsln gravatar image

The simplest solution might be to use Bluez. Check the website : https://people.csail.mit.edu/albert/b... . This documents the library well and provides source codes in C and Python. In my opinion writing a Python node that listens to the raw data and publishes as ROS topics is a fairly quick solution. I hope this helps.

edit flag offensive delete link more

Comments

Hi ozsln! Thanks for the reply. I'm going to solve temporarily the problem with two arduino UNO and two BT BLE HM-06 modules, sending the data the one on the robot to the one that is connected directly to the computer, running as a data receiver.

I guess using BlueZ could work also.

thepirate16 gravatar image thepirate16  ( 2016-03-17 11:38:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-03-12 11:43:59 -0600

Seen: 6,345 times

Last updated: Mar 12 '16