当前位置:网站首页>Ros- resolve error "tf2\u buffer\was not declared in this scope"
Ros- resolve error "tf2\u buffer\was not declared in this scope"
2022-06-12 11:59:00 【Sunward flowers bloom_】
Problem description :
Use ros melodic edition compiler , The following error is reported :
error: ‘tf2_buffer_’ was not declared in this scope
inline tf2_ros::Buffer& getBuffer() { return tf2_buffer_; }
^~~~~~~~~~~
resolvent :
Inquiry , Found to be ros melodic The version has modified this place , Different from the previous version , use tf2_buffer_ptr_ Replaced the tf2_buffer_ , So the program needs to be modified .
Reference resources :Compile Error Melodic due to tf change
// The original way of writing :
inline tf2_ros::Buffer& getBuffer() {
return tf2_buffer_; }
// It is amended as follows :
inline std::shared_ptr<tf2_ros::Buffer> &getBuffer() {
return tf2_buffer_ptr_;}

边栏推荐
- M-arch (fanwai 10) gd32l233 evaluation -spi drive DS1302
- 视频分类的类间和类内关系——正则化
- 树的前序,中序,后序遍历
- Data processing instruction addressing method of arm instruction set
- Linear model of machine learning
- LeetCode_ String_ Simple_ 344. reverse string
- 7-5 complex quaternion operation
- How to select standard products and non-standard products, the importance of selection, and how to layout the store
- How to determine the relationship between home page and search? Relationship between homepage and search
- 無重複字符的最長字符串(LeetCode 3)
猜你喜欢

创建Servlet项目

6.6 rl:mdp and reward function

PDSCH related

QML学习 第二天

The second day of QML study

UML系列文章(30)体系结构建模---制品图

UML系列文章(31)体系结构建模---部署图

無重複字符的最長字符串(LeetCode 3)

PIP install in the CONDA environment cannot be installed into the specified CONDA environment (the default PIP installation location of the CONDA environment)

First understand the onion model, analyze the implementation process of middleware, and analyze the source code of KOA Middleware
随机推荐
ARM processor mode and register
[database] SQLite version upgrade and downgrade
6.6 rl:mdp and reward function
Video JS library uses custom components
視頻分類的類間和類內關系——正則化
Spark常用封装类
Spark common encapsulation classes
Reprint --win10 open the task manager to solve the blue screen problem
ioremap
Face recognition PIP failed to install Dlib Library
Google Earth engine (GEE) - quick land classification by kmeans clustering (double for loop quick parameter adjustment)
Judge whether the network file exists, obtain the network file size, creation time and modification time
6.6 separate convolution
[foundation of deep learning] learning of neural network (4)
Load/store memory access instruction of arm instruction set (1)
ARM指令集之Load/Store访存指令(二)
TinyMCE series (I) TinyMCE environment construction
Load/store access instruction of arm instruction set (2)
ARM指令集之Load/Store访存指令(一)
Ficusjs series (I) introduction to ficusjs