ifw-ccf  3.0.0-pre2
Public Member Functions | Public Attributes | List of all members
ccf::control::AcqThread Class Reference

CCF Acquisition Thread, handling the reception of image data from the camera. More...

#include <acqThread.hpp>

Inheritance diagram for ccf::control::AcqThread:
ccf::mptk::Thread

Public Member Functions

 AcqThread (const std::string &thread_name, ccf::mptk::MessageBus &message_bus, const double period=0.1)
 Acquisition Thread, handling the interfacing and data acquisition from the camera. More...
 
virtual ~AcqThread ()
 
void Initialise ()
 
void ResetCounters ()
 Reset counters for the internal household. More...
 
void SetInputQ (std::shared_ptr< ccf::common::FrameQueue > &queue)
 Set reference to the Application Input Queue. More...
 
ccf::common::FrameQueueGetInputQ ()
 Get refrence to the Application Input Queue. More...
 
virtual void UserLogic ()
 Acquisition Thread user logic. More...
 
ccf::common::FrameStatisticsGetFrameStat ()
 Get reference to frame handling statistics. More...
 
- Public Member Functions inherited from ccf::mptk::Thread
 Thread (const std::string &thread_name, MessageBus &message_bus, const double period=0.1)
 Constructor method, setting up the internal members. More...
 
virtual ~Thread ()
 
void SetPriority (const int prio=-1)
 If invoked, it will run the thread in real-time mode with the given priority [0; 99]. More...
 
std::string GetName () const
 Return the thread Name. More...
 
void Run ()
 Method to invoke the user provided business logic of the thread. The method executes internally a loop. More...
 
void Start ()
 Start the thread execution. More...
 
void Stop ()
 Stop the thread execution. More...
 
void Pause ()
 Pause the thread execution. More...
 
void Continue ()
 Continue a paused thread execution. More...
 
double GetDrift () const
 
bool GetExecFlag ()
 Check the Thread Execution Flag. The Thread Execution Flag shall be called regularly in the thread, at least during every internal cycle (of LogicUser()). The behavior is as follows: THREAD_EXEC_RUNNING: Return immediately with true. THREAD_EXEC_PAUSED: Wait internally for flag to change to THREAD_EXEC_RUN/_STOP. TRHEAD_EXEC_STOPPED: Return immediately with false. Thread LogicUser() shall return. More...
 
ThreadExecControl GetExecFlag () const
 Return the value of the Thread Execution Flag. More...
 
bool Terminated ()
 Returns true if thread no longer running. More...
 
MessageBusMsgBus ()
 Get acces to the MessageBus associated with this thread object. More...
 
std::string ToString () const
 Generate ASCII output providing a status of the object. More...
 

Public Attributes

const double NO_FRAME_RECV_SLEEP_TIME = 0.001
 Sleep to apply when no frame is available. More...
 

Additional Inherited Members

- Public Types inherited from ccf::mptk::Thread
enum  ThreadExecControl { THREAD_EXEC_STOPPED = 1 , THREAD_EXEC_RUNNING , THREAD_EXEC_PAUSED }
 Thread execution control/status. More...
 
- Static Public Attributes inherited from ccf::mptk::Thread
static std::map< std::string, Thread * > s_thread_registry
 

Detailed Description

CCF Acquisition Thread, handling the reception of image data from the camera.

Constructor & Destructor Documentation

◆ AcqThread()

ccf::control::AcqThread::AcqThread ( const std::string &  thread_name,
ccf::mptk::MessageBus message_bus,
const double  period = 0.1 
)

Acquisition Thread, handling the interfacing and data acquisition from the camera.

◆ ~AcqThread()

ccf::control::AcqThread::~AcqThread ( )
virtual

Member Function Documentation

◆ GetFrameStat()

ccf::common::FrameStatistics & ccf::control::AcqThread::GetFrameStat ( )

Get reference to frame handling statistics.

◆ GetInputQ()

ccf::common::FrameQueue & ccf::control::AcqThread::GetInputQ ( )

Get refrence to the Application Input Queue.

◆ Initialise()

void ccf::control::AcqThread::Initialise ( )

◆ ResetCounters()

void ccf::control::AcqThread::ResetCounters ( )

Reset counters for the internal household.

◆ SetInputQ()

void ccf::control::AcqThread::SetInputQ ( std::shared_ptr< ccf::common::FrameQueue > &  queue)

Set reference to the Application Input Queue.

◆ UserLogic()

void ccf::control::AcqThread::UserLogic ( )
virtual

Acquisition Thread user logic.

Reimplemented from ccf::mptk::Thread.

Member Data Documentation

◆ NO_FRAME_RECV_SLEEP_TIME

const double ccf::control::AcqThread::NO_FRAME_RECV_SLEEP_TIME = 0.001

Sleep to apply when no frame is available.


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