-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image not rendered correctly #51
Comments
Have you check your camera with other camera softwares, say, guvcview? |
Hi,
If it can help, I tried the usb_cam ROS package and it works.
|
In that case, it may be from libuvc_camera driver itself... I personally cannot debug this, but someone could if you share the information of your camera product. |
Hi, |
I'm not quite sure, it seems from the pixel format of UYVY that not supported by ROS Image. Can you show a image message by |
I have made the test with usb_cam and libuvc_ros. This is the short version of a message with usb_cam:
This is the short version of a message with libuvc_ros:
I have also attached the complete message files. |
What happens if you set |
The rgb mode is not supported.
If you have an idea, I can look at the source to help. |
This camera seems to produce raw bayer images to image_raw. In case of that, you may need to use image_proc/debayer node or nodelet. Please try it. |
Thank you. I just test it and the image is still the same.
Terminal output:
|
Hmm, running out of my idea, sorry. |
Hi, The bag file was recorded for 0.3s and its size is 14.8MB. Regards, |
I have no idea, sorry. The image shows the data is inerlace, but I can't find any de-interlace code in libuvc. https://github.com/ktossell/libuvc/search?l=C&q=interlace So, I guess you may better to stick to other packages (usb_cam, gscam, etc) if you can. |
Stumbled across the same issue. So in https://github.com/ros-drivers/libuvc_ros/blob/master/libuvc_camera/src/camera_driver.cpp#L187, the contents of the YUV buffer get directly |
Fixed (and tested with the CU20 camera) via #52. |
Wow, I should've noticed! Great job! Good for all and thank you @skohlbr , @yoann-solana |
Hi,
I would like to test a USB camera on ROS. I have followed the procedure to setup libuvc but the image on the raw topic is not rendered well.
This is a capture of the image on the topic /camera/image_raw, as you will see the image seems to be duplicated.
This is the output of the v4l2-ctl --list-formats-ext command:
And this is my launch file:
Do you see something wrong?
My configuration is a computer running Ubuntu 16.04 with ROS Kinetic.
Thanks in advance,
Yoann.
The text was updated successfully, but these errors were encountered: