How to install rosserial for Arduino on ROS-Kinetic?
There official website states that no information is contained regarding rosserial for Arduino on the latest verion of ROS i.e, Kinetic. Can I install manually? If so, please help me.
Asked by Karthikeya Parunandi on 2016-05-30 14:04:14 UTC
Answers
sudo apt-get update
sudo apt-get install -y \
arduino \
ros-kinetic-rosserial-arduino \
ros-kinetic-rosserial
cd ~/sketchbook/libraries
mv ros_lib ~/ros_lib_backup
rosrun rosserial_arduino make_libraries.py ~/sketchbook/libraries
make_libraries.py might raise an error about tf. The error hasn't affected my applications.
The above script is from the official instructions but with "indigo" replaced with "kinetic".
I've only done this with Ubuntu 16.04.
Asked by Matthew Kleinsmith on 2016-11-16 03:55:14 UTC
Comments
Hi. I did everything but it did not work for me. I didnt get an error but I couldn't see ros_lib on examples. but it creates a ros_lib in the sketchbook/libraries. I changed libraries folder and I fixed it like that :
sudo mv ~/sketchbook/libraries/ros_lib /usr/share/arduino/libraries/
Asked by girayuzun on 2017-03-14 17:04:23 UTC
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
Asked by Farid on 2018-05-08 10:35:11 UTC
Comments
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 :(
Asked by ivan on 2016-06-12 16:32:29 UTC
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?
Asked by blancc on 2016-07-06 12:21:59 UTC