一 找不到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
解决:
简单的说,就是indigo版本以后,opencv的包,就不叫opencv2了,改成cv_bridge即可。
二 找不到rxconsole
http://wiki.ros.org/rxconsole
rx packages are replaced by rqt, which is available for fuerte and later.