When running autoware official demo (autoware.ai), start my_localization.launch
roslaunch autoware_quickstart_examples my_localization.launch
The following warning appears:
[ WARN] [1649143568.073127311]: The 'state_publisher' executable is deprecated. Please use 'robot_state_publisher' instead
[WARNING] Executable 'state_publisher' has been deprecated, please replace it with 'robot_state_publisher'
-------------------------------- ----------------------------------
Obviously, the solution is:
Find 'state_publisher' and replace it with 'robot_state_publisher' .
文件位置:autoware.ai>install>vehicle_description>share>vehicle_description>launch>vehicle_model.launch
After opening, modify the file: change 'state_publisher' to 'robot_state_publisher'
Rerun:
roslaunch autoware_quickstart_examples my_localization.launch
The result is normal:
At this point, the problem has been solved. Here are my ideas. View them selectively:
Collect relevant experience posts on the Internet and find solutions: Change 'state_publisher' to 'robot_state_publisher' >> Find the location of this file >> Modify it into the corresponding code.
The most difficult part of this BUG is to find the "file location" . Pass the command roslaunch autoware_quickstart_examples my_localization.launch
Open the launch file and search for all launch files in the file. Open all launch files in autoware.ai, find which file 'state_publisher' is in, and finally determine which file is in vehicle_model.launch. Modify it, rerun, and it succeeds.