This ROS package contains all custom ROS message types used in all workspaces
First have a look in the common_msgs package to find out if any of the message types included in ROS works for you.
Create a new message description file in msg
Add the message in the list of messages in the CMakeLists.txt file in this repo
## Generate messages in the 'msg' folder
add_message_files(
FILES
LineCounter.msg
)
In your package.xml
, add these dependencies
<build_depend>ascend_msgs</build_depend>
<run_depend>ascend_msgs</run_depend>
Add it to your CMakeLists.txt
find_package(catkin REQUIRED COMPONENTS roscpp ascend_msgs)
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS roscpp ascend_msgs
DEPENDS
)
add_dependencies(<your executable> ascend_msgs_generate_messages_cpp)
Include the messages in your source code, i.e.
#include <ascend_msgs/LineCounter.h>