(RECOMMENDED) Installing Binaries on the ROS workstation
You have 2 options of how to install related libraries. Otherwise the Arduino IDE will not be able to locate them. Prior to including any other header files, e.g. In order to use the rosserial libraries in your own code, you must first put You can then install the library using the instructions below. If there is not already a libraries folder in your sketchbook, make one. Like all Arduino libraries, ros_lib works by putting its library implementation into the libraries folder of your sketchbook. Our ROS bindings are implemented as an Arduino library. (See arduino official website, sketchbook is a standard place to store your programs, or sketches). Once installed, launch the application to select your sketchbook location. It is best to install the application into a folder on the application PATH, the desktop, or home folder. NOTE: If you do not already have an Arduino IDE installed, download it from the Arduino website. It allows your Arduino to be a full fledged ROS node which can directly publish and subscribe to ROS messages, publish TF transforms, and get the ROS system time.
rosserial provides a ROS communication protocol that works over your Arduino's UART. Using the rosserial_arduino package, you can use ROS directly with the Arduino IDE. The Arduino and Arduino IDE are great tools for quickly and easily programming hardware.