当前位置:网站首页>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)
边栏推荐
- Description of octomap averagenodecolor function
- Interview Reply of Zhuhai Jinshan
- Iterator Foundation
- Launch APS system to break the problem of decoupling material procurement plan from production practice
- Typescript interface and the use of generics
- Solution: intelligent site intelligent inspection scheme video monitoring system
- Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
- 成为优秀的TS体操高手 之 TS 类型体操前置知识储备
- Word delete the contents in brackets
- Excel的相关操作
猜你喜欢

Games101 Lesson 7 shading 1 Notes

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
![[非线性控制理论]9_非线性控制理论串讲](/img/a8/03ed363659a0a067c2f1934457c106.png)
[非线性控制理论]9_非线性控制理论串讲

MEX有关的学习

解决方案:智慧工地智能巡检方案视频监控系统

Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master

Basics of reptile - Scratch reptile

Simulation of Michelson interferometer based on MATLAB

Key value judgment in the cycle of TS type gymnastics, as keyword use

Solution: système de surveillance vidéo intelligent de patrouille sur le chantier
随机推荐
Excel的相关操作
How to prevent Association in cross-border e-commerce multi account operations?
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
HTTP cache, forced cache, negotiated cache
Sharing of source code anti disclosure scheme under burning scenario
Jerry's general penetration test - do data transmission with app Communication [article]
Leecode-c language implementation -15 Sum of three ----- ideas to be improved
Cf1036c class numbers solution
C intercept string
The way to learn go (I) the basic introduction of go to the first HelloWorld
[MySQL learning notes 30] lock (non tutorial)
word怎么只删除英语保留汉语或删除汉语保留英文
上线APS系统,破除物料采购计划与生产实际脱钩的难题
解决方案:智慧工地智能巡檢方案視頻監控系統
Typescript indexable type
Notes on software development
Type of data in energy dashboard
[count] [combined number] value series
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics