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

use rosserial with FastSerial.h (ArduIMU)

asked 2012-07-28 13:12:32 -0500

ThomasK gravatar image

updated 2014-01-28 17:13:10 -0500

ngrennan gravatar image

Hi all,

I'm trying to modify the arduimu driver to publish imu messages via rosserial but my problem is that arduimu uses FastSerial.h which is required to be included before HardwareSerial.h, but I can't include FastSerial.h before ros.h because FastSerial.h defines HardwareSerial_h which then cuases HardwareSerial.h not to be included within ros.h and therefore fails to compile. Does anyone have an idea on how to make rosserial work in combination with FastSerial.h? I tried replacing HardwareSerial with FastSerial in ros_lib's ArduinoHardware.h and it compiled but doesn't work (when trying to connect using rosrun rosserial_python serial_node.py /dev/ttyUSB1 it loses sync with the device and no topics are being published).

Thanks, Thomas

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-28 15:40:18 -0500

ThomasK gravatar image

I resolved it by using arduimu v1.7 instead of v1.8 which isn't using FastSerial.h ... and maybe the fix with replacing HardwareSerial with FastSerial works because I'm still getting the same sync loss using v1.7 when I don't comment some of the imu related commands out.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-07-28 13:12:32 -0500

Seen: 564 times

Last updated: Jul 28 '12