Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.33 KB

README.md

File metadata and controls

49 lines (40 loc) · 1.33 KB

vortex_msgs

Source Build

This ROS package contains all custom ROS message types used in all workspaces

Before you add a new custom message: are you really sure you need one?

First have a look in the common_msgs package to find out if any of the message types included in ROS works for you.

Adding a new message type

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
)

Using the messages in your package

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>