DUNE: Uniform Navigational Environment
2019.02.0
|
Gaussian simulator task.
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onUpdateParameters (void) |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
void | consume (const IMC::SimulatedState *msg) |
void | task (void) |
Public Attributes | |
IMC::Message * | m_msg |
IMC::SimulatedState | m_last_state |
Random::Generator * | m_prng |
Arguments | m_args |
|
inline |
References Simulators::Gaussian::Arguments::away_val, Simulators::Gaussian::Arguments::depth_threshold, Simulators::Gaussian::Arguments::invalid, m_args, Simulators::Gaussian::Arguments::message_name, Simulators::Gaussian::Arguments::peak_lat, Simulators::Gaussian::Arguments::peak_lon, Simulators::Gaussian::Arguments::peak_val, Simulators::Gaussian::Arguments::peak_width, Simulators::Gaussian::Arguments::prng_seed, Simulators::Gaussian::Arguments::prng_type, and Simulators::Gaussian::Arguments::std_dev.
|
inline |
References m_last_state.
|
inline |
Acquire resources.
References m_args, m_msg, m_prng, Simulators::Gaussian::Arguments::message_name, Simulators::Gaussian::Arguments::prng_seed, and Simulators::Gaussian::Arguments::prng_type.
|
inline |
|
inline |
Parse arguments.
References m_args, m_msg, Simulators::Gaussian::Arguments::message_name, Simulators::Gaussian::Arguments::peak_lat, and Simulators::Gaussian::Arguments::peak_lon.
|
inline |
References Simulators::Gaussian::Arguments::away_val, Simulators::Gaussian::Arguments::depth_threshold, DUNE::Math::Random::Generator::gaussian(), Simulators::Gaussian::Arguments::invalid, m_args, m_last_state, m_msg, m_prng, Simulators::Gaussian::Arguments::peak_lat, Simulators::Gaussian::Arguments::peak_lon, Simulators::Gaussian::Arguments::peak_val, Simulators::Gaussian::Arguments::peak_width, and Simulators::Gaussian::Arguments::std_dev.
Arguments Simulators::Gaussian::Task::m_args |
Task arguments.
Referenced by onResourceAcquisition(), onUpdateParameters(), Task(), and task().
IMC::SimulatedState Simulators::Gaussian::Task::m_last_state |
IMC::Message* Simulators::Gaussian::Task::m_msg |
IMC message to be produced.
Referenced by onResourceAcquisition(), onResourceRelease(), onUpdateParameters(), and task().
Random::Generator* Simulators::Gaussian::Task::m_prng |
Pseudo-random number generator.
Referenced by onResourceAcquisition(), onResourceRelease(), and task().