Ask Your Question

fmgb's profile - activity

2018-06-26 15:04:06 -0600 received badge  Necromancer (source)
2018-06-26 15:04:06 -0600 received badge  Teacher (source)
2015-03-22 19:04:13 -0600 answered a question error connection rosserial via bluetooth arduino notebook

I have fixed this error. I explain this: My Arduino's program is equal than yours. But I have one line different:

nh.getHardware()->setBaud(57600);

This is because ROS works with 57600 bauds and if you use less bauds, you'll lose many packages. So in terminal, I eject for the conection:

sudo rfcomm connect rfcomm1 MAC_DEVICE NUMBER_CHANNEL In my case would be:

sudo rfcomm connect rfcomm1 98:D3:31:B2:D8:EB 1

Thus the bluetooth's led will remain fixed, no flash.

The last, I eject ros with:

rosrun rosserial_python serial_node.py _port:=/dev/rfcomm1 _baud:=57600

And in other terminal: rostopic echo chatter

And bualá! jajajajajaja :) Hope this helps someone :)