ROS实践(N)-常见错误

来源:互联网 发布:小米万能遥控器 编程 编辑:程序博客网 时间:2024/06/05 15:18

一 找不到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 byrqt, which is available for fuerte and later.

rqt_console is a replacement.




0 0