当前位置:   article > 正文

# ROS 终端常见错误集锦_tf2_sensor_msgsconfig.cmake

tf2_sensor_msgsconfig.cmake

ROS 终端常见错误集锦

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

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

rospack find [package 名]
  • 1

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

然后运行

catkin_make
source devel/setup.bash
  • 1
  • 2

现在再次运行

rospack find [package 名]
  • 1

检查你的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编译遇到的问题

缺少配置文件
    解决方法
    注意事项
  • 1
  • 2
  • 3

缺少配置文件

在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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/51107
推荐阅读
相关标签
  

闽ICP备14008679号