DUNE: Uniform Navigational Environment  2019.02.1
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.

Member Data Documentation

Arguments Simulators::VSIM::Task::m_args

Task arguments.

double Simulators::VSIM::Task::m_last_time

Last step time.

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

Simulated position (X,Y,Z).

double Simulators::VSIM::Task::m_start_time

Start time.

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

Simulation vehicle.

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

Simulation world.

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