DUNE: Uniform Navigational Environment  2016.05.0
Simulators::DVL::Task Struct Reference

Detailed Description

DVL simulator task.

Public Member Functions

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

Public Attributes

IMC::SimulatedState m_sstate
 
IMC::WaterVelocity m_wvel
 
IMC::GroundVelocity m_gvel
 
Random::Generatorm_prng
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

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

References m_sstate.

void Simulators::DVL::Task::onResourceAcquisition ( void  )
inline
void Simulators::DVL::Task::onResourceRelease ( void  )
inline

Release resources.

References m_prng.

void Simulators::DVL::Task::onUpdateParameters ( void  )
inline

Update internal parameters.

References Simulators::DVL::Arguments::ir_prob, and m_args.

Member Data Documentation

Arguments Simulators::DVL::Task::m_args
IMC::GroundVelocity Simulators::DVL::Task::m_gvel

Ground velocity.

Referenced by task().

Random::Generator* Simulators::DVL::Task::m_prng

Pseudo-random generator.

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

IMC::SimulatedState Simulators::DVL::Task::m_sstate

Simulated state.

Referenced by consume(), and task().

IMC::WaterVelocity Simulators::DVL::Task::m_wvel

Water velocity.

Referenced by task().

Collaboration diagram for Simulators::DVL::Task:
Collaboration graph