TwiceAsNice  2019-02-18
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Laos::BCUServiceWorker< DataType > Class Template Reference

#include <LaosBCUServiceWorker.h>

Inheritance diagram for Laos::BCUServiceWorker< DataType >:
Inheritance graph
Collaboration diagram for Laos::BCUServiceWorker< DataType >:
Collaboration graph

Classes

struct  DeviceAsyncImpl
 
struct  DeviceCmdAsyncImpl
 

Public Member Functions

 BCUServiceWorker (const Nice::JointPtr &_config)
 ctor More...
 
virtual ~BCUServiceWorker ()
 
virtual void init ()
 
virtual void deinit ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void terminate ()
 
virtual void errorOnline ()
 
virtual void stop ()
 
virtual void abort ()
 
virtual void startRandomPixelGen ()
 
virtual void stopLoop ()
 
virtual Nice::Int startLoop (Nice::U32 _nframes)
 
virtual void resetLoop ()
 
virtual void initLoop ()
 
virtual void closeLoop ()
 Toggle the loop from closed to open and vice versa. More...
 
virtual void setAndClose ()
 
virtual void setMask (Nice::SeqDynamicBitset _mask)
 
virtual void loadMask (Nice::File _maskfile)
 
virtual void setNormalizeMethod (Nice::U16 _normmethod)
 
virtual void enableLinearize (bool linearize)
 
virtual void setSlopeNormConst (float normconst)
 
virtual void setLinearisation (Nice::SeqFloat _linVec)
 Empty function. Does nothing. More...
 
virtual void setSlopeOffset (Nice::SeqFloat _slopeOffset)
 
virtual void loadSlopeOffset (Nice::File _slopeOffset)
 
virtual void enableDisturbance (bool _disturb)
 
virtual void send2DM (bool SEND)
 Enable/disable the fast link. More...
 
virtual void toggleSend2DM ()
 
virtual Nice::SeqDynamicBitset getSlopeMask ()
 Read the property CFG.PUPIL.MASK. More...
 
virtual void idleOffline ()
 
virtual void idleOnline ()
 
virtual void errorStandby ()
 
virtual void packin ()
 
 BCUServiceWorker (const Nice::JointPtr &_config)
 
virtual ~BCUServiceWorker ()
 
virtual void init ()
 
virtual void deinit ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void terminate ()
 schedule EXIT as the next target state. More...
 
virtual void errorOnline ()
 set the target state to OFFLINE. More...
 
virtual void stop ()
 does nothing. More...
 
virtual void abort ()
 does nothing. More...
 
virtual void startRandomPixelGen ()
 
virtual void stopLoop ()
 
virtual Nice::Int startLoop (Nice::U32 _nframes)
 
virtual void resetLoop ()
 
virtual void initLoop ()
 
virtual void closeLoop ()
 
virtual void setAndClose ()
 
virtual void setMask (Nice::SeqDynamicBitset _mask)
 
virtual void loadMask (Nice::File _maskfile)
 
virtual void setNormalizeMethod (Nice::U16 _normmethod)
 
virtual void enableLinearize (bool linearize)
 
virtual void setSlopeNormConst (float normconst)
 
virtual void setLinearisation (Nice::SeqFloat _linVec)
 
virtual void setSlopeOffset (Nice::SeqFloat _slopeOffset)
 
virtual void loadSlopeOffset (Nice::File _slopeOffset)
 
virtual void enableDisturbance (bool _disturb)
 
virtual void send2DM (bool SEND)
 
virtual void toggleSend2DM ()
 
virtual Nice::SeqDynamicBitset getSlopeMask ()
 
virtual void idleOffline ()
 wait for a state change. More...
 
virtual void idleOnline ()
 wait for a state change. More...
 
virtual void errorStandby ()
 set the target state to OFFLINE. More...
 
virtual void packin ()
 schedule ONLINE as the next target state. More...
 
- Public Member Functions inherited from Laos::WfcCommonsServiceWorkerSkeleton
 WfcCommonsServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
