DUNE: Uniform Navigational Environment  2016.05.0
Sensors::Genesys::Task Struct Reference

Detailed Description

Task.

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceInitialization (void)
 
void onResourceRelease (void)
 
void setAddress (void)
 
void getData (void)
 
void task (void)
 

Public Attributes

TCPSocket * m_sock
 
Counter< float > m_wdog
 
Arguments m_args
 

Constructor & Destructor Documentation

Sensors::Genesys::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Sensors::Genesys::Task::getData ( void  )
inline

Extract data from device.

References m_sock, m_wdog, and DUNE::Time::Counter< T >::reset().

Referenced by task().

void Sensors::Genesys::Task::onResourceInitialization ( void  )
inline
void Sensors::Genesys::Task::onResourceRelease ( void  )
inline

Release resources.

References m_sock.

void Sensors::Genesys::Task::onUpdateParameters ( void  )
inline
void Sensors::Genesys::Task::setAddress ( void  )
inline

Send node address to establish communication.

References Sensors::Genesys::Arguments::addr, m_args, and m_sock.

Referenced by onResourceInitialization().

void Sensors::Genesys::Task::task ( void  )
inline

Member Data Documentation

Arguments Sensors::Genesys::Task::m_args

Configuration parameters.

Referenced by onResourceInitialization(), onUpdateParameters(), setAddress(), and Task().

TCPSocket* Sensors::Genesys::Task::m_sock
Counter<float> Sensors::Genesys::Task::m_wdog

Input Watchdog.

Referenced by getData(), onUpdateParameters(), and task().

Collaboration diagram for Sensors::Genesys::Task:
Collaboration graph