autoware警告The ‘state_publisher‘ executable is deprecated. Please use ‘robot_state_publisher‘ instead

在运行autoware官方demo(autoware.ai)的时候,启动my_localization.launch

roslaunch autoware_quickstart_examples my_localization.launch

出现以下警告:
[ WARN] [1649143568.073127311]: The 'state_publisher' executable is deprecated. Please use 'robot_state_publisher' instead

 [警告]可执行文件‘state_publisher’已经被弃用,请用‘robot_state_publisher’代替它
-----------------------------------------------------------------
很显然,解决办法就是:

                                 找到‘state_publisher’并用‘robot_state_publisher’去代替它

文件位置:autoware.ai>install>vehicle_description>share>vehicle_description>launch>vehicle_model.launch

打开后修改其中的文件:把‘state_publisher’改为‘robot_state_publisher’

 重新运行:
roslaunch autoware_quickstart_examples my_localization.launch

​结果正常:

至此,问题已解决,下面是我的思路,选择性查看:

在网上搜集相关经验贴,查找解决办法:把‘state_publisher’改为‘robot_state_publisher’>>查找这个文件的位置>>修改成相应的代码。

这个BUG里面最难的地方是查找“文件位置”。通过命令roslaunch autoware_quickstart_examples my_localization.launch

打开launch文件查找文件中所有的launch文件,在autoware.ai中把所有launch文件全部打开,查找‘state_publisher’在哪个文件中,最终确定在vehicle_model.launch.修改它,重新运行,成功。

 

 

 

 

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值