当前位置:网站首页>ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
2022-06-25 00:23:00 【biter0088】
Report errors :
error: invalid initialization of reference of type ‘const boost::shared_ptr<const
sensor_driver_msgs::GpswithHeading_<std::allocator<void> > >&’ from expression of type
‘const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >’

Error reason :
Use const sensor_msgs::NavSatFix Type to initialize sensor_driver_msgs::GpswithHeading Type data , This is when changing the code Careless Caused by the .
lesson :
(1) Some look like c++、python And so on , Maybe I just write my own code / There's something wrong , Don't rush to find grammatical mistakes , First, you should be brave enough to read the newspaper
(2) stay ros Use in message_filters When synchronizing multiple topics , Note the following Three places Data types are consistent ( The error is that the data type of the fourth row in the following picture has not been changed to the new one )


边栏推荐
- Alternative to log4j
- C program design topic 15-16 final exam exercise solutions (Part 1)
- Time unified system
- UE4 WebBrowser图表不能显示问题
- The third generation of power electronics semiconductors: SiC MOSFET learning notes (V) research on driving power supply
- Zed acquisition
- [issue 25] face to face experience of golang Engineer in the rightmost social recruitment
- [interview question] what is a transaction? What are dirty reads, unrepeatable reads, phantom reads, and how to deal with several transaction isolation levels of MySQL
- Signal integrity (SI) power integrity (PI) learning notes (XXV) differential pair and differential impedance (V)
- The new employee of the Department after 00 is really a champion. He has worked for less than two years. The starting salary of 18K is close to me when he changes to our company
猜你喜欢

Ansible及playbook的相关操作
@mysql

离散数学及其应用 2018-2019学年春夏学期期末考试 习题详解

Dynamic effect of canvas lines

Go crawler framework -colly actual combat (III) -- panoramic cartoon picture capture and download

wx小程序跳转页面
Outer screen and widescreen wasted? Harmonyos folding screen design specification teaches you to use it
Alternative to log4j

人体改造 VS 数字化身

What is the difference between one way and two way ANOVA analysis, and how to use SPSS or prism for statistical analysis
随机推荐
Svg+js keyboard control path
Why do more and more physical stores use VR panorama? What are the advantages?
WordPress add photo album function [advanced custom fields Pro custom fields plug-in series tutorial]
[proteus simulation] example of using timer 0 as a 16 bit counter
人体改造 VS 数字化身
Use of navigation and navigationui
Android SQLite database
Tutorial details | how to edit and set the navigation function in the coolman system?
中低速航空航天电子总线概述
Only positive integers can be entered in the text box
[interview question] the difference between instancof and getclass()
MySQL log management
Go crawler framework -colly actual combat (II) -- Douban top250 crawling
Scrollview height cannot fill full screen
Use and click of multitypeadapter in recycleview
Some examples of MgO operating database in go
Encryption and encoding resolution
Common redis commands in Linux system
Apk slimming compression experience
Eliminate duplicate dependencies