DUNE: Uniform Navigational Environment
2019.02.1
|
LBL simulator task.
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onUpdateParameters (void) |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
bool | checkLbl (void) const |
bool | checkGps (void) const |
bool | ready (void) const |
void | reset (void) |
void | consume (const IMC::GpsFix *msg) |
void | consume (const IMC::LblConfig *msg) |
void | consume (const IMC::SimulatedState *msg) |
void | consume (const IMC::UamTxFrame *msg) |
void | onActivation (void) |
void | onDeactivation (void) |
void | range (const std::string &sys_name) |
void | onMain (void) |
Public Attributes | |
IMC::SimulatedState | m_sstate |
IMC::GpsFix * | m_gps |
IMC::LblConfig * | m_lbl_cfg |
MessageList< IMC::LblBeacon >::const_iterator | m_cursor |
Counter< double > | m_pinger |
Random::Generator * | m_prng |
Arguments | m_args |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References Simulators::LBL::Arguments::wait_uam.
|
inline |
|
inline |
|
inline |
References Simulators::LBL::Arguments::wait_uam.
|
inline |
Acquire resources.
References Simulators::LBL::Arguments::prng_seed, and Simulators::LBL::Arguments::prng_type.
|
inline |
Release resources.
|
inline |
Update parameters.
References Simulators::LBL::Arguments::ping_delay.
|
inline |
Range system.
[in] | sys_name | system name. |
References Simulators::LBL::Arguments::bad_range_prob, DUNE::Math::Random::Generator::gaussian(), DUNE::Math::Random::Generator::random(), Simulators::LBL::Arguments::sigma, and Simulators::LBL::Arguments::wait_uam.
|
inline |
Check if we are ready to simulate LBL.
|
inline |
Reset ranger.
MessageList<IMC::LblBeacon>::const_iterator Simulators::LBL::Task::m_cursor |
Cursor.
IMC::GpsFix* Simulators::LBL::Task::m_gps |
WGS84 origin.
IMC::LblConfig* Simulators::LBL::Task::m_lbl_cfg |
LblConfig buffer.
Counter<double> Simulators::LBL::Task::m_pinger |
Next ping time.
Random::Generator* Simulators::LBL::Task::m_prng |
PRNG handle.
IMC::SimulatedState Simulators::LBL::Task::m_sstate |
Simulated state.