TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | List of all members
Laos::XineticsDummyDevice Class Reference

#include <XineticsDummyDevice.h>

Inheritance diagram for Laos::XineticsDummyDevice:
Inheritance graph
Collaboration diagram for Laos::XineticsDummyDevice:
Collaboration graph

Public Member Functions

 XineticsDummyDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsDummyDevice ()
 
virtual void reset (Basda::DeviceAsync &=s_async)
 reset the device More...
 
virtual void activate (Basda::DeviceAsync &=s_async)
 activate the device More...
 
virtual void deactivate (Basda::DeviceAsync &=s_async)
 deactivate the device More...
 
virtual void handleXineticsEvents (uint32_t _timeout)
 
 XineticsDummyDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsDummyDevice ()
 
virtual void reset (Basda::DeviceAsync &=s_async)
 reset the device More...
 
virtual void activate (Basda::DeviceAsync &=s_async)
 activate the device More...
 
virtual void deactivate (Basda::DeviceAsync &=s_async)
 deactivate the device More...
 
virtual void handleXineticsEvents (uint32_t _timeout)
 
 XineticsDummyDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsDummyDevice ()
 
virtual void reset (Basda::DeviceAsync &=s_async)
 reset the device More...
 
virtual void activate (Basda::DeviceAsync &=s_async)
 activate the device More...
 
virtual void deactivate (Basda::DeviceAsync &=s_async)
 deactivate the device More...
 
virtual void handleXineticsEvents (uint32_t _timeout)
 
- Public Member Functions inherited from Laos::XineticsCoreDevice
 XineticsCoreDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsCoreDevice ()
 
virtual void open ()
 open device More...
 
virtual void close ()
 close device More...
 
virtual void version ()
 version More...
 
virtual void init (Basda::DeviceAsync &=s_async)
 init the device More...
 
virtual void deinit (Basda::DeviceAsync &=s_async)
 deinit the device More...
 
virtual bool setActuators (Nice::SeqInt &_actuatorCmd)
 Calculate voltages (applying corrections like nonliearities) and send the to the refl memory. If the voltages exceed thresholds set by the configuration, the frame is skipped. More...
 
virtual void getActCommands (Nice::SeqInt &_command) const
 Convert the most recently calculated voltages back to their integer values. This is basically the inverse of calcActVoltages() and assumes that m_skipFrame=false, which means it supposes that the most recently calculated voltages have not been rejected by the various threshold checks. More...
 
virtual Nice::SeqInt getExceededNeighborActThreshold ()
 
virtual Nice::SeqInt getExceededActLimits ()
 
virtual void resetActuators ()
 Sets all actuators to actuator command zero. More...
 
virtual void resetActuators (const Nice::SeqFloat &_currentPos)
 
virtual dspState_t getDSPState ()
 
virtual bool getDSPError ()
 
virtual Nice::SeqI16 getFlatPatters ()
 
 XineticsCoreDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsCoreDevice ()
 
virtual void open ()
 open device More...
 
virtual void close ()
 close device More...
 
virtual void version ()
 version More...
 
virtual void init (Basda::DeviceAsync &=s_async)
 init the device More...
 
virtual void deinit (Basda::DeviceAsync &=s_async)
 deinit the device More...
 
virtual bool setActuators (Nice::SeqInt &_actuatorCmd)
 
virtual void getActCommands (Nice::SeqInt &_command) const
 
virtual Nice::SeqInt getExceededNeighborActThreshold ()
 
virtual Nice::SeqInt getExceededActLimits ()
 
virtual void resetActuators ()
 Sets all actuators to actuator command zero. More...
 
virtual void resetActuators (const Nice::SeqFloat &_currentPos)
 
virtual dspState_t getDSPState ()
 
virtual bool getDSPError ()
 
virtual Nice::SeqI16 getFlatPatters ()
 
 XineticsCoreDevice (const Nice::JointPtr &_config)
 
virtual ~XineticsCoreDevice ()
 
virtual void open ()
 open device More...
 
virtual void close ()
 close device More...
 
virtual void version ()
 version More...
 
virtual void init (Basda::DeviceAsync &=s_async)
 init the device More...
 
virtual void deinit (Basda::DeviceAsync &=s_async)
 deinit the device More...
 
virtual bool setActuators (Nice::SeqInt &_actuatorCmd)
 
virtual void getActCommands (Nice::SeqInt &_command) const
 
virtual Nice::SeqInt getExceededNeighborActThreshold ()
 
virtual Nice::SeqInt getExceededActLimits ()
 
virtual void resetActuators ()
 Sets all actuators to actuator command zero. More...
 
virtual void resetActuators (const Nice::SeqFloat &_currentPos)
 
virtual dspState_t getDSPState ()
 
virtual bool getDSPError ()
 
virtual Nice::SeqI16 getFlatPatters ()
 
- Public Member Functions inherited from Basda::Device
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 

Protected Member Functions

void applyActVoltages ()
 
Send calculated DAC values to the Xinetics Electronics More...
 
void applyActVoltages ()
 
Send calculated DAC values to the Xinetics Electronics More...
 
void applyActVoltages ()
 
Send calculated DAC values to the Xinetics Electronics More...
 
- Protected Member Functions inherited from Laos::XineticsCoreDevice
void calcActVoltages (const Nice::SeqInt &_command)
 Calculate actuator voltages plus sanity check. More...
 
