# ROS 终端常见错误集锦

ROS 终端常见错误集锦

一、ROS “is neither a launch file in package”报错

未找到你的package配置文件,运行

rospack find [package 名]

查找包是否存在:查看能否找到包,找不到的话把你的包拷贝到workspace路径下,cd到你的workspace路径;

然后运行

catkin_make
source devel/setup.bash

现在再次运行

rospack find [package 名]

检查你的package是否能被找到,不出意外能够找到。你再运行你的程序就不会报错了

二、catkin_make 常见错误

tf2_sensor_msgsConfig.cmake
tf2_sensor_msgs-config.cmake

参考:https://blog.csdn.net/qq_35315454/article/details/82706703[傳送門] (https://blog.csdn.net/qq_35315454/article/details/82706703)

DOOR

sudo apt-get install ros-kinetic-tf2-sensor-msgschuansongmen
在这里插入图片描述
Door
Door

Could not find a package configuration file provided by “xxxxxxxxxxx“ with any of the following name
ROS catkin_make编译遇到的问题

缺少配置文件
    解决方法
    注意事项

缺少配置文件

在catkin_make的时候出现了以下问题:
Could not find a package configuration file provided by “xxxxxxxxxxx” with any of the following names:
xxxxxxxxxxxConfig.cmake
xxxxxxxxxxx-Config.cmake

翻译过来的意思是:找不到“ ×××××××××”提供的程序包配置文件
具有以下任何名称:
xxxxxxxxxxxConfig.cmake
xxxxxxxxxxx-Config.cmake

问题在于缺少配置文件,因此吧缺失的东西下载好之后,再catkin_make编译就好了
解决方法

sudo apt-get install ros-kinetic(indigo)-xxxxxxxx

注:kinetic和indigo取决于你ros安装的版本,后面的xxxxxxxxx是你所缺失的配置文件,有时候系统会提示缺少"move_base_msgs",此时正确的办法应该是:

sudo apt-get install ros-kinetic(indigo)-move-base-msgs

(ubuntu16.04及以上的版本可以直接使用sudo apt install ros-kinetic(indigo)-move-base-msgs)
注意事项

有时候在使用上述方法时会遇到无法下载的情况,出现什么非stable版本,不允许下载的情况。网上有挺多教程,有时候看起来会比较麻烦,可以直接通过软件与更新->选择中国的服务器->重新载入
载入完成后—>sudo apt-get update

三、 1 rbx1 Kinetic 安装和测试传送门

WARNING: disk usage in log directory [/home/…/.ros/log] is over 1GB. 问题解决办法 translate

四、linux误修改bashrc导致终端无法打开

传送门1

五、gazebo

  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值