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

ProstoTsar's profile - activity

2014-03-26 09:48:12 -0500 received badge  Notable Question (source)
2014-01-16 12:22:16 -0500 received badge  Popular Question (source)
2014-01-16 05:24:58 -0500 received badge  Scholar (source)
2014-01-16 04:39:43 -0500 received badge  Supporter (source)
2014-01-16 04:39:31 -0500 commented answer catkin returns array of functions in opencv

Thanks a lot, now it is everything OK

2014-01-16 03:55:55 -0500 commented answer catkin returns array of functions in opencv

No, my Cmakelists order is: include_directories(${catkin_INCLUDE_DIRS}) find_package(OpenCV) ... add_executable... target_link_libraries.... CATKIN_DEPENDS roscpp std_msgs cv_bridge image_geometry image_transport DEPENDS system_lib opencv genmsg find_package(catkin REQUIRED COMPONENTS ...

2014-01-16 00:11:10 -0500 commented answer catkin returns array of functions in opencv

I have already tried this but nothing changed

2014-01-15 13:51:16 -0500 asked a question catkin returns array of functions in opencv

I am trying to do wiki.ros.org/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages

But I get this error:

Linking CXX executable image_converter CMakeFiles/image_converter.dir/src/image_converter.cpp.o: In function main': image_converter.cpp:(.text+0x50): undefined reference to ros::init(int&, char**, std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, unsigned int)'

and so on

My CmakeLists.txt

cmake_minimum_required(VERSION 2.8.3) project(learning_image_transport)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(image_converter src/image_converter.cpp)
target_link_libraries(image_converter ${OpenCV_LIBRARIES})

find_package(catkin REQUIRED COMPONENTS genmsg cv_bridge
image_transport roscpp std_msgs )

And Package.xml

<buildtool_depend>catkin</buildtool_depend> <buildtool_depend>genmsg</buildtool_depend> <build_depend>image_transport</build_depend> <build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend> <build_depend>cv_bridge</build_depend> <build_depend>opencv2</build_depend>
<run_depend>opencv2</run_depend>
<run_depend>cv_bridge</run_depend>
<run_depend>image_transport</run_depend> <run_depend>roscpp</run_depend>
<run_depend>std_msgs</run_depend>