Ask Your Question
0

rosserial and wireless communication

asked 2014-09-08 09:53:37 -0500

Alireza gravatar image

Hi,

I am using APC220 Radio Communication Module on my arduino atmega2560, in order to communicate with my computer wirelessly. i have written a simple publisher/subscriber node for my arduino using arduino ide and ros_lib, it's works fine using usb to serial cable, but when i'm using APC220(which is actually acts as an serial interface, conntected toRX/TX pins), i am getting following errors:

[ERROR] [WallTime: 1410187017.536715] Tried to publish before configured, topic id 125 
[ERROR] [WallTime: 1410187017.538328] Tried to publish before configured, topic id 125
[WARN] [WallTime: 1410187017.549967] Serial Port read returned short (expected 16 bytes, received 13 instead).
[WARN] [WallTime: 1410187017.550437] Serial Port read failure: 
[INFO] [WallTime: 1410187017.550810] Packet Failed :  Failed to read msg data
[INFO] [WallTime: 1410187017.551095] msg len is 16

I am almost sure about my hardware settings and baud rates, because it's works with a single publisher, my problem is a node with subscriber and publisher working simultaneously.

Is there any tips about using rosserial_arduino with wireless modules? Is there any body who has experienced APC220 modules with ROS and Arduino?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-23 17:53:45 -0500

TimboInSpace gravatar image

I recently had this problem. I don't think it has anything to do with that specific radio: I was using an Arduino Uno and Xbee module, communicating with my laptop and it's Xbee. My issue was that the initial communication to set up the publishers and subscribers, was failing. In my case, it was failing because the Arduino's serial buffer was too small.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-09-08 09:53:37 -0500

Seen: 1,201 times

Last updated: Sep 08 '14