在ros中新增加一个功能包时,如果没有处理得当的话,在执行时很有可能报如下错误:
xxx is neither a launch file in package xxx nor is xxx a launch file name……
那么这个报错算是非常常见了,通常是catkin_make后没有source一下,因此,回到workspace下source devel/setup.bash即可了。
source之后运行成功的前提是launch文件什么的都配置没有问题的,也就是catkin_make之后没有其他问题了而launch找不到文件。