DUNE: Uniform Navigational Environment  2.4.1
Simulators::SVS::Task Struct Reference

Detailed Description

SVS simulator task.

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceInitialization (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void consume (const IMC::SimulatedState *msg)
 
void task (void)
 

Public Attributes

IMC::SimulatedState m_sstate
 
IMC::SoundSpeed m_sspeed
 
Random::Generatorm_prng
 
Arguments m_args
 

Constructor & Destructor Documentation

Simulators::SVS::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Simulators::SVS::Task::consume ( const IMC::SimulatedState *  msg)
inline

References m_sstate.

void Simulators::SVS::Task::onResourceAcquisition ( void  )
inline
void Simulators::SVS::Task::onResourceInitialization ( void  )
inline

Initialize resources.

void Simulators::SVS::Task::onResourceRelease ( void  )
inline

Release resources.

References m_prng.

Member Data Documentation

Arguments Simulators::SVS::Task::m_args

Task arguments.

Referenced by onResourceAcquisition(), Task(), and task().

Random::Generator* Simulators::SVS::Task::m_prng

PRNG handle.

Referenced by onResourceAcquisition(), onResourceRelease(), and task().

IMC::SoundSpeed Simulators::SVS::Task::m_sspeed

Current sound speed.

Referenced by task().

IMC::SimulatedState Simulators::SVS::Task::m_sstate

Simulated state.

Referenced by consume().

Collaboration diagram for Simulators::SVS::Task:
Collaboration graph