当前位置:网站首页>ROS learning (IX): referencing custom message types in header files
ROS learning (IX): referencing custom message types in header files
2022-07-06 07:44:00 【biter0088】
The following describes a method of referencing custom message types in header files
1、 Custom message type
The custom message package name is :sensor_driver_msgs
The custom message type is named :GpswithHeading.msg
The file organization is :
2、 Reference in the header file
When referenced in files of other packages , It can be referenced in the header file , The format is as follows , Quoted here with “.h” ending :
#include <sensor_driver_msgs/GpswithHeading.h> // Reference the customized message type in the header file
Be careful : At this time, it is already in other packages CMakeLists.txt It contains sensor_driver_msgs package
find_package(catkin REQUIRED COMPONENTS
xxx
sensor_driver_msgs
xxx
)
...
catkin_package(
INCLUDE_DIRS include
LIBRARIES xxx
CATKIN_DEPENDS xxx sensor_driver_msgs
# DEPENDS system_lib
)
...
add_dependencies(xxx_node sensor_driver_msgs_generate_messages_cpp)
边栏推荐
- Scala language learning-08-abstract classes
- The way to learn go (II) basic types, variables and constants
- Leecode-c language implementation -15 Sum of three ----- ideas to be improved
- http缓存,强制缓存,协商缓存
- If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]
- js对象获取属性的方法(.和[]方式)
- 数据治理:元数据管理篇
- qt颜色与字符串、uint相互转换
- 解决方案:智慧工地智能巡檢方案視頻監控系統
- Emo diary 1
猜你喜欢
Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
Fundamentals of C language 9: Functions
octomap averageNodeColor函数说明
[MySQL learning notes 30] lock (non tutorial)
The way to learn go (I) the basic introduction of go to the first HelloWorld
剪映的相关介绍
链表面试题(图文详解)
Simulation of Teman green interferometer based on MATLAB
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics
解决方案:智慧工地智能巡检方案视频监控系统
随机推荐
Three treasures of leeks and Chinese men's football team
Helm install Minio
Jerry's ad series MIDI function description [chapter]
[非线性控制理论]9_非线性控制理论串讲
超级浏览器是指纹浏览器吗?怎样选择一款好的超级浏览器?
Related operations of Excel
Wonderful use of TS type gymnastics string
Transformer principle and code elaboration
Database addition, deletion, modification and query
Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
Position() function in XPath uses
Games101 Lesson 7 shading 1 Notes
Leecode-c language implementation -15 Sum of three ----- ideas to be improved
Onie supports pice hard disk
datax自检报错 /datax/plugin/reader/._drdsreader/plugin.json]不存在
Do you really think binary search is easy
WebRTC系列-H.264预估码率计算
Typescript function definition
Typescript indexable type
软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历