ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: Cannot locate node of type [state_publisher] in package [robot_state_publisher]. Make sure file exists in package path and permission is set to executable (chmod +x)
运行古月居《ROS机器人开发实践》一书第六章机器人建模与仿真中
display_mrobot_chassis_urdf.launch文件出现以上错误的解决办法:
将mrobot_description功能包下launch文件夹中display_mrobot_chassis_urdf.launch这个launch文件里面的运行robot_state_publisher节点下的type由type="state_publisher"改为type=“robot_state_publisher”,再一次运行display_mrobot_chassis_urdf.launch这个launch文件,就可解决问题。