-
Notifications
You must be signed in to change notification settings - Fork 595
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
usb_cam works on galactic but does not work on humble #299
Comments
@lmendyk galactic has been deprecated for awhile now and so it hasn't been getting the recent updates. Check the read me about selecting the right formats, that's changed recently and could explain your issue here. |
@flynneva - the problem is on humble (on galactic it works!). I have read the readme and don't know what is the issue :( I think the main problem is that no formats reported: So if no formats are reported I don't think I can set a right format in a config but still I have experimented with "pixel_format" for example with "rgb24" but the result was even worse as nothing was published on the topics (not additional errors in log) |
Ok, I have found it (not in the documentation) that I need to add Still no formats are printed, but at least the camera works so I can see it in rviz and rqt |
@lmendyk this is documented in the README in this section. Glad you got it working! |
Sorry - I must have been tricked by the "default" branch of README which directed me by
|
I’m in a process of migration with my turtlebot3 from galactic to humble ros2 with usb_cam used for raspberry pi 4 camera. The same code (in respect to usb_cam and image transport) works on galactic. But when I try to use it inside docker container (started with –prevailed option so I don't think it is a docker issue but rather galactic vs humble), the usb_camere does not work.
This means that in the logs I get:
And no formats are printed while when running on galactic ROS2 – I get long list of formats
Then I get following logs:
when trying to display the images in rqt I get
ImageView.callback_image() while trying to convert image from 'yuv422_yuy2' to 'rgb8' an exception was thrown (Image is wrongly formated ...)
Errata:
There is difference in encoding
galactic:
ubuntu@turtlebot3:~$ ros2 topic echo /camera/image_raw/compressed
header:
stamp:
sec: 1700144015
nanosec: 556514791
frame_id: camera_rgb_optical_frame
format: rgb8; jpeg compressed bgr8
humble (in docker container)
ubuntu@turtlebot3:~$ ros2 topic echo /camera/image_raw/compressed
header:
stamp:
sec: 1700144265
nanosec: 195542000
frame_id: camera_rgb_optical_frame
format: yuv422_yuy2; jpeg compressed mono8
The text was updated successfully, but these errors were encountered: