Skip to content

A package containing the custom messages that the vortex repositories use.

License

Notifications You must be signed in to change notification settings

vortexntnu/vortex-msgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

A package containing the custom messages that the vortex repositories use.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages