ubuntu系统下ros系统问题的解决方法示例

本文记录了作者在使用ROS过程中遇到的各类问题及其解决方案,包括找不到依赖库、安装自启动包等,并提供了具体的命令行指令帮助读者快速定位并解决问题。

前言:

这是自己这几个月以来调ros出现的问题,有的问题是花了几天时间来解决。由此记录

注意:

如果出现的错误是类似于“ Could not find a packageconfiguration file provided by "xxx_xxx_xxx"”,这说明“xxx_xxx_xxx”这个package未安装,将“xxx_xxx_xxx”复制,然后百度,找到后缀为ROS-Wiki的标题,点击进入。找到source,如下图:

点击进入,而后看到绿色按钮名叫clone to download,点击,复制链接

之后打开终端,打上git clone 你的链接,回车,OK!(问题4和问题5正是这种错误)

安装自启动的ros包upstart:sudo apt-get install ros-kinetic-robot-upstart

1.出现的问题:

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LI   BRARY
BULLET_INCLUDE_DIR)

解决方法:sudo apt-get install libbullet-dev

2.出现的问题:

Could NOT find SDL (missing: SDL_LIBRARYSDL_INCLUDE_DIR)

解决办法:sudo aptitude install libsdl1.2-dev

3.出现的问题:

Could NOT find SDL_image (missing:SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)

解决办法:sudo apt-get installlibsdl-image1.2-dev 

4.出现的问题:

Could notfind a package configuration file provided by "cmake_modules"

解决办法:git clone https://github.com/ros/cmake_modules.git

5.出现的问题:

Could not find a package configuration fileprovided by "move_base_msgs"

解决办法:git clone https://github.com/ros-planning/navigation_msgs.git

6.删除只读文件:

chmod 777 filename

rmfilename

7.出现的问题:

navigation/robot_pose_ekf/CMakeLists.txt:6(pkg_check_modules)

解决方法:sudo apt-get installros-kinetic-bfl

8.出现的问题:

c++internalcompiler error:killed(program cc1plus)

解决办法:

1)sudo dd if=/dev/zero pf=/swapfile bs=1kcount=20400
2)sudo mkswap /swapfile
3)sudo swapon /swapfile  

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值