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


边栏推荐
- Modstart: embrace new technologies and take the lead in supporting laravel 9.0
- Fast pace? high pressure? VR panoramic Inn brings you a comfortable life
- Go crawler framework -colly actual combat (III) -- panoramic cartoon picture capture and download
- Analysis report on operation pattern and supply and demand situation of global and Chinese cyano ketoprofen industry from 2022 to 2028
- Uniapp encapsulated incentive advertisement, screen insert advertisement and banner advertisement
- Opengauss kernel: simple query execution
- Analysis report on operation trend and investment strategy of global and Chinese tetrahydrofurfuryl propionate industry from 2022 to 2028
- Approaching harvest moon:moonbeam DFI Carnival
- What exactly is Nacos
- 无需显示屏的VNC Viewer远程连接树莓派
猜你喜欢

ServerSocket and socket connection

Difficult and miscellaneous problems: A Study on the phenomenon of text fuzziness caused by transform
[distributed system design profile (2)] kV raft

Adding, deleting, modifying and checking in low build code

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
How can I persuade leaders to use DDD to construct the liver project?

浅析大型IM即时通讯系统开发难度

Dynamic effect of canvas lines

How to quickly open traffic master for wechat applet

Use of JMeter easynmon
随机推荐
JPA learning 2 - core annotation, annotation addition, deletion, modification and query, list query result return type, one to many, many to one, many to many
Ansible及playbook的相关操作
Do280openshift access control -- encryption and configmap
JS dynamically generates variable names and assigns values
Meta & Berkeley proposed a universal multi-scale visual transformer based on pooled self attention mechanism. The classification accuracy in Imagenet reached 88.8%! Open source
Go crawler framework -colly actual combat (IV) -- Zhihu answer crawl (I)
December 6, 2019 what happens after the browser enters a URL
傳輸層 以字節為單比特的滑動窗口技術
Design scheme of authority management of fusion model
Eliminate duplicate dependencies
【面试题】instancof和getClass()的区别
Dynamic effect of canvas lines
On the difficulty of developing large im instant messaging system
Difficult and miscellaneous problems: A Study on the phenomenon of text fuzziness caused by transform
MySQL日志管理
How can I persuade leaders to use DDD to construct the liver project?
Go crawler framework -colly actual combat (4) -- Zhihu answer crawl (2) -- visual word cloud
Dry and wet contacts
After 5 years of software testing in didi and ByteDance, it's too real
时间统一系统