Installing rosserial packages on Ubuntu 16.04

To operate with Arduino on Ubuntu 16.04, we must install rosserial ROS packages and then set up the Arduino client, installing the libraries needed to communicate with ROS. We can install the rosserial packages on Ubuntu using the following commands:

  1. Install the rosserial package binaries, using apt-get:
$ sudo apt-get install ros-kinetic-rosserial-arduino ros-kinetic-rosserial-embeddedlinux ros-kinetic-rosserial-windows ros-kinetic-rosserial-server ros-kinetic-rosserial-python
  
  1. For installing the rosserial_client library called ros_lib in Arduino, we must download the latest Arduino IDE for Linux 32/64 bit. The following is the link for downloading the Arduino IDE: https://www.arduino.cc/en/main/software ...

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.