rosserial problem with 2 publishers

asked 2015-11-19 06:55:41 -0600

cjusto gravatar image

updated 2015-11-19 07:03:16 -0600

HI guys!

I am working on a project in which I created my own package. So far all is working fine. I have 2 messages to publish with my chipkit MAX32 (Arduino Mega, compatible).

I am able to publish correctly on 1 of them called "AGVStatus". The second one it the "RangeArray" message. I have the packge compiled with no errors.

In my code I include the .h files

#include <ros.h>
#include <agv_ip/AgvStatus.h>
#include <agv_ip/RangeArray.h>

And I declare both the same way:

agv_ip::AgvStatus estado;
ros::Publisher Status("AGVipStatus", &estado);
agv_ip::RangeArray range;
ros::Publisher Ranges("AGVipRanges", &range);

Everyhting ok when uploading to the board.

This is what I get when running only the Status message:

[INFO] [WallTime: 1447935106.608875] ROS Serial Python Node
[INFO] [WallTime: 1447935106.624654] Connecting to /dev/ttyUSB2 at 57600 baud
[INFO] [WallTime: 1447935108.767896] Note: publish buffer size is 1024 bytes
[INFO] [WallTime: 1447935108.768334] Setup publisher on AGVipleiriaStatus [agv_ipleiria/AgvStatus]

And this when running with both:

[INFO] [WallTime: 1447935805.383154] ROS Serial Python Node
[INFO] [WallTime: 1447935805.388700] Connecting to /dev/ttyUSB3 at 57600 baud
[ERROR] [WallTime: 1447935822.498212] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

(Ros indigo with Kubuntu 14.04)

Can You help me here with some tips?

edit retag flag offensive close merge delete