WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
UsbCameraInfo.hpp
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <string>
8#include <vector>
9
10namespace wpi::cs {
11
12/**
13 * USB camera information
14 */
16 /** Device number (e.g. N in '/dev/videoN' on Linux) */
17 int dev = -1;
18 /** Path to device if available (e.g. '/dev/video0' on Linux) */
19 std::string path;
20 /** Vendor/model name of the camera as provided by the USB driver */
21 std::string name;
22 /** Other path aliases to device (e.g. '/dev/v4l/by-id/...' etc on Linux) */
23 std::vector<std::string> otherPaths;
24 /** USB Vendor Id */
25 int vendorId = -1;
26 /** USB Product Id */
27 int productId = -1;
28};
29
30} // namespace wpi::cs
CameraServer (cscore) namespace.
Definition CvSource.hpp:15
USB camera information.
Definition UsbCameraInfo.hpp:15
std::string path
Path to device if available (e.g.
Definition UsbCameraInfo.hpp:19
int productId
USB Product Id.
Definition UsbCameraInfo.hpp:27
std::vector< std::string > otherPaths
Other path aliases to device (e.g.
Definition UsbCameraInfo.hpp:23
std::string name
Vendor/model name of the camera as provided by the USB driver.
Definition UsbCameraInfo.hpp:21
int dev
Device number (e.g.
Definition UsbCameraInfo.hpp:17
int vendorId
USB Vendor Id.
Definition UsbCameraInfo.hpp:25