DUNE: Uniform Navigational Environment
2020.01.0
|
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::Temperature | m_temp |
IMC::SoundSpeed | m_sspeed |
IMC::Conductivity | m_cond |
IMC::Salinity | m_salinity |
IMC::Depth | m_depth |
IMC::Pressure | m_pressure |
IMC::SimulatedState | m_sstate |
Random::Generator * | m_prng |
Arguments | m_args |
|
inline |
|
inline |
Requests activation of the task (if not active already) and stores received state in m_sstate.
|
inline |
Acquire resources. Initializes the random number generator.
References Simulators::CTD::Arguments::prng_seed, and Simulators::CTD::Arguments::prng_type.
|
inline |
Initialize resources.
It requests deactivation so that this task is not active by default and will be activated only when DUNE::IMC::SimulatedState messages are received.
|
inline |
Release resources.
|
inline |
If active, computes all values using random value generators and dispatches:
References DUNE::Math::Random::Generator::gaussian(), Simulators::CTD::Arguments::mean_cond, Simulators::CTD::Arguments::mean_temp, Simulators::CTD::Arguments::std_dev_cond, Simulators::CTD::Arguments::std_dev_depth, and Simulators::CTD::Arguments::std_dev_temp.
IMC::Conductivity Simulators::CTD::Task::m_cond |
Current conductivity.
IMC::Depth Simulators::CTD::Task::m_depth |
IMC::Pressure Simulators::CTD::Task::m_pressure |
Random::Generator* Simulators::CTD::Task::m_prng |
PRNG handle.
IMC::Salinity Simulators::CTD::Task::m_salinity |
Current salinity.
IMC::SoundSpeed Simulators::CTD::Task::m_sspeed |
Current sound speed.
IMC::SimulatedState Simulators::CTD::Task::m_sstate |
Last received simulated state.
IMC::Temperature Simulators::CTD::Task::m_temp |
Temperature.