0
$\begingroup$

Rosanswers logo

Hi,

I tried to compile a .ino for my Arduino DUE with rosserial package and Arduino IDE-1.5.2, but this warning happens :

ArduinoHardware.h:68: warning: undefined reference to `HardwareSerial::begin(unsigned long)'

And that is surely why I can't communicate with serial port when I use ROS :

Lost sync with device

However, the code compiles and works with an Arduino MEGA.

Does anyone had this problem before ?


Originally posted by Yeti on ROS Answers with karma: 11 on 2013-03-13

Post score: 1


Original comments

Comment by 0pc0 on 2013-06-28:
Have you found a resolution to your problem?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

It is necessary to use UARTClass or USARTClass (which are subclasses of HardwareSerial). See http://forum.arduino.cc/index.php?topic=142753.0. I haven't gotten Rosserial communicating yet, but my progress notes are here: http://wiki.jigren.org/index.php?title=Rosserial_On_Arduino_Due


Originally posted by cha with karma: 41 on 2013-08-15

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by cha on 2013-08-18:
Got it working. See also https://github.com/ros-drivers/rosserial/pull/58 .

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.