ROS实践(N)-常见错误

一 找不到opencv

错误:

root@yangkai04-Inspiron-3650:~/dev/rosbook/chapter3_tutorials# rospack depends chapter3_tutorials
[rospack] Error: package 'chapter3_tutorials' depends onnon-existent package 'opencv2'and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'

原因:

http://wiki.ros.org/vision_opencv

Since Indigo, OpenCV is not released from ROS infrastructure. Its ROS-interface packagevision_opencv depends on standalonelibopencv* packages.

OpenCV2 is the official version supported on Indigo and Jade. To use it, you just need to add a dependency on opencv2 and find_package it in your CMakeLists.txt as you would for any third party package:

For OpenCV vision_opencv provides several packages:

  • cv_bridge: Bridge between ROS messages and OpenCV.

  • image_geometry: Collection of methods for dealing with image and pixel geometry

In order to use ROS with OpenCV, please see the cv_bridge package.

解决:

简单的说,就是indigo版本以后,opencv的包,就不叫opencv2了,改成cv_bridge即可。


二 找不到rxconsole

http://wiki.ros.org/rxconsole

(!) rx packages are replaced by rqt, which is available for fuerte and later.

rqt_console is a replacement.




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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值