Skip to main content

Questions tagged [cv-bridge]

The tag has no usage guidance.

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

cv_bridge.h not found ROS2

I need cv_bridge on my cmakelist.txt. Cmakelist shows a path for cv_bridge.h, however there is no file on that name at that path. I have opencv 4.5.4,ros2 humble. I tried to install cv_bridge by ...
Zehra N.'s user avatar
0 votes
0 answers
13 views

AttributeError when trying to reinsert modified images into ROS2 bag file with Python

I'm currently working with ROS2 and Python to process image data stored in a ROS2 bag file. My task involves extracting images from the bag, performing modifications, and then reinserting them. I am ...
franzele's user avatar
0 votes
2 answers
262 views

How to install cv_bridge on Windows - Ros2 Iron?

It seems the library cv_bridge is not available with Ros2_Iron on Windows. So what I did I checked out the repository from open-vision and I run the following command: ...
Ivory Irveen's user avatar
0 votes
1 answer
454 views

fatal error: tf2_geometry_msgs/tf2_geometry_msgs.h: No such file or directory

Ubuntu 22.04, ROS2 Humble I have a blickfield lidar and they provide ROS2 foxy support. I have downloaded the blickfield_ros2_driver from their website and created a repository. Aim: I want to get it ...
ASH's user avatar
  • 21
0 votes
0 answers
166 views

ROS2 CV2 imshow and publish in the same loop fails

I attempted to publish and display an image from a video using cv2 and ros2. Although the code compiled successfully, running it consistently resulted in a memory allocation failure. Could someone ...
Onee's user avatar
  • 1
0 votes
1 answer
341 views

Got Pi5 w PiOS Bookworm, Want ROS 2 Humble Desktop Docker with Nav2 and more

I have a working ROS 2 Humble robot (Raspberry Pi4 based GoPiGo3 robot running Ubuntu 22.04) that runs nav2 async mapping, localization, and navigation at close to 100% load. I just acquired a ...
Cyclical Obsessive's user avatar
0 votes
0 answers
169 views

cv_bridge installation in windows10 for ROS2

I need cv_bridge to run a publisher node in windows. I have installed ROS2(humble) and all other dependencies... I had installed opencv also.. After downloading and extracting cv_bridge from https://...
Anoop's user avatar
  • 1
1 vote
2 answers
1k views

Converting a ros2 bag of color raw images to image files or video

This is using ros2 Humble in Ubuntu 22.04 and native Python 3.10 Eventual goal: capturing depth aligned RGB and Depth streams from Intel RealSense D435 camera and converting them to RGB and Depth ...
Mona Jalal's user avatar
0 votes
0 answers
26 views

ROS 1 Stereo image pairs splitter node migration to ROS 2 Galactic

I have modified the ROS 1 source from this repo to use in ROS 2 galactic While I am able to satisfy the package dependencies, I'm having issues with the following code: ...
andrewb's user avatar
0 votes
2 answers
653 views

cv_bridge in conda environment

I want to use cv_bridge in a conda environment. It works well in base environment but not in the conda environment. I am getting the following error : ...
CM A's user avatar
  • 1
0 votes
1 answer
50 views

CMake detects intended OpenCV+CUDA, but runtime does not use intended OpenCV version

CMakeLists.txt contains ...
user avatar
1 vote
1 answer
520 views

ROS2: How to publish cv Mat image?

I'm having trouble understanding how to publish a cv::Mat image in C++, and I can find very little documentation about this. Here's my publish code. I based it on this tutorial: https://docs.ros.org/...
user avatar
0 votes
1 answer
87 views

[Solved]How specify OpenCV version in cv_bridge

Hi everyone. I'm in ROS Melodic and I'm working with OpenCV 4.5.3 for xfeatures2d. At the end of catkin_make, i have this warnings: ...
user avatar
0 votes
1 answer
151 views

ModuleNotFoundError: No module named 'cv_bridge' IN windows10 running foxy

I was following this tutorial https://automaticaddison.com/getting-started-with-opencv-in-ros-2-foxy-fitzroy-python/ to implement a simple ros2 image publisher and subscriber. everything was built but ...
user avatar
0 votes
1 answer
4 views

[SOLVED] Error compiling cv_bridge Fedora 33

