Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 18

sensor_msgs - Can't build tutorial project

$
0
0
I am trying to pass images as messages in a simple ROS project. I'm a complete beginner in ROS and robotics. The tutorial I'm trying to follow is here: http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython But I can't get past adding dependencies to the package and building it. Here are the commands I have used to create my project: mkdir image_pkg_test cd image_pkg_test/ mkdir -p catkin_ws/src cd catkin_ws/ catkin_make source devel/setup.bash cd src catkin_create_pkg image_msg_tests sensor_msgs opencv3 cv_bridge rospy roscpp std_msgs cd .. catkin_make The `catkin_make` command fails with the following message: CMake Error at /opt/ros/kinetic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:172 (find_package): Could not find a package configuration file provided by "sensor_msgs" with any of the following names: sensor_msgsConfig.cmake sensor_msgs-config.cmake Add the installation prefix of "sensor_msgs" to CMAKE_PREFIX_PATH or set "sensor_msgs_DIR" to a directory containing one of the above files. If "sensor_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) image_msg_tests/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! However, `rospack find sensor_msgs` shows: /opt/ros/kinetic/share/sensor_msgs So this package is at least partially installed. What am I doing wrong? How can I debug the issue more effectively?

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>