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

Arduino DUE + CMake with rosserial_arduino

asked 2016-02-01 01:43:29 -0500

ChickenSoup gravatar image

updated 2016-05-17 02:36:40 -0500

Hello all,

What is the board name I should use for BOARD? The following does not work.

generate_arduino_firmware(due_project
  SRCS due_project.cpp ${ROS_LIB_DIR}/time.cpp
  BOARD due
  PORT /dev/ttyACM0
)

I have installed DUE related stuff in IDE by Tools -> Boards Manager. I just want the arduino things to be built using catkin just like other packages. Also, I noticed that /home/peshala/arduino-1.6.5-r5/hardware/arduino/avr/boards.txt does not contain an entry for "due".

Thank you.

CS

edit retag flag offensive close merge delete

Comments

The due is not an avr processor, it will be under sam.

tonybaltovski gravatar image tonybaltovski  ( 2016-02-01 09:58:05 -0500 )edit

@tonybaltovski ok I understand. So, what modifications should I make to compile and upload to DUE as in link text

ChickenSoup gravatar image ChickenSoup  ( 2016-02-01 19:03:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-17 06:45:41 -0500

laazizi gravatar image

hello i work for me with arduino1.6.8 i change in ros_lib the file ArduinoHardware.h #if defined(USBCON) and !(defined(USE_USBCON)) /* Leonardo support */ iostream = &Serial1;

to

#if defined(USBCON) and !(defined(USE_USBCON)) /* Leonardo support */ iostream = &Serial;

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-01 01:43:29 -0500

Seen: 447 times

Last updated: May 17 '16