当前位置:网站首页>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
边栏推荐
- First character that appears only once
- Relation extraction model -- spit model
- Discrete device ~ diode triode
- Apple motherboard decoding chip, lightning Apple motherboard decoding I.C
- How to correctly PIP install pyscipopt
- Learn signal integrity from zero (SIPI) - (1)
- Teach you a few tricks: 30 "overbearing" warm words to coax girls, don't look regret!
- Addition of attention function in yolov5
- Time functions supported in optee
- Analysis of Yolo series principle
猜你喜欢

MySQL insert Chinese error
![[postgraduate entrance examination: planning group] clarify the relationship among memory, main memory, CPU, etc](/img/c2/d1432ab6021ee9da310103cc42beb3.jpg)
[postgraduate entrance examination: planning group] clarify the relationship among memory, main memory, CPU, etc

Method of measuring ripple of switching power supply

2020-10-29

利用无线技术实现分散传感器信号远程集中控制

STM32 porting mpu6050/9250 DMP official library (motion_driver_6.12) modifying and porting DMP simple tutorial

Learn signal integrity from zero (SIPI) - (1)

Discrete device ~ resistance capacitance

STM32 project design: smart door lock PCB and source code based on stm32f1 (4 unlocking methods)

Necessary protection ring for weak current detection
随机推荐
SOC的多核启动流程详解
51 MCU project design: Based on 51 MCU clock perpetual calendar
STM32 porting mpu6050/9250 DMP official library (motion_driver_6.12) modifying and porting DMP simple tutorial
HEVC学习之码流分析
opencv學習筆記三
SQL learning experience (II): question brushing record
Using transformers of hugging face to realize named entity recognition
鲸会务一站式智能会议系统帮助主办方实现数字化会议管理
Matlab function foundation (directly abandon version)
Parameter understanding of quad dataloader in yolov5
Text to SQL model ----irnet
Jupyter的安装
[已解决]setOnNavigationItemSelectedListener()被弃用
Software engineering - personal assignment - question review and personal summary
1GHz active probe DIY
The best time to buy and sell stocks to get the maximum return
Learning signal integrity from scratch (SIPI) -- 3 challenges faced by Si and Si based design methods
STM32 encountered problems using encoder module (library function version)
Fabrication of modulation and demodulation circuit
Idea auto Guide