ERROR: cannot launch node of type [tf04_text/test01_new_turtle

ERROR: cannot launch node of type [tf04_text/test01_new_turtle]: Cannot locate node of type [test01_new_turtle] in package [tf04_text]. Make sure file exists in package path and permission is set to executable (chmod +x)

问题:自己编写的生成新乌龟的功能包再launch文件下运行不了 ,权限我也加了,单独rosrun运行可以运行,没有重名问题,网上答案差不多都试了 CmakeLists那些也看了。
代码如下:






这个错误消息告诉你无法在包 tf04_text 中找到类型为 test01_new_turtle 的节点,因此无法启动这个节点。

有几种可能的原因导致这个问题。

文件不存在:这个错误消息提到了文件不存在的问题。确保你的文件存在于包的路径中,并且检查文件名是否正确。

文件不可执行:这个错误消息还提到了权限问题。确保文件具有可执行权限,可以使用 chmod +x 命令添加权限。

CMakeLists 文件不正确:CMakeLists 文件负责编译和安装你的包。如果你的 CMakeLists 文件不正确,那么可能会导致你的节点无法启动。检查你的 CMakeLists 文件,确保它正确地添加了所有必需的文件。

最后,你检查一下代码。