ifw-fgf 1.0.0-pre1
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
ifw::fgf::common Namespace Reference

Frame Grabber Camera Base Class definitions. More...

Classes

class  BinarySemaphore
 Binary semaphore class to be used for thread synchronisation. More...
 
struct  CameraSetup
 Structure to hold camera setup parameters. More...
 
struct  CameraStatus
 Structure to hold camera status parameters. More...
 
class  ICommAdapter
 Abstract base class for implementing FGF Communication Adapters. More...
 
class  MudpiCreator
 RTMS creator class. More...
 
class  MudpiCreatorParallel
 RTMS creator class which implements parallel generation of MUDPI packets. More...
 
class  RawImage
 Raw Image Class to handle one image in memory. More...
 
class  RtmsPublisher
 RTMS Publisher. More...
 
class  Semaphore
 Semaphore class for safe semaphore usage. More...
 
struct  SetupParam
 Setup ("ctrl" category) parameters enums. More...
 
struct  State
 State struct defining enums to handle states/substates. More...
 
struct  StatusParam
 The status parameters enums definitions. More...
 

Typedefs

using Variant = std::variant<bool,int,unsigned int,short,double,std::string>
 
using PairVariant = std::pair<std::string, Variant>
 
using VectorVariant = std::vector<PairVariant>
 

Enumerations

enum class  OpMode { FINITE = 1 , CONTINUOUS }
 Operational Mode: Finite or Continuous. More...
 

Functions

double Time ()
 Return time as seconds since epoch with micro second precision.
 
void Sleep (const float sleep_time)
 Make the calling thread sleep for the given period of time given as seconds.
 
const std::string & LogPropertiesName (const std::string &log_properties="")
 Set the name of the log properties (default: "config/ifw/fgf/common/log.properties").
 
const std::string & AppLogName (const std::string &_fgf_logger_name="")
 Set the name of the logger for this app (default: "fgf-app").
 
void ConfigureLogging ()
 Configure log4cplus.
 
log4cplus::Logger & GetRootLogger ()
 Return reference to root logger.
 
log4cplus::Logger & GetAppLogger ()
 Return reference to application logger.
 
std::string FindFile (const std::string &resource_filename)
 
void CustomOpen62541Log (void *log_context, UA_LogLevel level, UA_LogCategory category, const char *msg, va_list args)
 

Variables

constexpr auto STAT_WINDOW_SIZE = 1000
 
constexpr auto CTRL_EXPO_TIME_STR = "ctrl_expo_time"
 
constexpr auto CTRL_FRAME_RATE_STR = "ctrl_frame_rate"
 
constexpr auto CTRL_BIN_X_STR = "ctrl_bin_x"
 
constexpr auto CTRL_BIN_Y_STR = "ctrl_bin_y"
 
constexpr auto CTRL_FRAME_TARGET_STR = "ctrl_frame_target"
 
constexpr auto CTRL_OP_MODE_STR = "ctrl_op_mode"
 
constexpr auto CTRL_OFFSET_X_STR = "ctrl_offset_x"
 
constexpr auto CTRL_OFFSET_Y_STR = "ctrl_offset_y"
 
constexpr auto CTRL_WIDTH_STR = "ctrl_width"
 
constexpr auto CTRL_HEIGHT_STR = "ctrl_height"
 
constexpr auto KEY_STATUS_SUBSYS_STATE = "state"
 
constexpr auto KEY_STATUS_SUBSYS_SUBSTATE = "substate"
 
constexpr auto STATE_UNDEFINED_STR = "Undefined"
 
constexpr auto STATE_NOT_OP_ERROR_STR = "NotOpError"
 
constexpr auto STATE_ERROR_STR = "Error"
 
constexpr auto STATE_OFF_STR = "Off"
 
constexpr auto STATE_NOT_OPERATIONAL_STR = "NotOperational"
 
constexpr auto STATE_OPERATIONAL_STR = "Operational"
 
constexpr auto SUBSTATE_NOTREADY_STR = "NotReady"
 
constexpr auto SUBSTATE_INITIALISING_STR = "Initialising"
 
constexpr auto SUBSTATE_READY_STR = "Ready"
 
constexpr auto SUBSTATE_ENABLING_STR = "Enabling"
 
constexpr auto SUBSTATE_RECOVERING_STR = "Recovering"
 
constexpr auto SUBSTATE_IDLE_STR = "Idle"
 
constexpr auto SUBSTATE_BUSY_STR = "Busy"
 
constexpr auto SUBSTATE_ACQUIRING_STR = "Acquiring"
 
constexpr auto STAT_EXPO_TIME_STR = "expo_time"
 
constexpr auto STAT_FRAME_RATE_STR = "frame_rate"
 
constexpr auto STAT_FRAME_COUNTER_STR = "frame_counter"
 
constexpr auto STAT_TOTAL_FRAME_COUNTER_STR = "total_frame_counter"
 
