ros入门程序,报错 Couldn‘t find executable named hello below /home/c415/desktop/test/src

运行指令rosrun hello_ros hello 后

报错:Couldn't find executable named hello below /home/c415/desktop/test/src/hello_ros  找不到执行文件;

可能原因在进行catkin_make后,生成的可执行文件没有在src文件目录下;

个人解决方法:生成的hello.exe可执行文件在目录一般在build下。可以把生成的hello.exe复制到.../test/src目录下。

再次运行指令rosrun hello_ros hello就可以看到正确结果了。

你可能感兴趣的:(笔记,ROS学习常见报错,linux,机器人)