Skip to content

Instantly share code, notes, and snippets.

@jdumont0201
Created May 4, 2018 11:36
Show Gist options
  • Save jdumont0201/302e809e6b2fec56360f69801e8e670a to your computer and use it in GitHub Desktop.
Save jdumont0201/302e809e6b2fec56360f69801e8e670a to your computer and use it in GitHub Desktop.
ROS Custom Message CMake
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation # Add message_generation here, after the other packages
)
#Add to message files
add_message_files(
FILES
Age.msg
)
#Add to message generator
generate_messages(
DEPENDENCIES
std_msgs
)
#Add message_runtime
catkin_package(
CATKIN_DEPENDS roscpp std_msgs message_runtime
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment