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

V4l2 devices might not be named video #313

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

flynneva
Copy link
Collaborator

Closes #312

@flynneva flynneva force-pushed the v4l2-devices-might-not-be-named-video branch from 4ba12c0 to ee38ed8 Compare January 20, 2024 18:12
@flynneva
Copy link
Collaborator Author

fyi @firesurfer this should resolve #312

@@ -146,31 +151,41 @@ inline std::map<std::string, v4l2_capability> available_devices()
// Initialize vector of device strings to fill in
std::map<std::string, v4l2_capability> v4l2_devices;

// V4L2 spec says there can only be a maximum of 64 devices
const uint8_t MAX_DEVICES = 64;
// Get a list of all v4l2 devices from /sys/class/video4linux
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@firesurfer the list in /sys/class/video4linux should include all valid v4l2 devices I think...even if they are /dev/media devices

Signed-off-by: Evan Flynn <evanflynn.msu@gmail.com>
@flynneva flynneva force-pushed the v4l2-devices-might-not-be-named-video branch from ee38ed8 to 7ff4e65 Compare January 20, 2024 18:18
@firesurfer
Copy link
Contributor

Hi @flynneva sorry I didn't get to test this PR yet. We are currently migrating to a new hardware setup and it will take sometime until I have the cameras ready again

@flynneva flynneva merged commit 70ed391 into ros2 Mar 16, 2024
9 checks passed
@flynneva flynneva deleted the v4l2-devices-might-not-be-named-video branch March 16, 2024 14:59
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.

Startup fails if camera is not named /dev/videox
2 participants