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

How to install rosserial for Arduino on ROS-Kinetic?

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

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

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

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

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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

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

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

edit flag offensive delete link more

Comments

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

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

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

Matthew Kleinsmith gravatar image

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

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.

edit flag offensive delete link more

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/

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

Question Tools

3 followers

Stats

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

Seen: 14,083 times

Last updated: May 08 '18