当前位置:网站首页>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 )


边栏推荐
- Transition from digitalization to intelligent manufacturing
- Eliminate duplicate dependencies
- Some examples of MgO operating database in go
- JPA learning 1 - overview, JPA, JPA core annotations, JPA core objects
- Current situation and development prospect forecast report of global and Chinese tetrahydrofurfuryl alcohol acetate industry from 2022 to 2028
- I suddenly find that the request dependent package in NPM has been discarded. What should I do?
- C program design topic 15-16 final exam exercise solutions (Part 1)
- [Solved] Public key for mysql-community-xxx. rpm is not installed
- Analysis report on operation trend and investment strategy of global and Chinese tetrahydrofurfuryl propionate industry from 2022 to 2028
- Global and Chinese tetrahydrofurfuryl butyrate industry operation pattern and future prospect report 2022 ~ 2028
猜你喜欢

Wallpaper applet wechat applet

2019 summary and 2020 outlook

Ott marketing is booming. How should businesses invest?

Adding, deleting, modifying and checking in low build code

傳輸層 以字節為單比特的滑動窗口技術

Discrete mathematics and its application detailed explanation of exercises in the final exam of spring and summer semester of 2018-2019 academic year

离散数学及其应用 2018-2019学年春夏学期期末考试 习题详解
How to use promise Race() and promise any() ?

信号完整性(SI)电源完整性(PI)学习笔记(二十五)差分对与差分阻抗(五)

Wx applet jump page
随机推荐
Use of JMeter
Alternative to log4j
On the difficulty of developing large im instant messaging system
[Solved] Public key for mysql-community-xxx. rpm is not installed
Global and Chinese tetrahydrofurfuryl butyrate industry operation pattern and future prospect report 2022 ~ 2028
D omit parameter name
UE4 WebBrowser图表不能显示问题
2019 summary and 2020 outlook
Dynamic effect of canvas lines
Simple collation of Web cache
Fuxin Kunpeng joins in, and dragon lizard community welcomes a new partner in format document technical service
Paper review: U2 net, u-net composed of u-net
Collection of software testing and game testing articles
【面试题】instancof和getClass()的区别
Go crawler framework -colly actual combat (III) -- panoramic cartoon picture capture and download
Some examples of MgO operating database in go
I suddenly find that the request dependent package in NPM has been discarded. What should I do?
Usage of ViewModel and livedata in jetpack
Paint rounded rectangle
Wallpaper applet wechat applet