自己写的ros功能包,怎么roslaunch时候Tab按键不能提示?Tab按键提示错误?

版权声明:转载请注释出处,帅某不胜感激。 https://blog.csdn.net/weixin_43262513/article/details/88061692

我总结了一下一共有三个原因:
1.忘记把环境变量设置到bashrc文件中,具体做法:

vi  ~/.bashrc

最后一行插入:

source ~/catkin_ws/devel/setup.bash

然后:

source ~/.bashrc

2.出现下面信息。
[start_demo_with_listener.launch] is neither a launch file in package [rbx1_bringup] nor is [rbx1_bringup] a launch file name The traceback for the exception was written to the log file

可是能忘记了source
具体做法:

cd ~/catkin_ws
source devel/setup.bash

3.没有遇到,转自博主。
https://blog.csdn.net/banzhuan133/article/details/77679778
我们默认的包是gitclone在src下的,当你将新的包gitclone在其他地方时,source命令就会出错。因此我将该包剪切至src下,并重新执行

source devel/setup.bash

上面方法2和3问题其实是一样的原因,就是系统没有把对应launch 文件添加到路径里,最好的办法就是将经常git的路径的source添加到~/.bashrc里面.

猜你喜欢

转载自blog.csdn.net/weixin_43262513/article/details/88061692
Tab
今日推荐