当前位置:网站首页>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)
边栏推荐
- If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]
- Document 2 Feb 12 16:54
- TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
- Emo diary 1
- 继电反馈PID控制器参数自整定
- 49. Sound card driven article collection
- Bit operation XOR
- Rust language - receive command line parameter instances
- In the era of digital economy, how to ensure security?
- 智能终端设备加密防护的意义和措施
猜你喜欢
Key value judgment in the cycle of TS type gymnastics, as keyword use
opencv学习笔记九--背景建模+光流估计
Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
Linked list interview questions (Graphic explanation)
Significance and measures of encryption protection for intelligent terminal equipment
Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
【Redis】NoSQL数据库和redis简介
Ble of Jerry [chapter]
Solution: système de surveillance vidéo intelligent de patrouille sur le chantier
datax自检报错 /datax/plugin/reader/._drdsreader/plugin.json]不存在
随机推荐
[MySQL learning notes 29] trigger
数据治理:数据质量篇
http缓存,强制缓存,协商缓存
Type of data in energy dashboard
Fundamentals of C language 9: Functions
合规、高效,加快药企数字化转型,全新打造药企文档资源中心
解决方案:智慧工地智能巡檢方案視頻監控系統
Summary of Digital IC design written examination questions (I)
成为优秀的TS体操高手 之 TS 类型体操前置知识储备
Word delete the contents in brackets
TS 体操 &(交叉运算) 和 接口的继承的区别
Nc204382 medium sequence
Redis list detailed explanation of character types yyds dry goods inventory
TypeScript接口与泛型的使用
Games101 Lesson 7 shading 1 Notes
861. Score after flipping the matrix
edge浏览器 路径获得
烧录场景下的源代码防泄密方案分享
Bit operation XOR
[window] when the Microsoft Store is deleted locally, how to reinstall it in three steps