virtual ~WfcCommonsServiceWorkerSkeleton ()
 
 WfcCommonsServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
virtual ~WfcCommonsServiceWorkerSkeleton ()
 
- Public Member Functions inherited from Basda::ServiceWorkerSkeleton
const Nice::PropertyPtrcmd ()
 
void setCompletion (const Nice::Completion &_c)
 
void cmdStart (const std::string &_action="")
 
void cmdDone ()
 
void cmdWarning (const std::string &_l)
 
void cmdWarning (const Nice::LoggerObject &_o)
 
void cmdError (const std::string &_l)
 
void cmdError (const Nice::LoggerObject &_o)
 
void cmdError (const Nice::SeqLoggerObject &_oo)
 
void cmdPercent (Nice::Int _v)
 
void cmdAction (Nice::Int _v, const std::string &_s)
 
virtual void cmd (const Nice::Completion &_c)
 
template<typename DataType >
Nice::Completion exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType())
 if currently online, push the state into WORKING More...
 
template<typename DataType >
void execCommand (DataType _cmd)
 
const Nice::PropertyPtrcmd ()
 
void setCompletion (const Nice::Completion &_c)
 
void cmdStart (const std::string &_action="")
 
void cmdDone ()
 
void cmdWarning (const std::string &_l)
 
void cmdWarning (const Nice::LoggerObject &_o)
 
void cmdError (const std::string &_l)
 
void cmdError (const Nice::LoggerObject &_o)
 
void cmdError (const Nice::SeqLoggerObject &_oo)
 
void cmdPercent (Nice::Int _v)
 
void cmdAction (Nice::Int _v, const std::string &_s)
 
virtual void cmd (const Nice::Completion &_c)
 
template<typename DataType >
Nice::Completion exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType())
 
template<typename DataType >
void execCommand (DataType _cmd)
 
- Public Member Functions inherited from Basda::ServiceWorker
const Nice::JointPtrconfig ()
 
Nice::JointPtr cfg ()
 
Nice::JointPtr var ()
 
virtual const std::string & name ()
 
virtual WorkerThreadPtr worker ()
 
virtual Nice::Monitormonitor ()
 
virtual void lock ()
 
virtual void unlock ()
 
bool stateIsSettled ()
 
bool stateHasChanged ()
 
void changeState (Basda::ServiceState _state)
 change state to a new state If the state is the current state, or a negative state, do nothing. Otherwise change the "next" state in the state machine and notify all threads. More...
 
bool tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0))
 change state to a new state More...
 
void waitForState (Basda::ServiceState _state)
 wait (indefinitely) until the worker has reached a spcifici state More...
 
bool timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout)
 wait (indefinitely) until the worker has reached a specific state More...
 
bool changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to)
 wait (indefinitely) until the worker has reached a spcifici state More...
 
Basda::ServiceState state ()
 
Basda::ServiceState stateNow ()
 
Basda::ServiceState stateNext ()
 
Basda::ServiceState stateLast ()
 
bool isTransit ()
 
bool isTerminated ()
 
const Nice::JointPtrconfig ()
 
Nice::JointPtr cfg ()
 
Nice::JointPtr var ()
 
virtual const std::string & name ()
 
virtual WorkerThreadPtr worker ()
 
virtual Nice::Monitormonitor ()
 
virtual void lock ()
 
virtual void unlock ()
 
bool stateIsSettled ()
 
bool stateHasChanged ()
 
void changeState (Basda::ServiceState _state)
 
bool tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0))
 
void waitForState (Basda::ServiceState _state)
 
bool timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout)
 
bool changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to)
 
Basda::ServiceState state ()
 
Basda::ServiceState stateNow ()
 
Basda::ServiceState stateNext ()
 
Basda::ServiceState stateLast ()
 
bool isTransit ()
 
bool isTerminated ()
 

Private Types

typedef Laos::BcuVinoDevice< DataType > BcuVinoDeviceType
 
typedef IceUtil::Handle< BcuVinoDeviceTypeBcuVinoDeviceTypePtr
 
