【ROS小车课设】虚拟机端编译riki工作空间问题解决

1.None of the required 'libusb' found

原因:我们的libusb版本是1.0,出现了版本不匹配的问题

解决:查看joystick_drivers中的CMakeLists.txt中pkg_search_module(LIBUSB REQUIRED libusb)  ,libusb应该修改成libusb-1.0,这样才能与/usr/local/lib相符

 然后修改成这样:

 2.Could not find a package configuration file provided by "costmap_2d" with any of the following names:

原因:没装costmap-2d这个包

解决:sudo apt-get install ros-kinetic-costmap-2d

3.Could not find a package configuration file provided by "rosserial_python" with any of the following names:

原因:没装rosserial_python这个包

解决:sudo apt-get install ros-kinetic-rosserial-python

4.Could not find a package configuration file provided by "geographic_msgs" with any of the following names:

 原因:没装geographic_msgs包

解决:sudo apt-get install ros-kinetic-geographic-msgs

4.Could not find a package configuration file provided by "move_base_msgs" with any of the following names:

原因:没装move_base_msgs

解决:sudo apt-get install ros-kinetic-move-base-msgs

5.fatal error: usb.h: 没有那个文件或目录

原因:如题

解决:sudo apt-get install libusb-dev

6.fatal error: spnav.h: 没有那个文件或目录

原因:如题

解决:sudo apt-get install libspnav-dev

7. fatal: unable to access 'https://github.com/orbbec/OpenNI2.git/': Failed to connect to github.com port 443: 拒绝连接

原因:github国内经常连不上

解决:git config --global --unset http.proxy 
git config --global --unset https.proxy

8.fatal error: riki_msgs/Velocities.h: 没有那个文件或目录

原因:可能是编译顺序的问题,应该先编译一下riki_msgs功能包,其他功能包才能调用其中的自定义消息类型

解决:catkin_make -DCATKIN_WHITELIST_PACKAGES=riki_msgs

这些操作完之后,catkin_make,应该就能编译完成了

  • 5
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值