Class V4l2CameraDevice

Nested Relationships

Nested Types

Class Documentation

class V4l2CameraDevice

Camera device using Video4Linux2

Public Types

enum class ImageSizeType

Values:

enumerator DISCRETE
enumerator STEPWISE
enumerator CONTINUOUS
using ImageSizesVector = std::vector<std::pair<uint16_t, uint16_t>>
using ImageSizesDescription = std::pair<ImageSizeType, ImageSizesVector>

Public Functions

explicit V4l2CameraDevice(std::string device)
bool open()
bool start()
bool stop()
Control queryControl(uint32_t id, bool silent = false)
inline auto const &getControls() const
int32_t getControlValue(uint32_t id) const
bool setControlValue(uint32_t id, int32_t value)
inline auto const &getImageFormats() const
inline auto const &getImageSizes() const
inline auto const &getCurrentDataFormat() const
bool requestDataFormat(PixelFormat const &format)
std::string getCameraName()
sensor_msgs::msg::Image::UniquePtr capture()