typedef Laos::BCUExtra< DataType >::BCUExtraType BCUExtraType
 
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr BCUExtraTypePtr
 
typedef Laos::BcuVinoDevice< DataType > BcuVinoDeviceType
 
typedef IceUtil::Handle< BcuVinoDeviceTypeBcuVinoDeviceTypePtr
 
typedef Laos::BCUExtra< DataType >::BCUExtraType BCUExtraType
 
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr BCUExtraTypePtr
 

Private Member Functions

void initNodes ()
 
void takeAndStoreImage (Nice::File _file, Nice::U16 _num=1)
 
void printerror (int status)
 print a human-readable version of a CFITSIO integer status. More...
 
Nice::File inflateToConfigPath (Nice::File _file)
 Prepend the INSROOT_ETC_PATH to a file name. More...
 
void createFlat (Basda::Image< float > &_image)
 
void initNodes ()
 
void takeAndStoreImage (Nice::File _file, Nice::U16 _num=1)
 
void printerror (int status)
 
Nice::File inflateToConfigPath (Nice::File _file)
 
void createFlat (Basda::Image< float > &_image)
 

Private Attributes

BCUExtraTypePtr m_bcuIf
 
Nice::U16 m_slope_pixel
 
Nice::U16 m_cnt_pixel
 
Nice::U16 m_totalPixel
 
Laos::LaosLutCreatorm_lutCreator
 
Laos::BcuGenDevicePtr m_deviceBCU
 
BcuVinoDeviceTypePtr m_deviceCAM
 
Basda::VinoCameraCtrlServiceWorkerInterfacePtr m_serviceCam
 
Basda::IoSwitchServiceWorkerPtr m_io
 
DeviceAsyncImpl m_deviceAsync
 
DeviceCmdAsyncImpl m_deviceCmdAsync
 

Additional Inherited Members

- Protected Types inherited from Basda::ServiceWorker
typedef void(ServiceWorker::* ServiceWorkerMemFn) ()
 
typedef Branch BranchTable[6][6]
 
typedef IceUtil::Handle< WorkerThreadWorkerThreadPtr
 
typedef void(ServiceWorker::* ServiceWorkerMemFn) ()
 
typedef Branch BranchTable[6][6]
 
typedef IceUtil::Handle< WorkerThreadWorkerThreadPtr
 
- Protected Member Functions inherited from Laos::WfcCommonsServiceWorkerSkeleton
const char * loadMaskNode ()
 
void loadMaskInit (Nice::File _maskfile)
 
const char * setMaskNode ()
 
void setMaskInit (Nice::SeqDynamicBitset _mask)
 
const char * startLoopNode ()
 
void startLoopInit (Nice::U32 _nframes)
 
const char * stopLoopNode ()
 
const char * resetLoopNode ()
 
const char * initLoopNode ()
 
const char * closeLoopNode ()
 
const char * setAndCloseNode ()
 
const char * setNormalizeMethodNode ()
 
void setNormalizeMethodInit (Nice::U16 _normmethod)
 
const char * setSlopeOffsetNode ()
 
void setSlopeOffsetInit (Nice::SeqFloat _slopeoffset)
 
const char * loadSlopeOffsetNode ()
 
void loadSlopeOffsetInit (Nice::File _slopeoffset)
 
const char * enableLinearizeNode ()
 
void enableLinearizeInit (bool _linearize)
 
const char * setSlopeNormConstNode ()
 
void setSlopeNormConstInit (float _normconst)
 
const char * setLinearisationNode ()
 
void setLinearisationInit (Nice::SeqFloat _linvec)
 
const char * startRandomPixelGenNode ()
 
const char * enableDisturbanceNode ()
 
void enableDisturbanceInit (bool _disturb)
 
const char * send2DMNode ()
 
void send2DMInit (bool _send)
 
const char * toggleSend2DMNode ()
 
const char * getSlopeMaskNode ()
 
virtual void work ()
 
const char * loadMaskNode ()
 
void loadMaskInit (Nice::File _maskfile)
 