constexpr auto STAT_WIDTH_STR = "width"
 
constexpr auto STAT_HEIGHT_STR = "height"
 
constexpr auto STAT_CAMERA_INTERFACE_STR = "camera_interface"
 
constexpr auto STAT_CAMERA_MODEL_STR = "camera_model"
 
constexpr auto STAT_CAMERA_NAME_STR = "camera_name"
 
constexpr auto STAT_CAMERA_SERIAL_NUMBER_STR = "camera_serial_number"
 
constexpr auto STAT_STATE_STR = "state"
 
constexpr auto STAT_SUBSTATE_STR = "substate"
 
constexpr auto STAT_RPC_ERROR_TEXT_STR = "rpc_error_text"
 
constexpr auto STAT_SYSTEM_ERROR_TEXT_STR = "system_error_text"
 

Detailed Description

Frame Grabber Camera Base Class definitions.

Logger definitions source file.

Camera status parameters definition.

State machine state and substates definition.

Setup parameters header file.

Semaphore class for safe semaphore usage.

Logging definitions.

Abstract base class for implementing FGF Communication Adapters.

Typedef Documentation

◆ PairVariant

using ifw::fgf::common::PairVariant = std::pair<std::string, Variant>

◆ Variant

using ifw::fgf::common::Variant = std::variant<bool,int,unsigned int,short,double,std::string>

◆ VectorVariant

Enumeration Type Documentation

◆ OpMode

enum class ifw::fgf::common::OpMode
strong

Operational Mode: Finite or Continuous.

Enumerator
FINITE 
CONTINUOUS 

Function Documentation

◆ AppLogName()

const std::string & ifw::fgf::common::AppLogName ( const std::string & _fgf_logger_name = "")

Set the name of the logger for this app (default: "fgf-app").

◆ ConfigureLogging()

void ifw::fgf::common::ConfigureLogging ( )

Configure log4cplus.

◆ CustomOpen62541Log()

void ifw::fgf::common::CustomOpen62541Log ( void * log_context,
UA_LogLevel level,
UA_LogCategory category,
const char * msg,
va_list args )

◆ FindFile()

std::string ifw::fgf::common::FindFile ( const std::string & resource_filename)

◆ GetAppLogger()

log4cplus::Logger & ifw::fgf::common::GetAppLogger ( )

Return reference to application logger.

◆ GetRootLogger()

log4cplus::Logger & ifw::fgf::common::GetRootLogger ( )

Return reference to root logger.

◆ LogPropertiesName()

const std::string & ifw::fgf::common::LogPropertiesName ( const std::string & log_properties = "")

Set the name of the log properties (default: "config/ifw/fgf/common/log.properties").

◆ Sleep()

void ifw::fgf::common::Sleep ( const float sleep_time)
inline

Make the calling thread sleep for the given period of time given as seconds.

◆ Time()

double ifw::fgf::common::Time ( )
inline

Return time as seconds since epoch with micro second precision.

Variable Documentation

◆ CTRL_BIN_X_STR

constexpr auto ifw::fgf::common::CTRL_BIN_X_STR = "ctrl_bin_x"
constexpr

◆ CTRL_BIN_Y_STR

constexpr auto ifw::fgf::common::CTRL_BIN_Y_STR = "ctrl_bin_y"
constexpr

◆ CTRL_EXPO_TIME_STR

constexpr auto ifw::fgf::common::CTRL_EXPO_TIME_STR = "ctrl_expo_time"
constexpr

◆ CTRL_FRAME_RATE_STR

constexpr auto ifw::fgf::common::CTRL_FRAME_RATE_STR = "ctrl_frame_rate"
constexpr

◆ CTRL_FRAME_TARGET_STR

constexpr auto ifw::fgf::common::CTRL_FRAME_TARGET_STR = "ctrl_frame_target"
constexpr

◆ CTRL_HEIGHT_STR

constexpr auto ifw::fgf::common::CTRL_HEIGHT_STR = "ctrl_height"
constexpr

◆ CTRL_OFFSET_X_STR

constexpr auto ifw::fgf::common::CTRL_OFFSET_X_STR = "ctrl_offset_x"
constexpr

◆ CTRL_OFFSET_Y_STR

constexpr auto ifw::fgf::common::CTRL_OFFSET_Y_STR = "ctrl_offset_y"
constexpr

◆ CTRL_OP_MODE_STR

constexpr auto ifw::fgf::common::CTRL_OP_MODE_STR = "ctrl_op_mode"
constexpr

◆ CTRL_WIDTH_STR

constexpr auto ifw::fgf::common::CTRL_WIDTH_STR = "ctrl_width"
constexpr

◆ KEY_STATUS_SUBSYS_STATE

constexpr auto ifw::fgf::common::KEY_STATUS_SUBSYS_STATE = "state"
constexpr

◆ KEY_STATUS_SUBSYS_SUBSTATE

