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 it works…

After setting up the Arduino, we will go to File | Preferences for configuring the sketchbook folder of Arduino (for example, /home/<user>/Arduino).

You may have noticed a folder called libraries inside the Arduino folder. There, we have to generate ros_lib using a script called make_libraries.py, which is present inside the rosserial_arduino package. The following commands show how to generate ros_lib for Arduino:

ros_lib is the rosserial_client for Arduino, which provides the ROS client APIs inside an Arduino IDE environment.
$ cd ~/Arduino/libraries/
$ rosrun rosserial_arduino make_libraries.py 

The make_libraries.py script will generate a wrapper of the ROS topic and service messages, which are optimized for Arduino data ...

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