问题
ERROR: cannot launch node of type [turtlesim/turtlesim_node]: Cannot locate node of type [turtlesim_node] in package [turtlesim]. Make sure file exists in package path and permission is set to executable (chmod +x)
排查过程
输入
catkin_find --without-underlays --libexec --share turtlesim
显示在其他工作空间下有turtlesim的目录,而我们需要的是ros自带的turtlesim
/home/yang/demo01_ws/devel/share/turtlesim
/home/yang/demo01_ws/src/turtlesim
解决方案
按照该路径将文件删除
再次输入
catkin_find --without-underlays --libexec --share turtlesim
只显示系统自带的turtlesim
/opt/ros/noetic/lib/turtlesim
/opt/ros/noetic/share/turtlesim
这样就可以了