DUNE: Uniform Navigational Environment  2019.02.1
Simulators::UnderwaterAcoustics::Task Struct Reference

Public Types

typedef std::map< int, IMC::RemoteState > RStateMap
 

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onUpdateParameters (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void share (const IMC::Message *msg)
 
void updatePosition (const IMC::RemoteState *rstate)
 
double distance (int src, int dst)
 
void updateKnowledge (const IMC::UASimulation *m)
 
void consume (const IMC::GpsFix *msg)
 
void consume (const IMC::SimulatedState *msg)
 
void consume (const IMC::UASimulation *msg)
 
void onMain (void)
 
void checkIncomingData (void)
 

Public Attributes

Arguments m_args
 
bool m_setup
 
bool m_fixed_location
 
uint16_t m_local_imc_addr
 
IMC::GpsFix m_origin
 
IMC::RemoteState m_lstate
 
RStateMap m_positions
 
IMC::UASimulation * m_pending
 
double m_busy_till
 
double m_send_time
 
UDPSocket * m_sock
 
uint8_t m_buf [1024]
 

Member Typedef Documentation

typedef std::map<int, IMC::RemoteState> Simulators::UnderwaterAcoustics::Task::RStateMap

Constructor & Destructor Documentation

Simulators::UnderwaterAcoustics::Task::~Task ( void  )
inline

Member Function Documentation

void Simulators::UnderwaterAcoustics::Task::checkIncomingData ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::consume ( const IMC::GpsFix *  msg)
inline
void Simulators::UnderwaterAcoustics::Task::consume ( const IMC::SimulatedState *  msg)
inline
void Simulators::UnderwaterAcoustics::Task::consume ( const IMC::UASimulation *  msg)
inline
double Simulators::UnderwaterAcoustics::Task::distance ( int  src,
int  dst 
)
inline
void Simulators::UnderwaterAcoustics::Task::onMain ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::onResourceAcquisition ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::onResourceRelease ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::onUpdateParameters ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::share ( const IMC::Message *  msg)
inline
void Simulators::UnderwaterAcoustics::Task::updateKnowledge ( const IMC::UASimulation *  m)
inline
void Simulators::UnderwaterAcoustics::Task::updatePosition ( const IMC::RemoteState *  rstate)
inline

Member Data Documentation

Arguments Simulators::UnderwaterAcoustics::Task::m_args
uint8_t Simulators::UnderwaterAcoustics::Task::m_buf[1024]
double Simulators::UnderwaterAcoustics::Task::m_busy_till
bool Simulators::UnderwaterAcoustics::Task::m_fixed_location
uint16_t Simulators::UnderwaterAcoustics::Task::m_local_imc_addr
IMC::RemoteState Simulators::UnderwaterAcoustics::Task::m_lstate
IMC::GpsFix Simulators::UnderwaterAcoustics::Task::m_origin
IMC::UASimulation* Simulators::UnderwaterAcoustics::Task::m_pending
RStateMap Simulators::UnderwaterAcoustics::Task::m_positions
double Simulators::UnderwaterAcoustics::Task::m_send_time
bool Simulators::UnderwaterAcoustics::Task::m_setup
UDPSocket* Simulators::UnderwaterAcoustics::Task::m_sock
Collaboration diagram for Simulators::UnderwaterAcoustics::Task:
Collaboration graph