最近拿了别人的程序跑,直接将工作空间git了过来,结果发现提示错误:
ERROR: cannot launch node of type [move_base/move_base]: Cannot locate node of type [move_base] in package [move_base]. Make sure file exists in package path and permission is set to executable (chmod +x)
因为在别的程序上用move_base没问题,所以知道不是缺少这个节点的问题,最后在一个类似的情况上找到了原因,就是这个工作空间存在重名的功能包
在没有source这个工作空间时,输入
catkin_find --without-underlays --libexec --share move_base
会发现move_base只在系统中存在
当对这个工作空间source之后,会发现当前ws下存在同名的
解决方法,就是按照第二张图的地址,删掉这两个文件夹就可以了
如果觉得有帮助,麻烦点个免费的赞吧,嘿嘿
参考资料:ROS:解决Error:cannot launch node of type [map_server/map_server]: can't locate node [map_server] in... - 简书