rosserial_arduino Blink Example in Arduino IDE not working

asked 2019-01-08 20:41:35 -0500

nsdolic gravatar image

updated 2019-01-09 06:38:24 -0500

Hi Everyone- pretty new to the ROS and here is my issue.

Trying to use rosserial_arduino on Ubuntu 16.02 LTS. (kinetic) I have followed all the steps outlined in Arduino IDE Setup tutorial.

When trying to run the Blink Example in Arduino IDE I’ve got following error:

Arduino: 1.8.8 (Linux), Board: "Arduino Duemilanove or Diecimila, ATmega328P"

In file included from /Arduino/libraries/ros_lib/ros.h:38:0, from /Arduino/libraries/ros_lib/examples/Blink/Blink.pde:6: /Arduino/libraries/ros_lib/ros/node_handle.h:41:38: fatal error: rosserial_msgs/TopicInfo.h: No such file or directory compilation terminated. exit status 1 Error compiling for board Arduino Duemilanove or Diecimila.

I have confirmed that my ros_lib folder is located here: /Arduino/libraries/ros_lib

Not sure how relevant this is but I do NOT have “rosserial Arduino Library” installed that is available in Library management.

Thank you.

edit retag flag offensive close merge delete


I found a way that might work for me. I am not using ros_lib at all. Instead I installed Rosserial Arduino Library from the Arduino "Manage Library" tool. Any custom library would need to go under /Arduino/libraries/Rosserial_Arduino_LIbrary/src.

nsdolic gravatar image nsdolic  ( 2019-01-09 19:15:02 -0500 )edit