| Note: This tutorial assumes that you have completed the previous tutorials: Arduino IDE Setup. |
Generating Message Header File
Description: This tutorial shows how to generate message header files for using new message packages with rosserial.Tutorial Level: INTERMEDIATE
Contents
Overview
Message header files are generated for many important message types when you install rosserial. If you need to use other message types, or you have your own custom message types, you will need to generate the appropriate headers.
Generating Message Header Files
New in 0.2.0 The make_library has moved from rosserial_arduino to rosserial_client.
The rosserial_client package includes a tool for generating the required header files from message definition files.
rosrun rosserial_client make_library.py path_to_libraries your_message_package
For instance, suppose I need to generate headers for message definitions contained in my crazy_msgs package, and ros_lib is located at '~/sketchbook/libraries/ros_lib':
rosrun rosserial_client make_library.py ~/sketchbook/libraries crazy_msgs
This command will create the headers, and locate them in ~/sketchbook/libraries/ros_lib/crazy_msgs/.






