VSCode 通过launch.json启动.launch文件报错

Error message:
Error from roslaunch: Unable to load file XXXXX.launch: XXXXXXXX

主要原因还是VS Code通过launch.json启动.launch文件时候没有source当前rep的初始化文件

解决方法

将当前rep的地址通过.bashrc声明

source /XX/devel/setup.bash

或者

catkin_make  
source devel/setup.bash
code .

如此启动vs code也可以

参考

https://github.com/ms-iot/vscode-ros/issues/379

posted @ 2022-03-30 22:48  采男孩的小蘑菇  阅读(870)  评论(0编辑  收藏  举报