当前位置:网站首页>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)
边栏推荐
- js对象获取属性的方法(.和[]方式)
- Jerry's general penetration test - do data transmission with app Communication [article]
- 合规、高效,加快药企数字化转型,全新打造药企文档资源中心
- Is the super browser a fingerprint browser? How to choose a good super browser?
- After the hot update of uniapp, "mismatched versions may cause application exceptions" causes and Solutions
- Solution: système de surveillance vidéo intelligent de patrouille sur le chantier
- 继电反馈PID控制器参数自整定
- leecode-C语言实现-15. 三数之和------思路待改进版
- TypeScript接口与泛型的使用
- Typescript indexable type
猜你喜欢
软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
解决方案:智慧工地智能巡检方案视频监控系统
Simulation of Michelson interferometer based on MATLAB
NiO programming introduction
opencv学习笔记九--背景建模+光流估计
How to prevent Association in cross-border e-commerce multi account operations?
In the era of digital economy, how to ensure security?
Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
Key value judgment in the cycle of TS type gymnastics, as keyword use
Google may return to the Chinese market after the Spring Festival.
随机推荐
xpath中的position()函数使用
Cf1036c class numbers solution
Bugku CTF daily question: do you want seeds? Blackmailed
Sharing of source code anti disclosure scheme under burning scenario
Brief explanation of instagram operation tips in 2022
数字经济时代,如何保障安全?
Codeforces Global Round 19(A~D)
(lightoj - 1410) consistent verbs (thinking)
leecode-C語言實現-15. 三數之和------思路待改進版
Significance and measures of encryption protection for intelligent terminal equipment
[MySQL learning notes 30] lock (non tutorial)
http缓存,强制缓存,协商缓存
Is the super browser a fingerprint browser? How to choose a good super browser?
Get the path of edge browser
Summary of Digital IC design written examination questions (I)
洛谷P4127 [AHOI2009]同类分布 题解
word设置目录
HTTP cache, forced cache, negotiated cache
Word delete the contents in brackets
How to prevent Association in cross-border e-commerce multi account operations?