bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::sensors::backends::CameraBackendBase Class Referenceabstract

Base class for the sources of camera frames. More...

#include <camera_backend_base.h>

Inheritance diagram for bitsim::sensors::backends::CameraBackendBase:

Public Member Functions

virtual ~CameraBackendBase ()=default
virtual void connect ()=0
 Start receiving frames.
virtual void disconnect ()=0
 Stop receiving frames.
virtual std::optional< CameraFrame > latest_frame () const =0
 The latest frame, if one has been received.
virtual bool is_alive () const =0
 Whether frames are arriving.
const std::string & backend_type_str () const noexcept
 The type of the backend.

Protected Member Functions

 CameraBackendBase (const std::string &backend_type)

Detailed Description

Base class for the sources of camera frames.

Constructor & Destructor Documentation

◆ ~CameraBackendBase()

virtual bitsim::sensors::backends::CameraBackendBase::~CameraBackendBase ( )
virtualdefault

◆ CameraBackendBase()

bitsim::sensors::backends::CameraBackendBase::CameraBackendBase ( const std::string & backend_type)
inlineexplicitprotected

Member Function Documentation

◆ backend_type_str()

const std::string & bitsim::sensors::backends::CameraBackendBase::backend_type_str ( ) const
inlinenoexcept

The type of the backend.

◆ connect()

virtual void bitsim::sensors::backends::CameraBackendBase::connect ( )
pure virtual

◆ disconnect()

virtual void bitsim::sensors::backends::CameraBackendBase::disconnect ( )
pure virtual

◆ is_alive()

virtual bool bitsim::sensors::backends::CameraBackendBase::is_alive ( ) const
pure virtual

◆ latest_frame()

virtual std::optional< CameraFrame > bitsim::sensors::backends::CameraBackendBase::latest_frame ( ) const
pure virtual

The latest frame, if one has been received.

Implemented in bitsim::sensors::backends::MJPEG_HTTPCameraBackend, and pi_camera_line_following::MJPEG_HTTPCameraBackend.


The documentation for this class was generated from the following file: