My solution for Ubuntu 16.04, ROS Kinetic, Arduino 1.8.5:
$ sudo apt-get update
Install newest version of Arduino from: https://www.arduino.cc/en/Guide/Linux , download page : https://www.arduino.cc/en/Main/Software .
ROS and Arduino Compatibility:
$ sudo apt-get install ros-kinetic-rosserial-arduino
$ sudo apt-get install ros-kinetic-rosserial
To Install the ros_lib
library in my Arduino folder which was built automatically (you may know it as /sketchbook
):
$ cd Arduino/libraries/
$ rosrun rosserial_arduino make_libraries.py .
space . is VERY important in the line above
now should have a newly built folder called ros_lib in that directory. You could also validate it by navigating through Arduino IDE:
Open Arduino IDE:
File -> Examples -> ros_lib
i have the same problem I try from git, but ... fatal error: ros/node_handle.h: No such file or directory I was working in indigo, it work fine, but xbee-serial NOT.. so I try kinetic and rosserial dont work :( why rosserial is not include in kinetic.. is a basic practice for simple robot :(
I have the same problem.
Our robot used rosserial_arduino on hydro and now I can't compile its source code under kame. Is it possible to install rosserial_arduino from source? Will it be supported in kame someday?