I'm trying to install ROS melodic on Fedora 33. I have the following error when compiling package cv_bridge: ...
user avatar
0 votes
1 answer
265 views

CV bridge OpenCV4 error

ROS Noetic Ubuntu 20.04 When I include cv_bridge like this: #include <cv_bridge/cv_bridge.h> and then use: ...
user avatar
0 votes
1 answer
59 views

[Solved]Conflict opencv different version cv_bridge and xfeatures2d

Hi everyone. I'm starting a project with OpenCV and i need to use xfeatures2d that is in opencv_contrib. I follow this instructions and modify my CMake File in this way: ...
user avatar
0 votes
1 answer
92 views

cv_bridge not showing RGB image

I am following the steps from a Book, for setting up OpenCV to work together ROS through cv_bridge. The book is a bit old, and the original code was a legacy python2 code. The Camera is a Kinect V1. I ...
user avatar
0 votes
1 answer
152 views

[ROS2] Opencv 4 conflicted with cv_bridge causing an error

Hi fellow developers, I am having an issue with ROS2 cv_bridge and opencv 4. The warning below shows that I have a conflict ...
user avatar
0 votes
1 answer
228 views

[ROS2] symbol lookup error and undefined symbol while using image transport cpp

Hi fellow developers, I am a beginner at ROS2. After building the package and trying to run it I get the following error. ...
user avatar
0 votes
1 answer
5 views

cv_bridge and OpenCV both define Exception class

I am trying to use cv_bridge in my project on Windows 10 using Visual Studio 2017. When I try to compile my code, I get the following errors: ...
user avatar
0 votes
1 answer
98 views

cv_bridge Package Downloaded, Still Getting Error in ROS Setup

Error: Could not find a package configuration file provided by "cv_bridge" with any of the following names: cv_bridgeConfig.cmake cv_bridge-config.cmake ...
user avatar
0 votes
1 answer
113 views

"cv_bridge" throws boost import error in Python 3 and ROS Melodic

I'm running a script that uses cv_bridge with OpenCV 4, on Python 3, on ROS Melodic, on Raspbian, on a Raspberry Pi 4, and I'm running into errors trying to dynamically import ...
user avatar
0 votes
1 answer
9 views

Unable to use opencv with ROS

I am trying to follow along this tutorial: http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython I am getting this error while running the above program: ...
user avatar
0 votes
1 answer
4 views

Converting CvImage to a ROS image not working on Ubuntu 18.04 - Melodic

Hello, I am trying to convert a CvImage to a ROS image. I followed the tutorial present on this source but I don't understand ...
user avatar
0 votes
1 answer
65 views

publishing a cv2 image with cv_bridge

I wrote a basic node that reads an image from a local folder and publishes it. However, the topic is empty, i can not display the image when i use the image viewer. The cv2 image is being loaded ...
user avatar
0 votes
1 answer
3 views

Combines message for image and information gives "invalid initialization error"

Hello, I am currently trying to implement a message that includes the images as well as the detected bounding boxes. The publisher works very well, but the subscriber gives me the following error ...
user avatar
0 votes
1 answer
27 views

undefined reference to everything

Hi, I have a package in my workspace that uses openCV and cv_bridge. I needed the cuda module of openCV, but it doesn't exist in the default openCV of ROS. I installed another version of openCV that ...
user avatar
0 votes
1 answer
48 views

AttributeError: '_sensor_msgs__CameraInfo' object has no attribute 'encoding'

I want to save image from a bag file.And I have fellow the example, but I will always get a error like this: http://library.isr.ist.utl.pt/docs/roswiki/cv_bridge(2f)Tutorials(2f)...
user avatar
0 votes
1 answer
7 views

Image overlay with transparency (sensors_msg/Image) on mapviz

Hi everyone, I've written a simple node which reads in a png file with transparency and publishes it to a certain topic. The topic is then subscribed by mapviz to display the image as an overlay. ...
user avatar
0 votes
1 answer
22 views

Invoking "cmake" failed

I have previously installed Ubuntu 16.04 LTS and ROS kinetic on PC. I try to practice tutorial according this (http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython) ...
user avatar
0 votes
1 answer
19 views

