DUNE: Uniform Navigational Environment  2019.02.0
Simulators::VSIM::Task Struct Reference

Detailed Description

Simulator task.

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
void consume (const IMC::GpsFix *msg)
 
void consume (const IMC::ServoPosition *msg)
 
void consume (const IMC::SetThrusterActuation *msg)
 
void task (void)
 

Public Attributes

Simulators::VSIM::Vehiclem_vehicle
 
Simulators::VSIM::Worldm_world
 
IMC::SimulatedState m_sstate
 
double m_start_time
 
double m_last_time
 
Arguments m_args
 

Constructor & Destructor Documentation

Simulators::VSIM::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Simulators::VSIM::Task::consume ( const IMC::GpsFix *  msg)
inline
void Simulators::VSIM::Task::consume ( const IMC::ServoPosition *  msg)
inline
void Simulators::VSIM::Task::consume ( const IMC::SetThrusterActuation *  msg)
inline
void Simulators::VSIM::Task::onResourceInitialization ( void  )
inline
void Simulators::VSIM::Task::onResourceRelease ( void  )
inline

Release allocated resources.

References m_vehicle, and m_world.

Member Data Documentation

Arguments Simulators::VSIM::Task::m_args

Task arguments.

Referenced by Task(), and task().

double Simulators::VSIM::Task::m_last_time

Last step time.

IMC::SimulatedState Simulators::VSIM::Task::m_sstate

Simulated position (X,Y,Z).

Referenced by consume(), and task().

double Simulators::VSIM::Task::m_start_time

Start time.

Referenced by consume(), and task().

Simulators::VSIM::Vehicle* Simulators::VSIM::Task::m_vehicle

Simulation vehicle.

Referenced by consume(), onResourceInitialization(), onResourceRelease(), and task().

Simulators::VSIM::World* Simulators::VSIM::Task::m_world

Simulation world.

Referenced by onResourceInitialization(), onResourceRelease(), and task().

Collaboration diagram for Simulators::VSIM::Task:
Collaboration graph