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
ThrusterForces.msg
)
In your package.xml
, add these dependencies
<build_depend>vortex_msgs</build_depend>
<run_depend>vortex_msgs</run_depend>
Add it to your CMakeLists.txt
find_package(catkin REQUIRED COMPONENTS roscpp vortex_msgs)
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS roscpp vortex_msgs
DEPENDS
)
add_dependencies(<your executable> vortex_msgs_generate_messages_cpp)
Include the messages in your source code, i.e.
#include <vortex_msgs/ThrusterForces.h>