bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
camera_server.FrameGrabber Class Reference

Public Member Functions

 __init__ (self, source, quality)
 latest (self)
 stop (self)

Protected Member Functions

 _run (self)

Protected Attributes

 _source = source
 _quality = quality
 _lock = threading.Lock()
 _jpeg = None
int _count = 0
bool _running = True
 _thread = threading.Thread(target=self._run, daemon=True)

Detailed Description

Reads frames on a thread of its own and keeps the latest one as JPEG.

Constructor & Destructor Documentation

◆ __init__()

camera_server.FrameGrabber.__init__ ( self,
source,
quality )

Member Function Documentation

◆ _run()

camera_server.FrameGrabber._run ( self)
protected

◆ latest()

camera_server.FrameGrabber.latest ( self)

◆ stop()

camera_server.FrameGrabber.stop ( self)

Member Data Documentation

◆ _count

int camera_server.FrameGrabber._count = 0
protected

◆ _jpeg

camera_server.FrameGrabber._jpeg = None
protected

◆ _lock

camera_server.FrameGrabber._lock = threading.Lock()
protected

◆ _quality

camera_server.FrameGrabber._quality = quality
protected

◆ _running

bool camera_server.FrameGrabber._running = True
protected

◆ _source

camera_server.FrameGrabber._source = source
protected

◆ _thread

camera_server.FrameGrabber._thread = threading.Thread(target=self._run, daemon=True)
protected

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