O'Reilly logo

Robot Operating System Cookbook by Kumar Bipin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it…

  1. To run the ROS nodes from Arduino, let us set up the rosserial packages and the rosserial_arduino client in the Arduino IDE.
  2. Install the rosserial packages on Ubuntu 16.04 using the following commands:
$ 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. Build the packages from the source after cloning the rosserial repository in the catkin workspace:
$ cd ~/catkin_ws/src/
$ git clone https://github.com/ros-drivers/rosserial.git
$ cd ~/catkin_ws/
$ catkin_make
  1. Install the Arduino IDE by following the steps described at http://arduino.cc/en/Main/Software.
  2.  Download the Linux 64-bit version and copy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required