const char * setMaskNode ()
 
void setMaskInit (Nice::SeqDynamicBitset _mask)
 
const char * startLoopNode ()
 
void startLoopInit (Nice::U32 _nframes)
 
const char * stopLoopNode ()
 
const char * resetLoopNode ()
 
const char * initLoopNode ()
 
const char * closeLoopNode ()
 
const char * setAndCloseNode ()
 
const char * setNormalizeMethodNode ()
 
void setNormalizeMethodInit (Nice::U16 _normmethod)
 
const char * setSlopeOffsetNode ()
 
void setSlopeOffsetInit (Nice::SeqFloat _slopeoffset)
 
const char * loadSlopeOffsetNode ()
 
void loadSlopeOffsetInit (Nice::File _slopeoffset)
 
const char * enableLinearizeNode ()
 
void enableLinearizeInit (bool _linearize)
 
const char * setSlopeNormConstNode ()
 
void setSlopeNormConstInit (float _normconst)
 
const char * setLinearisationNode ()
 
void setLinearisationInit (Nice::SeqFloat _linvec)
 
const char * startRandomPixelGenNode ()
 
const char * enableDisturbanceNode ()
 
void enableDisturbanceInit (bool _disturb)
 
const char * send2DMNode ()
 
void send2DMInit (bool _send)
 
const char * toggleSend2DMNode ()
 
const char * getSlopeMaskNode ()
 
virtual void work ()
 
- Protected Member Functions inherited from Basda::ServiceWorkerSkeleton
 ServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
 ServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
- Protected Member Functions inherited from Basda::ServiceWorker
 ServiceWorker (const Nice::JointPtr &_jointPtr)
 ctor More...
 
virtual ~ServiceWorker ()
 dtor Does nothing (in this base class) More...
 
void triggerState (const Basda::ServiceStateMachine &_state)
 change state to a new state More...
 
void sendStateStatus (const std::string &_action, int _percent)
 
void setState (Basda::ServiceState _next)
 
virtual void waitForNewState ()
 
virtual bool timedWaitForNewState (const Nice::Time &_timeout)
 
virtual void preinit ()
 
virtual void errorOffline ()
 set the target state to OFFLINE. More...
 
virtual void errorWorking ()
 set the target state to OFFLINE. More...
 
virtual void idleStandby ()
 wait for a state change. More...
 
 ServiceWorker (const Nice::JointPtr &_jointPtr)
 
virtual ~ServiceWorker ()
 
void triggerState (const Basda::ServiceStateMachine &_state)
 
void sendStateStatus (const std::string &_action, int _percent)
 
void setState (Basda::ServiceState _next)
 
virtual void waitForNewState ()
 
virtual bool timedWaitForNewState (const Nice::Time &_timeout)
 
virtual void preinit ()
 
virtual void errorOffline ()
 
virtual void errorWorking ()
 
virtual void idleStandby ()
 
- Protected Attributes inherited from Basda::ServiceWorkerSkeleton
Nice::Completion m_completion
 
Nice::I64 m_id
 
Nice::PropertyPtr m_cmd
 
- Protected Attributes inherited from Basda::ServiceWorker
Nice::JointPtr m_config
 
Nice::PropertyPtr m_state
 
std::string m_name
 
- Static Protected Attributes inherited from Basda::ServiceWorker
static BranchTable s_stateTable
 A table which tells which state should go via which intermediate state to a target state. The 6 states are SHUTDOWN, OFFLINE, STANDBY, ONLINE, WORKING and ERROR. The principles are that. More...
 

Member Typedef Documentation

