DUNE: Uniform Navigational Environment  2.5.0
Simulators::DepthSensor::Task Struct Reference

Detailed Description

DepthSensor simulator task.

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void consume (const IMC::SimulatedState *msg)
 
void task (void)
 

Public Attributes

IMC::SimulatedState m_sstate
 
IMC::Depth m_depth
 
Random::Generatorm_prng
 
Arguments m_args
 

Constructor & Destructor Documentation

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

Member Function Documentation

void Simulators::DepthSensor::Task::consume ( const IMC::SimulatedState *  msg)
inline

References m_sstate.

void Simulators::DepthSensor::Task::onResourceAcquisition ( void  )
inline
void Simulators::DepthSensor::Task::onResourceRelease ( void  )
inline

Release resources.

References m_prng.

void Simulators::DepthSensor::Task::task ( void  )
inline

Member Data Documentation

Arguments Simulators::DepthSensor::Task::m_args

Task arguments.

Referenced by onResourceAcquisition(), Task(), and task().

IMC::Depth Simulators::DepthSensor::Task::m_depth

Current depth.

Referenced by task().

Random::Generator* Simulators::DepthSensor::Task::m_prng

PRNG handle.

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

IMC::SimulatedState Simulators::DepthSensor::Task::m_sstate

Simulated state.

Referenced by consume(), and task().

Collaboration diagram for Simulators::DepthSensor::Task:
Collaboration graph