|
bitsim
Model, simulate, estimate and control robots in C++
|
Base class for the sources of camera frames. More...
#include <camera_backend_base.h>

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) | |
Base class for the sources of camera frames.
|
virtualdefault |
|
inlineexplicitprotected |
|
inlinenoexcept |
The type of the backend.
|
pure virtual |
Start receiving frames.
Implemented in bitsim::sensors::backends::MJPEG_HTTPCameraBackend, and pi_camera_line_following::MJPEG_HTTPCameraBackend.
|
pure virtual |
Stop receiving frames.
Implemented in bitsim::sensors::backends::MJPEG_HTTPCameraBackend, and pi_camera_line_following::MJPEG_HTTPCameraBackend.
|
pure virtual |
Whether frames are arriving.
Implemented in bitsim::sensors::backends::MJPEG_HTTPCameraBackend, and pi_camera_line_following::MJPEG_HTTPCameraBackend.
|
pure virtual |
The latest frame, if one has been received.
Implemented in bitsim::sensors::backends::MJPEG_HTTPCameraBackend, and pi_camera_line_following::MJPEG_HTTPCameraBackend.