constexpr auto ifw::fgf::common::KEY_STATUS_SUBSYS_SUBSTATE = "substate"
constexpr

◆ STAT_CAMERA_INTERFACE_STR

constexpr auto ifw::fgf::common::STAT_CAMERA_INTERFACE_STR = "camera_interface"
constexpr

◆ STAT_CAMERA_MODEL_STR

constexpr auto ifw::fgf::common::STAT_CAMERA_MODEL_STR = "camera_model"
constexpr

◆ STAT_CAMERA_NAME_STR

constexpr auto ifw::fgf::common::STAT_CAMERA_NAME_STR = "camera_name"
constexpr

◆ STAT_CAMERA_SERIAL_NUMBER_STR

constexpr auto ifw::fgf::common::STAT_CAMERA_SERIAL_NUMBER_STR = "camera_serial_number"
constexpr

◆ STAT_EXPO_TIME_STR

constexpr auto ifw::fgf::common::STAT_EXPO_TIME_STR = "expo_time"
constexpr

◆ STAT_FRAME_COUNTER_STR

constexpr auto ifw::fgf::common::STAT_FRAME_COUNTER_STR = "frame_counter"
constexpr

◆ STAT_FRAME_RATE_STR

constexpr auto ifw::fgf::common::STAT_FRAME_RATE_STR = "frame_rate"
constexpr

◆ STAT_HEIGHT_STR

constexpr auto ifw::fgf::common::STAT_HEIGHT_STR = "height"
constexpr

◆ STAT_RPC_ERROR_TEXT_STR

constexpr auto ifw::fgf::common::STAT_RPC_ERROR_TEXT_STR = "rpc_error_text"
constexpr

◆ STAT_STATE_STR

constexpr auto ifw::fgf::common::STAT_STATE_STR = "state"
constexpr

◆ STAT_SUBSTATE_STR

constexpr auto ifw::fgf::common::STAT_SUBSTATE_STR = "substate"
constexpr

◆ STAT_SYSTEM_ERROR_TEXT_STR

constexpr auto ifw::fgf::common::STAT_SYSTEM_ERROR_TEXT_STR = "system_error_text"
constexpr

◆ STAT_TOTAL_FRAME_COUNTER_STR

constexpr auto ifw::fgf::common::STAT_TOTAL_FRAME_COUNTER_STR = "total_frame_counter"
constexpr

◆ STAT_WIDTH_STR

constexpr auto ifw::fgf::common::STAT_WIDTH_STR = "width"
constexpr

◆ STAT_WINDOW_SIZE

constexpr auto ifw::fgf::common::STAT_WINDOW_SIZE = 1000
constexpr

◆ STATE_ERROR_STR

constexpr auto ifw::fgf::common::STATE_ERROR_STR = "Error"
constexpr

◆ STATE_NOT_OP_ERROR_STR

constexpr auto ifw::fgf::common::STATE_NOT_OP_ERROR_STR = "NotOpError"
constexpr

◆ STATE_NOT_OPERATIONAL_STR

constexpr auto ifw::fgf::common::STATE_NOT_OPERATIONAL_STR = "NotOperational"
constexpr

◆ STATE_OFF_STR

constexpr auto ifw::fgf::common::STATE_OFF_STR = "Off"
constexpr

◆ STATE_OPERATIONAL_STR

constexpr auto ifw::fgf::common::STATE_OPERATIONAL_STR = "Operational"
constexpr

◆ STATE_UNDEFINED_STR

constexpr auto ifw::fgf::common::STATE_UNDEFINED_STR = "Undefined"
constexpr

◆ SUBSTATE_ACQUIRING_STR

constexpr auto ifw::fgf::common::SUBSTATE_ACQUIRING_STR = "Acquiring"
constexpr

◆ SUBSTATE_BUSY_STR

constexpr auto ifw::fgf::common::SUBSTATE_BUSY_STR = "Busy"
constexpr

◆ SUBSTATE_ENABLING_STR

constexpr auto ifw::fgf::common::SUBSTATE_ENABLING_STR = "Enabling"
constexpr

◆ SUBSTATE_IDLE_STR

constexpr auto ifw::fgf::common::SUBSTATE_IDLE_STR = "Idle"
constexpr

◆ SUBSTATE_INITIALISING_STR

constexpr auto ifw::fgf::common::SUBSTATE_INITIALISING_STR = "Initialising"
constexpr

◆ SUBSTATE_NOTREADY_STR

constexpr auto ifw::fgf::common::SUBSTATE_NOTREADY_STR = "NotReady"
constexpr

◆ SUBSTATE_READY_STR

constexpr auto ifw::fgf::common::SUBSTATE_READY_STR = "Ready"
constexpr

◆ SUBSTATE_RECOVERING_STR

constexpr auto ifw::fgf::common::SUBSTATE_RECOVERING_STR = "Recovering"
constexpr