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

cv_bridge converter tutorial not compiling

asked 2014-10-29 04:52:23 -0600

Rahndall gravatar image

Dear Ros Users, following the tutorial described at http://wiki.ros.org/cv_bridge/Tutoria... I'm experimenting problem on compiling:

In function ImageConverter::ImageConverter()': converter_demo.cpp:(.text._ZN14ImageConverterC2Ev[_ZN14ImageConverterC5Ev]+0x62): undefined reference toimage_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)'

In the package.xml file, I declared the followind dependencies:

buildtool_depend: catkin, roscpp, rospy, std_msgs, image_transport, cv_bridge

run_depend: roscpp, rospy, std_msgs, image_transport, cv_bridge

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-29 05:23:48 -0600

Wolf gravatar image

buildtool_depend must only be catkin. The others mentioned there have to be build_depend

E.g.:

  <buildtool_depend>catkin</buildtool_depend>

  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>std_msgs</build_depend>
  <build_depend>image_transport</build_depend>
  <build_depend>cv_bridge</build_depend>

  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>std_msgs</run_depend>
  <run_depend>image_transport</run_depend>
  <run_depend>cv_pridge</run_depend>

Further, you have to find_package them in your CMakeLists.txt (in case you not yet have):

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs image_transport cv_bridge)
edit flag offensive delete link more

Comments

I "missed" the find package :) Now it works, thank you!

Rahndall gravatar image Rahndall  ( 2014-10-29 06:12:35 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-10-29 04:52:23 -0600

Seen: 220 times

Last updated: Oct 29 '14