DUNE: Uniform Navigational Environment  2019.02.1
Simulators::USBL::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void consume (const IMC::GpsFix *msg)
 
void consume (const IMC::SimulatedState *msg)
 
void task (void)
 
void getSensorData (USBLMessage *msg) const
 
void getRealBearingAndRange (double *bearing, double *range) const
 

Public Attributes

IMC::EntityState m_ent
 
IMC::SimulatedState m_sstate
 
IMC::DevDataBinary m_dev
 
Random::Generatorm_prng
 
double m_usbl_off_n
 
double m_usbl_off_e
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

void Simulators::USBL::Task::consume ( const IMC::GpsFix *  msg)
inline
void Simulators::USBL::Task::consume ( const IMC::SimulatedState *  msg)
inline
void Simulators::USBL::Task::getRealBearingAndRange ( double *  bearing,
double *  range 
) const
inline

Compute actual bearing angle and range from USBL transducer to vehicle.

References Simulators::USBL::Arguments::usbl_heading.

void Simulators::USBL::Task::onResourceAcquisition ( void  )
inline
void Simulators::USBL::Task::onResourceRelease ( void  )
inline
void Simulators::USBL::Task::task ( void  )
inline

Member Data Documentation

Arguments Simulators::USBL::Task::m_args
IMC::DevDataBinary Simulators::USBL::Task::m_dev

A device binary message for now.

IMC::EntityState Simulators::USBL::Task::m_ent

Entity state message.

Random::Generator* Simulators::USBL::Task::m_prng

PRNG handle.

IMC::SimulatedState Simulators::USBL::Task::m_sstate

Current position.

double Simulators::USBL::Task::m_usbl_off_e

East offset of the USBL acoustic transducer.

double Simulators::USBL::Task::m_usbl_off_n

North offset of the USBL acoustic transducer.

Collaboration diagram for Simulators::USBL::Task:
Collaboration graph