void addProperties ()
 
void updateProperties ()
 
void calcActVoltages (const Nice::SeqInt &_command)
 Calculate actuator voltages plus sanity check. More...
 
void addProperties ()
 
void updateProperties ()
 
void calcActVoltages (const Nice::SeqInt &_command)
 Calculate actuator voltages plus sanity check. More...
 
void addProperties ()
 
void updateProperties ()
 

Additional Inherited Members

- Static Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 
- Protected Attributes inherited from Laos::XineticsCoreDevice
Laos::FitsVector< Nice::I16m_actFlatPattern
 
Laos::FitsVector< double > m_actSensitivityPattern
 
Laos::FitsVector< double > m_actNonlinearityPattern
 
double m_actCommonSensitivity
 
bool m_correctFlatness
 
bool m_correctSensitivity
 
bool m_correctNonlinearity
 
Nice::SeqInt m_exceededNeighborActThreshold
 
Nice::SeqInt m_exceededActLimits
 
Laos::FitsVector< Nice::I16m_NeighborMap
 
unsigned int m_NeighborActThreshold
 
long m_temporalDistanceThreshold
 
unsigned short m_actVoltageArray [actVoltageArraySize]
 
unsigned short * m_actVoltagePtr [numberOfXineticsActuators]
 
long m_integratedActVoltage
 
long m_frameCounter
 
long m_skippedFrameCounter
 
bool m_skipFrame
 
bool m_isFlat
 
std::string m_deviceFile
 
Laos::dspState_t m_dspState
 
std::map< dspState_t, std::string > m_dspStatename
 
bool m_dspError
 
bool m_fiberLink
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Constructor & Destructor Documentation

◆ XineticsDummyDevice() [1/3]

Laos::XineticsDummyDevice::XineticsDummyDevice ( const Nice::JointPtr _config)

◆ ~XineticsDummyDevice() [1/3]

Laos::XineticsDummyDevice::~XineticsDummyDevice ( )
virtual

◆ XineticsDummyDevice() [2/3]

Laos::XineticsDummyDevice::XineticsDummyDevice ( const Nice::JointPtr _config)

◆ ~XineticsDummyDevice() [2/3]

virtual Laos::XineticsDummyDevice::~XineticsDummyDevice ( )
virtual

◆ XineticsDummyDevice() [3/3]

Laos::XineticsDummyDevice::XineticsDummyDevice ( const Nice::JointPtr _config)

◆ ~XineticsDummyDevice() [3/3]

virtual Laos::XineticsDummyDevice::~XineticsDummyDevice ( )
virtual

Member Function Documentation

◆ activate() [1/3]

void Laos::XineticsDummyDevice::activate ( Basda::DeviceAsync = s_async)
virtual

activate the device

Implements Basda::Device.

◆ activate() [2/3]

virtual void Laos::XineticsDummyDevice::activate ( Basda::DeviceAsync = s_async)
virtual

activate the device

Implements Basda::Device.

◆ activate() [3/3]

virtual void Laos::XineticsDummyDevice::activate ( Basda::DeviceAsync = s_async)
virtual

activate the device

Implements Basda::Device.

◆ applyActVoltages() [1/3]

void Laos::XineticsDummyDevice::applyActVoltages ( )
protectedvirtual


Send calculated DAC values to the Xinetics Electronics

Returns
void

Implements Laos::XineticsCoreDevice.

◆ applyActVoltages() [2/3]

void Laos::XineticsDummyDevice::applyActVoltages ( )
protectedvirtual


Send calculated DAC values to the Xinetics Electronics

Returns
void

Implements Laos::XineticsCoreDevice.

◆ applyActVoltages() [3/3]

void Laos::XineticsDummyDevice::applyActVoltages ( )
protectedvirtual


Send calculated DAC values to the Xinetics Electronics

Returns
void

Implements Laos::XineticsCoreDevice.

◆ deactivate() [1/3]

virtual void Laos::XineticsDummyDevice::deactivate ( Basda::DeviceAsync = s_async)
virtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/3]

virtual void Laos::XineticsDummyDevice::deactivate ( Basda::DeviceAsync = s_async)
virtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [3/3]

void Laos::XineticsDummyDevice::deactivate ( Basda::DeviceAsync = s_async)
virtual

deactivate the device

Implements Basda::Device.

◆ handleXineticsEvents() [1/3]

virtual void Laos::XineticsDummyDevice::handleXineticsEvents ( uint32_t  _timeout)
virtual

◆ handleXineticsEvents() [2/3]

void Laos::XineticsDummyDevice::handleXineticsEvents ( uint32_t  _timeout)
virtual

◆ handleXineticsEvents() [3/3]

virtual void Laos::XineticsDummyDevice::handleXineticsEvents ( uint32_t  _timeout)
virtual

◆ reset() [1/3]

virtual void Laos::XineticsDummyDevice::reset ( Basda::DeviceAsync = s_async)
virtual

reset the device

Implements Basda::Device.

◆ reset() [2/3]

void Laos::XineticsDummyDevice::reset ( Basda::DeviceAsync = s_async)
virtual

reset the device

Implements Basda::Device.

◆ reset() [3/3]

virtual void Laos::XineticsDummyDevice::reset ( Basda::DeviceAsync = s_async)
virtual

reset the device

Implements Basda::Device.


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