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.修改它,重新运行,成功。

 

猜你喜欢

转载自blog.csdn.net/m0_62648611/article/details/123974799