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

How to install rosserial for Arduino on ROS-Kinetic?

asked 2016-05-30 14:04:14 -0500

Karthikeya Parunandi gravatar image

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.

edit retag flag offensive close merge delete


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 :(

ivan gravatar image ivan  ( 2016-06-12 16:32:29 -0500 )edit

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?

blancc gravatar image blancc  ( 2016-07-06 12:21:59 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-05-08 10:35:11 -0500

Farid gravatar image

My solution for Ubuntu 16.04, ROS Kinetic, Arduino 1.8.5:

$ sudo apt-get update

Install newest version of Arduino from: , download page : .

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 .

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

edit flag offensive delete link more


The whole process is described in a sequence of tutorials at Wiki ROS.

matheusns gravatar image matheusns  ( 2018-05-09 11:26:56 -0500 )edit

answered 2016-11-16 02:55:14 -0500

Matthew Kleinsmith gravatar image

updated 2016-11-16 03:02:32 -0500

sudo apt-get update
sudo apt-get install -y \
                arduino \
                ros-kinetic-rosserial-arduino \
cd ~/sketchbook/libraries
mv ros_lib ~/ros_lib_backup
rosrun rosserial_arduino ~/sketchbook/libraries 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.

edit flag offensive delete link more


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/

girayuzun gravatar image girayuzun  ( 2017-03-14 17:04:23 -0500 )edit

Question Tools



Asked: 2016-05-30 14:04:14 -0500

Seen: 13,814 times

Last updated: May 08 '18