◆ BCUExtraType [1/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra<DataType>::BCUExtraType Laos::BCUServiceWorker< DataType >::BCUExtraType
private

◆ BCUExtraType [2/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra<DataType>::BCUExtraType Laos::BCUServiceWorker< DataType >::BCUExtraType
private

◆ BCUExtraTypePtr [1/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra<DataType>::BCUExtraTypePtr Laos::BCUServiceWorker< DataType >::BCUExtraTypePtr
private

◆ BCUExtraTypePtr [2/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra<DataType>::BCUExtraTypePtr Laos::BCUServiceWorker< DataType >::BCUExtraTypePtr
private

◆ BcuVinoDeviceType [1/2]

template<typename DataType = Nice::U16>
typedef Laos::BcuVinoDevice<DataType> Laos::BCUServiceWorker< DataType >::BcuVinoDeviceType
private

◆ BcuVinoDeviceType [2/2]

template<typename DataType = Nice::U16>
typedef Laos::BcuVinoDevice<DataType> Laos::BCUServiceWorker< DataType >::BcuVinoDeviceType
private

◆ BcuVinoDeviceTypePtr [1/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle<BcuVinoDeviceType> Laos::BCUServiceWorker< DataType >::BcuVinoDeviceTypePtr
private

◆ BcuVinoDeviceTypePtr [2/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle<BcuVinoDeviceType> Laos::BCUServiceWorker< DataType >::BcuVinoDeviceTypePtr
private

Constructor & Destructor Documentation

◆ BCUServiceWorker() [1/2]

template<typename DataType >
Laos::BCUServiceWorker< DataType >::BCUServiceWorker ( const Nice::JointPtr _config)

ctor


Parameters
_config

◆ ~BCUServiceWorker() [1/2]

template<typename DataType >
Laos::BCUServiceWorker< DataType >::~BCUServiceWorker ( )
virtual

Dummy. Does nothing.

◆ BCUServiceWorker() [2/2]

template<typename DataType = Nice::U16>
Laos::BCUServiceWorker< DataType >::BCUServiceWorker ( const Nice::JointPtr _config)

◆ ~BCUServiceWorker() [2/2]

template<typename DataType = Nice::U16>
virtual Laos::BCUServiceWorker< DataType >::~BCUServiceWorker ( )
virtual

Member Function Documentation

◆ abort() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::abort ( void  )
virtual

Reimplemented from Basda::ServiceWorkerSkeleton.

◆ abort() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::abort ( void  )
virtual

does nothing.


Reimplemented from Basda::ServiceWorkerSkeleton.

◆ activate() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::activate ( )
virtual

Implements Basda::ServiceWorker.

◆ activate() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::activate ( )
virtual

if ( m_deviceBCU && m_deviceCAM )

Implements Basda::ServiceWorker.

◆ closeLoop() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::closeLoop ( )
virtual

Toggle the loop from closed to open and vice versa.


Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ closeLoop() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::closeLoop ( )
virtual

◆ createFlat() [1/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::createFlat ( Basda::Image< float > &  _image)
private

◆ createFlat() [2/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::createFlat ( Basda::Image< float > &  _image)
private

◆ deactivate() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::deactivate ( )
virtual

m_deviceBCU->deactivate ( m_deviceAsync );

Implements Basda::ServiceWorker.

◆ deactivate() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::deactivate ( )
virtual

Implements Basda::ServiceWorker.

◆ deinit() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::deinit ( )
virtual

Implements Basda::ServiceWorker.

◆ deinit() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::deinit ( )
virtual

if ( m_deviceBCU && m_deviceCAM )

Implements Basda::ServiceWorker.

◆ enableDisturbance() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::enableDisturbance ( bool  _disturb)
virtual

◆ enableDisturbance() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::enableDisturbance ( bool  _disturb)
virtual

Parameters
_disturb

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ enableLinearize() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::enableLinearize ( bool  _linearize)
virtual

Parameters
_linearize

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ enableLinearize() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::enableLinearize ( bool  linearize)
virtual

◆ errorOnline() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::errorOnline ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ errorOnline() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::errorOnline ( )
virtual

set the target state to OFFLINE.


Reimplemented from Basda::ServiceWorker.

◆ errorStandby() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::errorStandby ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ errorStandby() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::errorStandby ( )
virtual

set the target state to OFFLINE.


Reimplemented from Basda::ServiceWorker.

◆ getSlopeMask() [1/2]

template<typename DataType = Nice::U16>
virtual Nice::SeqDynamicBitset Laos::BCUServiceWorker< DataType >::getSlopeMask ( )
virtual

◆ getSlopeMask() [2/2]

template<typename DataType >
Nice::SeqDynamicBitset Laos::BCUServiceWorker< DataType >::getSlopeMask ( )
virtual

Read the property CFG.PUPIL.MASK.


Returns
The bit set currently stored in the property.

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ idleOffline() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::idleOffline ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ idleOffline() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::idleOffline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOnline() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::idleOnline ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ idleOnline() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::idleOnline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ inflateToConfigPath() [1/2]

template<typename DataType >
Nice::File Laos::BCUServiceWorker< DataType >::inflateToConfigPath ( Nice::File  _file)
private

Prepend the INSROOT_ETC_PATH to a file name.


Parameters
[in]_fileThe trailing part of the file. This may also be a non-existing file.
Returns
The file augmented by the first directory name of the INSROOT_ETC_PATH that contains a "config" substring.

◆ inflateToConfigPath() [2/2]

template<typename DataType = Nice::U16>
Nice::File Laos::BCUServiceWorker< DataType >::inflateToConfigPath ( Nice::File  _file)
private

◆ init() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::init ( )
virtual

Implements Basda::ServiceWorker.

◆ init() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::init ( )
virtual

try

}

Implements Basda::ServiceWorker.

◆ initLoop() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::initLoop ( )
virtual

◆ initLoop() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::initLoop ( )
virtual

◆ initNodes() [1/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::initNodes ( )
private

◆ initNodes() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::initNodes ( )
private

◆ loadMask() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::loadMask ( Nice::File  _maskfile)
inlinevirtual

◆ loadMask() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::loadMask ( Nice::File  _maskfile)
inlinevirtual

◆ loadSlopeOffset() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::loadSlopeOffset ( Nice::File  _slopeOffset)
virtual

◆ loadSlopeOffset() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::loadSlopeOffset ( Nice::File  _slopeOffset)
virtual

Parameters
_slopeOffset

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ packin() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::packin ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ packin() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::packin ( )
virtual

schedule ONLINE as the next target state.


Reimplemented from Basda::ServiceWorker.

◆ printerror() [1/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::printerror ( int  status)
private

◆ printerror() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::printerror ( int  status)
private

print a human-readable version of a CFITSIO integer status.


Parameters
[in]statusThe CFITSIO status parameter

◆ resetLoop() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::resetLoop ( )
virtual

TODO fix me

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ resetLoop() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::resetLoop ( )
virtual

◆ send2DM() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::send2DM ( bool  SEND)
virtual

◆ send2DM() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::send2DM ( bool  _fastlink)
virtual

Enable/disable the fast link.


Parameters
_fastlinkIf true, enable the fast link. If false, toggle the current state of the fast linke from enabled to disabled and vice versa.

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setAndClose() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setAndClose ( )
virtual

◆ setAndClose() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setAndClose ( )
virtual

◆ setLinearisation() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setLinearisation ( Nice::SeqFloat  _linVec)
virtual

Empty function. Does nothing.


Parameters
_linVec

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setLinearisation() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setLinearisation ( Nice::SeqFloat  _linVec)
virtual

◆ setMask() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setMask ( Nice::SeqDynamicBitset  _mask)
virtual

Parameters
_mask

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setMask() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setMask ( Nice::SeqDynamicBitset  _mask)
virtual

◆ setNormalizeMethod() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setNormalizeMethod ( Nice::U16  _normmethod)
virtual

◆ setNormalizeMethod() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setNormalizeMethod ( Nice::U16  _normmethod)
virtual

Parameters
_normmethod

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setSlopeNormConst() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setSlopeNormConst ( float  _normconst)
virtual

Parameters
_normconst

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setSlopeNormConst() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setSlopeNormConst ( float  normconst)
virtual

◆ setSlopeOffset() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::setSlopeOffset ( Nice::SeqFloat  _slopeOffset)
virtual

Parameters
_slopeOffset

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ setSlopeOffset() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::setSlopeOffset ( Nice::SeqFloat  _slopeOffset)
virtual

◆ startLoop() [1/2]

template<typename DataType = Nice::U16>
virtual Nice::Int Laos::BCUServiceWorker< DataType >::startLoop ( Nice::U32  _nframes)
virtual

◆ startLoop() [2/2]

template<typename DataType >
Nice::Int Laos::BCUServiceWorker< DataType >::startLoop ( Nice::U32  _nframes)
virtual

Parameters
_nframesNumber of images to be read by the camera.
Returns

Implements Laos::WfcCommonsServiceWorkerSkeleton.

◆ startRandomPixelGen() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::startRandomPixelGen ( )
virtual

◆ startRandomPixelGen() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::startRandomPixelGen ( )
virtual

◆ stop() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::stop ( )
virtual

Reimplemented from Basda::ServiceWorkerSkeleton.

◆ stop() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::stop ( )
virtual

does nothing.


Reimplemented from Basda::ServiceWorkerSkeleton.

◆ stopLoop() [1/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::stopLoop ( )
virtual

◆ stopLoop() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::stopLoop ( )
virtual

◆ takeAndStoreImage() [1/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::takeAndStoreImage ( Nice::File  _file,
Nice::U16  _num = 1 
)
private

◆ takeAndStoreImage() [2/2]

template<typename DataType = Nice::U16>
void Laos::BCUServiceWorker< DataType >::takeAndStoreImage ( Nice::File  _file,
Nice::U16  _num = 1 
)
private

◆ terminate() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::terminate ( )
virtual

schedule EXIT as the next target state.


Reimplemented from Basda::ServiceWorker.

◆ terminate() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::terminate ( )
virtual

Reimplemented from Basda::ServiceWorker.

◆ toggleSend2DM() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BCUServiceWorker< DataType >::toggleSend2DM ( )
virtual

◆ toggleSend2DM() [2/2]

template<typename DataType >
void Laos::BCUServiceWorker< DataType >::toggleSend2DM ( )
virtual

Member Data Documentation

◆ m_bcuIf

template<typename DataType = Nice::U16>
BCUExtraTypePtr Laos::BCUServiceWorker< DataType >::m_bcuIf
private

◆ m_cnt_pixel

template<typename DataType = Nice::U16>
Nice::U16 Laos::BCUServiceWorker< DataType >::m_cnt_pixel
private

◆ m_deviceAsync

template<typename DataType = Nice::U16>
DeviceAsyncImpl Laos::BCUServiceWorker< DataType >::m_deviceAsync
private

◆ m_deviceBCU

template<typename DataType = Nice::U16>
Laos::BcuGenDevicePtr Laos::BCUServiceWorker< DataType >::m_deviceBCU
private

◆ m_deviceCAM

template<typename DataType = Nice::U16>
BcuVinoDeviceTypePtr Laos::BCUServiceWorker< DataType >::m_deviceCAM
private

◆ m_deviceCmdAsync

template<typename DataType = Nice::U16>
DeviceCmdAsyncImpl Laos::BCUServiceWorker< DataType >::m_deviceCmdAsync
private

◆ m_io

template<typename DataType = Nice::U16>
Basda::IoSwitchServiceWorkerPtr Laos::BCUServiceWorker< DataType >::m_io
private

◆ m_lutCreator

template<typename DataType = Nice::U16>
Laos::LaosLutCreator * Laos::BCUServiceWorker< DataType >::m_lutCreator
private

◆ m_serviceCam

template<typename DataType = Nice::U16>
Basda::VinoCameraCtrlServiceWorkerInterfacePtr Laos::BCUServiceWorker< DataType >::m_serviceCam
private

◆ m_slope_pixel

template<typename DataType = Nice::U16>
Nice::U16 Laos::BCUServiceWorker< DataType >::m_slope_pixel
private

◆ m_totalPixel

template<typename DataType = Nice::U16>
Nice::U16 Laos::BCUServiceWorker< DataType >::m_totalPixel
private

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