当前位置:网站首页>ROS learning notes (5) -- Exploration of customized messages
ROS learning notes (5) -- Exploration of customized messages
2022-06-26 08:38:00 【Yu Getou】
This blog is mainly used for pit drainage
1. The data type defined by the message
Be sure to add the number of data digits when defining , Such as float type Should be written as float32
2. The same message can be used in multiple function packs , There's no need to redefine
example : stay A Function package call B Messages in the Feature Pack
1. modify A The feature pack package.xml
# Add the following statement
<build_depend>b_package</build_depend>
<build_export_depend>b_package</build_export_depend>
<exec_depend>b_package</exec_depend>
2. modify A The feature pack CmakeList.txt
# modify find_packge
find_package(catkin REQUIRED … b_package)
# Uncomment the following statement
include_directories(
include
${catkin_INCLUDE_DIRS}
)
3. compile B Function pack
catkin_make -DCATKIN_WHITELIST_PACKAGES='b_package'
4. Global compilation
catkin_make -DCATKIN_WHITELIST_PACKAGES=''
After the above steps , You can go to A The corresponding message file is introduced into the function package
#include "b_package/xxx.msg"
- See my blog for the detailed process of adding message files
ROS Learning notes (1)—ROS Installation and basic usage of
边栏推荐
- How to Use Instruments in Xcode
- Torch model to tensorflow
- OpenCV Learning notes iii
- Transformers loading Roberta to implement sequence annotation task
- First character that appears only once
- [已解决]setOnNavigationItemSelectedListener()被弃用
- Discrete device ~ resistance capacitance
- Zlib static library compilation
- SQL learning experience (II): question brushing record
- Compiling owncloud client on win10
猜你喜欢

Intra class data member initialization of static const and static constexpr
GHUnit: Unit Testing Objective-C for the iPhone

Fabrication of modulation and demodulation circuit

X-VLM多模态模型解读

Method of measuring ripple of switching power supply

Relation extraction model -- spit model

Calculation of decoupling capacitance

opencv學習筆記三

关于极客时间 | MySQL实战45讲的部分总结

Cause analysis of serial communication overshoot and method of termination
随机推荐
Compiling owncloud client on win10
Analysis of Yolo series principle
Apple motherboard decoding chip, lightning Apple motherboard decoding I.C
Opencv learning notes 3
WBC learning notes (I): manually push WBC formula
Transformers loading Roberta to implement sequence annotation task
Zlib static library compilation
Method of measuring ripple of switching power supply
XXL job configuration alarm email notification
JS file message invalid character error
Vs2019-mfc setting edit control and static text font size
[已解决]setOnNavigationItemSelectedListener()被弃用
Swift code implements method calls
51 MCU project design: Based on 51 MCU clock perpetual calendar
Diode voltage doubling circuit
Learning signal integrity from scratch (SIPI) -- 3 challenges faced by Si and Si based design methods
批量修改文件名
51 single chip microcomputer project design: schematic diagram of timed pet feeding system (LCD 1602, timed alarm clock, key timing) Protues, KEIL, DXP
[postgraduate entrance examination] group planning exercises: memory
Relation extraction model -- spit model