fatal error: ros/ros.h: No such file or directory

I have created a package using catkin_create_pkg on PC where I have previously installed Ubuntu 16.04 LTS and ROS kinetic. But I am trying to compile the cpp file ...
user avatar
0 votes
2 answers
27 views

How to specify my own OpenCV3 for cv_bridge

The ROS1 package cv_bridge can be downloaded here: https://github.com/ros-perception/vision_opencv.git and be found at ...
user avatar
0 votes
2 answers
4 views

cv_bridge tutorial example not compiling in ROS Kinetic and Ubuntu 16.04

Hi, I am trying to run the full example in the cv_bridge tutorial at http://wiki.ros.org/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages . I am having serious trouble ...
user avatar
0 votes
1 answer
6 views

image stream using camera

Hello guys, My question might seem easy for many since i am still fresh in Ros and Opencv. I am following the tutorials provided on Ros Website. I am going through the tutorial ''Converting between ...
user avatar
0 votes
1 answer
79 views

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

I created my catkin package like so: catkin_create_pkg dcp_processing sensor_msgs cv_bridge roscpp std_msgs image_transport I ...
user avatar
0 votes
1 answer
16 views

How to get image from custom server using service?

Hello People, I am trying to pass image from server to a client. The code complies when I use cv_bridge::toCvCopy, but it says core dumped when I actually call the image from the server. So I am ...
user avatar
0 votes
1 answer
3 views

Problem integrating ros with opencv to work with rgb camera output in ros

I am trying to integrate the normal rgb camera output (OpenCV) with ros using cv_bridge and image_transport. When I compile(catkin_make) the code I receive the following error - ...
user avatar
0 votes
1 answer
2 views

cv_bridge tutorials not working

When running the example code from the cv_bridge tutorial, all I see is a small window that has captured a small portion of my screen, along with terminal output that says ...
user avatar
0 votes
2 answers
116 views

Conversion from 32FC1 to mono8 using cv_bridge

I am trying to use cv_bridge to convert an image from /disp_map/image (32FC1 encoding according to msg->encoding ) to an ...
user avatar
0 votes
1 answer
11 views

Problem with catkin_make

I have had trouble with the cv_bridge. When I try to make my catkin_ws, I get the following error: ...
user avatar
0 votes
1 answer
4 views

Is ROS Kinetic compatible with libopencv-dev-2.4.9?

The REP link suggests to use opencv 3.1.x with ROS Kinetic. However, since the system package libopencv-dev 3.1.x version isn't available in the upstream ubuntu repository yet, I had installed ...
user avatar
0 votes
1 answer
7 views

Crash while launching multiple instances of same nodelet

Hello, I am trying to load a nodelet multiple times. But the node is getting crashed once the second instance of the node let started executing. Below snippet describes the way I am loading the ...
user avatar
0 votes
1 answer
5 views

Unable to store the depth map in 32FC1 format?

Hello! I want to get the depth data from Creative 3d Senz camera. I am not able to store the depth map in its correct format. Please see the snippet below. ...
user avatar
0 votes
2 answers
7 views

Problem viewing images using python-opencv

I have trouble viewing color images from R200 realsense camera using the python-opencv interface. The window is blank when I run this script. When I comment out'cv2.namedWindow("Image window"...
user avatar
0 votes
1 answer
9 views

cv_bridge installation error: wrong number of template arguments

I am getting an error when trying to install cv_bridge on Ubilinux (based on Debian 7 Wheezy), with ROS Indigo. The error is quoted below. I already discovered this answer: http://answers.ros.org/...
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
1 view

Turtlebot Computer has OpenCV 3.0 and I don't want it

Folks, I need openCV 2.4 (since I am using indigo). But my turtlebot has 3.0, making conflicts during catkin_make. How do I remove OpenCV 3.0, or at least, how do I built against OpenCV 2.4? OpenCV 3....
user avatar
0 votes
2 answers
22 views

sensor_msgs::CompressedImage subscribe fails to build

Hey I have the following subscriber: ...
user avatar
0 votes
1 answer
4 views

question in cv_bridge tutorials

Hi everyone, Currently, I'm trying to use C++ to deal with the image process with the Baxter hand camera. Inside the example ROS node in line 8 the ...
user avatar