ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

dharmaforone's profile - activity

2019-05-20 01:28:14 -0500 marked best answer sensor_msgs - Can't build tutorial project

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/Tutoria...

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?

2018-05-23 05:39:56 -0500 received badge  Famous Question (source)
2018-03-18 08:31:17 -0500 received badge  Notable Question (source)
2018-03-15 22:33:32 -0500 received badge  Popular Question (source)
2018-03-14 23:23:47 -0500 commented question sensor_msgs - Can't build tutorial project

No. But the first time I tried to post it, I was required to register and there was no indication that the question was

2018-03-14 23:23:35 -0500 commented question sensor_msgs - Can't build tutorial project

No. But the first time I tried to post it, I was required to register and there was no indication that the question was

2018-03-14 21:42:06 -0500 asked a question Can't build cv_bridge image message tutorial (sensor_msgs)

Can't build cv_bridge image message tutorial (sensor_msgs) I am trying to pass images as messages in a simple ROS projec

2018-03-14 21:42:06 -0500 asked a question sensor_msgs - Can't build tutorial project

sensor_msgs - Can't build tutorial project I am trying to pass images as messages in a simple ROS project. I'm a complet