Questions tagged [cv-bridge]
The cv-bridge tag has no usage guidance.
134
questions
0
votes
1
answer
21
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 ...
0
votes
0
answers
21
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://...
1
vote
2
answers
134
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 ...
0
votes
0
answers
20
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:
...
0
votes
2
answers
173
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 :
...
0
votes
1
answer
8
views
CMake detects intended OpenCV+CUDA, but runtime does not use intended OpenCV version
CMakeLists.txt contains
...
0
votes
1
answer
95
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/...
0
votes
1
answer
18
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:
...
0
votes
1
answer
64
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 ...
0
votes
1
answer
2
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:
...
0
votes
1
answer
22
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:
...
0
votes
1
answer
3
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:
...
0
votes
1
answer
17
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 ...
0
votes
1
answer
30
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 ...
0
votes
1
answer
25
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.
...
0
votes
1
answer
1
view
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:
...
0
votes
1
answer
22
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
...
0
votes
1
answer
28
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 ...
0
votes
1
answer
3
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:
...
0
votes
1
answer
3
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 ...
0
votes
1
answer
8
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 ...
0
votes
1
answer
1
view
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 ...
0
votes
1
answer
4
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 ...
0
votes
1
answer
6
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)...
0
votes
1
answer
1
view
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. ...
0
votes
1
answer
6
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)
...
0
votes
1
answer
9
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 ...
0
votes
2
answers
6
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 ...
0
votes
2
answers
1
view
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 ...
0
votes
1
answer
4
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 ...
0
votes
1
answer
15
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 ...
0
votes
1
answer
3
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 ...
0
votes
1
answer
2
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 -
...
0
votes
1
answer
1
view
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 ...
0
votes
2
answers
39
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 ...
0
votes
1
answer
1
view
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:
...
0
votes
1
answer
3
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 ...
0
votes
1
answer
2
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 ...
0
votes
1
answer
2
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.
...
0
votes
2
answers
4
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"...
0
votes
1
answer
3
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/...
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.
...
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....
0
votes
2
answers
7
views
sensor_msgs::CompressedImage subscribe fails to build
Hey I have the following subscriber:
...
0
votes
1
answer
1
view
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 ...
0
votes
1
answer
8
views
Trying to publish 16 bit images as ROS msg
Hi all,
I am trying to publish sensor msg from lepton camera connected over SPI. The images that I get from the sensor is 14 bit, I have zero padded it and have it as 16 bit value. I am trying to ...
0
votes
2
answers
7
views
Problem of saving depth image
I try to use the code below to save one frame of depth iamge from topic /camera/depth/image_raw, but the problem is I could only get a image looks black. When I read it in Matlab, the matrix elements ...
0
votes
1
answer
9
views
Trouble converting cv2 to imgmsg
Hi everyone,
I am trying to write a python node that publishes single frames the attached webcam records. However, when I try to run it I get the following error message.
...
0
votes
1
answer
2
views
cv_bridge build fails
I'm trying to install cv_bridge on a BeagleBone running Debian. I am using ROS Indigo.
I am getting the following error:
...
0
votes
1
answer
2
views
Convert cv_bridge Image to cv::Mat image
I would like to have a pure OpenCV version cv::Mat of the Image on which I can do further modifications. I tried ...