Skip to content
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

[ros2] allow cameras that do not support setting format options via VIDIOC_S_FMT #178

Conversation

benmaidel
Copy link
Contributor

Some cameras, especially droidcam https://www.dev47apps.com/, do not support setting camera format parameters via v4l2 VIDIOC_S_FMT command. This changes will allow usage of this cameras if the selected pixelformat and width/height are the same as the camera supports.

This is a ros2 port of the PR #126. I have not tested it so far.

@flynneva
Copy link
Collaborator

@benmaidel unfortunately I don't have hw that does not support setting the camera format to test on. Going to merge this anyways as I've tested it locally and this change does not seem to break any existing functionality.

@flynneva flynneva merged commit 9b60905 into ros-drivers:ros2 Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants