Questions tagged [opencv2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

opencv2/opencv.hpp no such file or directory

Hi, I am on jetson using ROS melodic version. I am receiving no such file or directory for opencv2/opencv.hpp. I know I am not linking it properly but not sure how to fix it. ...
user avatar
0 votes
1 answer
5 views

How do I use SIFT in ROS project

How to set everything in my project, so that I can use some existing solution for SIFT? Originally posted by Kri on ROS Answers with karma: 41 on 2018-03-15 Post score: 0
user avatar
0 votes
1 answer
1 view

ros kinetic opencv2 dependency not found

i went to ~/catkin_ws(my workspace) and then to src folder and created my package with the command catkin_create_pkg face sensor_msgs opencv2 cv_bridge rospy std_msgs The package was successfully ...
user avatar
0 votes
1 answer
4 views

Kinetic error: opencv2/core/core.hpp No such file or directory

I am working with ROS kinetic on ubuntu 16.04 after a system update with Software-Updater i get an error while catkin_make-ing. worked like a charm before. ...
user avatar
0 votes
1 answer
2 views

find position of object in a bag

Hi guys, I need to find(estimate) the 3D position of the 'people in the scene' -- (this is in the bag file) with respect to the camera. My code is : (I didn't write it) ...
user avatar
0 votes
1 answer
3 views

maybe error of cv_bridge (on kinect)

I made my ImageView program for kinect. I can compile this program. But when I excute it, it happen core dump like this. ...
user avatar
0 votes
1 answer
9 views

Could not find a package configuration file provided by "opencv2"

I was following the Converting between ROS images and OpenCV images (Python) tutorial and i came across the following problem while running catkin_make. I am new to ros and i am still finding my way ...
user avatar
0 votes
1 answer
1 view

Linking opencv with ROS using cmake issue

Am getting this compilation error ../devel/lib/libXY.so: undefined reference to `cv::calcOpticalFlowPyrLK In my CMake ...
user avatar
0 votes
1 answer
1 view

Problem with rtabmap_ros and nonfree OpenCV

Hello, I am trying to use rtabmap_ros with SIFT and SURF. I've installed nonfree OpenCV and can find the folder in /usr/include/opencv2. For some reason though whenever I run rtabmap_ros I get the ...
user avatar
0 votes
1 answer
2 views

Book: Learning ROS for Robotics Programming; Chapter 5 homography.cpp:16:39: fatal error: opencv2/nonfree/nonfree.hpp: No such file or directory

Hello, I am studying the book for beginners to understand ROS. When I compile chapter 5 tutorials, I face this problem. ...
user avatar
0 votes
1 answer
2 views

error opencv2/imgcodecs.hpp

trying to get ros working.. im trying this tutorial now it crashs with following error: error: opencv2/imgcodecs.hpp: No such file or directory pi@raspberrypi ~/ros_catkin_ws $ cd /home/pi/...
user avatar
0 votes
1 answer
2 views

How to use camera calibration with ubuntu 14.04?

I use ubuntu 14.04 and ROS Indigo. I try to run lsd_slam using image list. It requires a calibration file. So, I try to create a calibration file using ...
user avatar
0 votes
1 answer
7 views

Publish depth image CV_32F using cv_bridge

Hi! Working environment: Kubuntu 14.04 LTS ROS Indigo (up-to-date, full desktop install) OpenCV 2.4.8 (default from the repos) I have a PMD nano here and managed to get it up and running using the ...
user avatar
0 votes
1 answer
1 view

Subscriber callback function not called when trying to capture data using Kinect [Solved]

This is my current code. It's a node, and I use rosrun to execute/run it. ...
user avatar
0 votes
1 answer
2 views

How do I use SURF in ROS

Hi there, I was trying to migrate a code that uses SURF from cpp to a kind of ROS cpp. But when i think that the compiler almost done it, it shows me an error after linking the executable. Here is my ...
user avatar
0 votes
1 answer
34 views

Working with cv_bridge and OpenCV correctly

Hello, I am struggling to use cv_bridge correctly. Do I have to convert the cv_bridge to a cv::Mat, before I can use OpenCV's functions? My situation is the following: I wrote a simple OpenCV ...
user avatar
0 votes
1 answer
4 views

cant find nonfree module opencv

anyone know where i can download nonfree module for opencv 2.4.8 Originally posted by dmngu9 on ROS Answers with karma: 150 on 2015-05-16 Post score: 0
user avatar
0 votes
1 answer
1 view

ros openni and opencv

i am making a human following robot using kinect. My plan is to use skeleton tracking to make the robot follow and using shirt color to identify the target. I wonder how could i implement openni and ...
user avatar
0 votes
1 answer
13 views

ImportError: cannot import name CvBridge

Hello, I am trying to use the cv_bridge package to convert an Image topic to opencv format on Indigo. I am using the code from the cv_bridge tutorial, and I added cv_bridge to my package manifest as ...
user avatar
0 votes
1 answer
2 views

How do I get a rosbridge image message into OpenCV (C++ or python)

I have several "robots" running rosbridge servers on raspberry pis and publishing low frame rate images. On a desktop computer, I need to be able to open a websocket to one of the robots ...
user avatar
0 votes
1 answer
2 views

Help in making node with OpenCV/cv_bridge and ROS Indigo

Greetings, Running ROS Indigo, Ubuntu 14.04 and catkin_simple. My system has downloaded: <...
user avatar
0 votes
1 answer
1 view

How to use C in ROS Or Create Own ROS Package for Existing Code

Hello Everyone, I stuck in one problem, I have done lots of work in different lets say C and Matlab, I can convert Matlab program to C. The main problem is How to create Own ROS package such that it ...
user avatar
0 votes
1 answer
1 view

How to create ROS package for Existing C code

I have piece of code in C files, I want to integrate it with ROS. What is the procedure to create ROS package for existing C code. Tell me the procedure and link for this. Originally posted by Kd on ...
user avatar
0 votes
1 answer
9 views

Is it possible to convert depth messages as Ipl image using CvBridge

I could convert RGB messages in to picture but says that the "[32FC1] is not a color format. but [mono8] is. The conversion does not make sense". Is there anything else i should be doing? my ...
user avatar
0 votes
2 answers
3 views

How to extract depth data from rosbags(contains depth and RGB data) as picture frames

I have a Bagfile containing Raw depth and RGB data. I converted the RGB data into images using the tutorial http://wiki.ros.org/rosbag/Tutorials/Exporting%20image%20and%20video%20data But when I used ...
user avatar
0 votes
1 answer
1 view

Getting clear kinect depth data

I am using ros node and getting topic with sub = nh.subscribe("/camera/depth/image", 1, &Subscribe_Depth::callback, this); and convert to opencv <...
user avatar
0 votes
2 answers
1 view

Source Files failing to Build (C++ image subscriber tutorial)

Hi, I'm new to ROS and have recently completed all of the tutorials in the tutorials section. I'm currently trying to get a C++ image subscriber working with our TurtleBot and I'm using the tutorial ...
user avatar
0 votes
1 answer
2 views

How to save subscribed image in any location

Hello Everyone, I am using OpenCV 2.9 and ROS Hydro. i used this Publisher for publish image and used Subscriber for subscribing images. I am able to show that image but how to save it in computer?? I ...
user avatar
0 votes
2 answers
15 views

Filling sensor_msgs/Image with uint8_t buffer array

So I'm working on making a camera driver, and the data struct contains the frame data such as the height and width, and uint8_t leftData and uint8_t rightData pointers. Ive been trying to see which ...
user avatar
0 votes
1 answer
1 view

ROS hydro opencv2 linking error during 'catkin_make'

I have little problem with my ROS hydro distro. I need to use it for one project so can't change to Indiko. Problem is that I have used catkin_create_pkg packname ...
user avatar
0 votes
1 answer
1 view

How do I Install OpenCV2

I'm trying to get image_transport to work, but when I tried both roscreate-pkg and catkin_create_kpg, I always get the error along the lines of "the dependency opencv2 is missing". I used ...
user avatar
0 votes
1 answer
2 views

build errors when trying to use CVbridge with ROS Hydro

I'm trying to follow this tutorial - http://wiki.ros.org/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages to stream images to a node. After I added the node ...
user avatar
0 votes
1 answer
4 views

vision_opencv can't be found by ROS but it's installed

I was trying to make a package using the catkin_create_pkg but later it gives me an error for a package I have. My command was: ...
user avatar
0 votes
1 answer
2 views

Streaming RGB with asus and using houghlines algorithm

Im currently using Ubuntu and running on ROS groovy. My intention is to live stream RGB images from Asus Xtion pro and run the houghlines transform algorithm from opencv. I created my own package and ...
user avatar
0 votes
1 answer
2 views

object detection

I have a bit of an interesting question for you. I have been experimenting with Opencv for a while and would like to add so vision applications to my robot, especially object detection. However I ...
user avatar
0 votes
2 answers
1 view

add opencv to indigo

The Opencv packages aren't built in the ROS Indigo anymore. So what should I do if I want to add opencv2? Originally posted by hsoltani on ROS Answers with karma: 70 on 2014-07-07 Post score: 4
user avatar
0 votes
2 answers
3 views

How to break and come of the for loop?

Hello guys ! I am working on Morse and ROS- Hydro version. I want to break and come out of the for loop when my flag is set to 1 ( and this flag is set in opencv part) once the flag is set, it should ...
user avatar
0 votes
1 answer
1 view

Handling two nodes

Hello guys ! I have created two nodes In my first node pilot, I am trying to make the quadrotor scan the whole room until it finds a color box and when it finds the color box i stopped my quadrotor ...
user avatar
0 votes
1 answer
11 views

Could a node can be stoped by another node?

Hello guys ! I want to stop a node, once its published message is subscribe by another node. For example Node 1(publisher) ...
user avatar
0 votes
1 answer
1 view

use custom built opencv along with cv_bridge

After updating to Hydro, the method mentioned in this answer does not work anymore, where I have to depend on cv_bridge to transfer sensor_msgs::Image to cv::Mat. The cmake will strike a warning: ...
user avatar
0 votes
1 answer
1 view

Depend on OpenCV in Hydro

With this commit in rosdep key that, now from Hydro there are at least 2 ROS ways to depend on OpenCV; via ROS 3rd package "...
IsaacS's user avatar
  • 4,492
0 votes
1 answer
1 view

Segmentation Fault (core dump)

I am working on ROS and Opencv. I am able to run the code but after some times the code stops and show the error Segmentation Fault (Core Dumped). The following is the code in which a quadrotor is ...
user avatar
0 votes
1 answer
1 view

Failed to process package 'opencv2'

Dear All, I am trying to install ROS hydro to mac os x 10.9.3 mavericks using desktop-install configuration. I am following the instructions of Homebrew. Package dependences were resolved successfully....
user avatar
0 votes
1 answer
1 view

how to do opencv haartraining with opencv from ROS?

I am new to opencv haartraining and really need some help. I want to train my own haar classifier so I followed some step by step tutorials: but I am stuck because I can't find the haartraining folder ...
user avatar
0 votes
1 answer
1 view

opencv and hydro

I have been trying to run opencv on hydro but none of the tutorials work .. I have checked and my camera is working but output not shown in ros ... help pls Thanks in advance And kindly provide lonk ...
user avatar
0 votes
1 answer
1 view

Cannot create package with opencv2 dependency using ROS Groovy

I am starting the Image_Transport tutorials and when I try to create a package with the stated dependencies I am getting the following error: ...
user avatar
0 votes
2 answers
1 view

Hector_slam install fails; missing dependency opencv2

I'm doing an install on my BeagleBone and I get the following error: Unable to locate package ros-groovy-opencv2 This indicates the binary is not available for the ...
user avatar
0 votes
1 answer
2 views

How to manually build OpenCV to work with ROS?

Since ROS doesn't have binary package for ARM, I cannot use "apt-get install ros-groovy-opencv2" to download and install OpenCV libraries for ROS ("E: Unable to locate package" ...
user avatar
0 votes
1 answer
1 view

opencv undefined reference problem

I am trying to build learning_image_transport from image_transport tutorial on Gumstix Overo which has ros groovy running on linaro. However, one of dependencies of learning_image_transport -- opencv2 ...
user avatar
0 votes
2 answers
2 views

OpenCV CMake Error

I have been using OpenCV without issue for months, but today when I catkin_make my workspace I now get the error: -- +++ processing catkin package: 'clam_vision' -- ==> add_subdirectory(...
user avatar