当前位置:网站首页>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)
边栏推荐
- P3047 [USACO12FEB]Nearby Cows G(树形dp)
- Google may return to the Chinese market after the Spring Festival.
- [MySQL learning notes 32] mvcc
- TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
- C # display the list control, select the file to obtain the file path and filter the file extension, and RichTextBox displays the data
- Three treasures of leeks and Chinese men's football team
- Méthode d'obtention des propriétés de l'objet JS (.Et [] méthodes)
- 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
- js对象获取属性的方法(.和[]方式)
- Interview Reply of Zhuhai Jinshan
猜你喜欢

剪映的相关介绍

How to delete all the words before or after a symbol in word

Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
![If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]](/img/57/12a97ab3d2dabfaf06bbe1788450cf.png)
If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]

继电反馈PID控制器参数自整定

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
![Ble of Jerry [chapter]](/img/ce/127b597cdd238bb0c37326f5cf8265.png)
Ble of Jerry [chapter]
![[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems](/img/6d/282d904810807810adb06b071fb39b.jpg)
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems

Do you really think binary search is easy

数字经济时代,如何保障安全?
随机推荐
C intercept string
Typescript interface and the use of generics
[非线性控制理论]9_非线性控制理论串讲
http缓存,强制缓存,协商缓存
After the hot update of uniapp, "mismatched versions may cause application exceptions" causes and Solutions
How can word delete English only and keep Chinese or delete Chinese and keep English
Risk planning and identification of Oracle project management system
Notes on software development
onie支持pice硬盘
Helm install Minio
HTTP cache, forced cache, negotiated cache
Luogu p4127 [ahoi2009] similar distribution problem solution
opencv学习笔记九--背景建模+光流估计
[count] [combined number] value series
Simulation of Michelson interferometer based on MATLAB
QT color is converted to string and uint
Get/post/put/patch/delete meaning
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
Iterator Foundation
[MySQL learning notes 30] lock (non tutorial)