DUNE: Uniform Navigational Environment
2019.02.1
|
IMU simulator task.
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceAcquisition (void) |
void | onResourceInitialization (void) |
void | onResourceRelease (void) |
void | onDeactivation (void) |
void | consume (const IMC::SimulatedState *msg) |
void | onMain (void) |
Public Attributes | |
IMC::EulerAngles | m_euler |
IMC::AngularVelocity | m_agvel |
IMC::Acceleration | m_accel |
double | m_vel [3] |
Random::Generator * | m_prng |
float | m_heading_offset |
Time::Delta | m_delta |
Arguments | m_args |
|
inline |
References Simulators::IMU::Arguments::activation_control, Simulators::IMU::Arguments::euler, Simulators::IMU::Arguments::gyro_bias, Simulators::IMU::Arguments::prng_seed, Simulators::IMU::Arguments::prng_type, Simulators::IMU::Arguments::stdev_agvel, Simulators::IMU::Arguments::stdev_euler, and Simulators::IMU::Arguments::stdev_heading_offset.
|
inline |
|
inline |
|
inline |
|
inline |
Acquire resources.
References DUNE::Math::Random::Generator::gaussian(), Simulators::IMU::Arguments::prng_seed, Simulators::IMU::Arguments::prng_type, and Simulators::IMU::Arguments::stdev_heading_offset.
|
inline |
|
inline |
Release resources.
IMC::Acceleration Simulators::IMU::Task::m_accel |
Acceleration.
IMC::AngularVelocity Simulators::IMU::Task::m_agvel |
Angular Velocity.
Time::Delta Simulators::IMU::Task::m_delta |
Timestep.
IMC::EulerAngles Simulators::IMU::Task::m_euler |
Euler angles.
float Simulators::IMU::Task::m_heading_offset |
Random dynamic heading offset.
Random::Generator* Simulators::IMU::Task::m_prng |
Pseudo-random generator.
double Simulators::IMU::Task::m_vel[3] |
Stored Velocity.