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

References onResourceRelease().

Member Function Documentation

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

References m_buf, m_sock, updateKnowledge(), and updatePosition().

Referenced by onMain().

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

References m_positions.

Referenced by updateKnowledge(), and updatePosition().

void Simulators::UnderwaterAcoustics::Task::onMain ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::onResourceAcquisition ( void  )
inline
void Simulators::UnderwaterAcoustics::Task::onResourceRelease ( void  )
inline

References m_pending, and m_sock.

Referenced by ~Task().

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]

Referenced by checkIncomingData(), and share().

double Simulators::UnderwaterAcoustics::Task::m_busy_till

Referenced by consume(), and updateKnowledge().

bool Simulators::UnderwaterAcoustics::Task::m_fixed_location

Referenced by consume(), onMain(), and onUpdateParameters().

uint16_t Simulators::UnderwaterAcoustics::Task::m_local_imc_addr
IMC::RemoteState Simulators::UnderwaterAcoustics::Task::m_lstate
IMC::GpsFix Simulators::UnderwaterAcoustics::Task::m_origin

Referenced by consume().

IMC::UASimulation* Simulators::UnderwaterAcoustics::Task::m_pending
RStateMap Simulators::UnderwaterAcoustics::Task::m_positions

Referenced by distance(), and updatePosition().

double Simulators::UnderwaterAcoustics::Task::m_send_time

Referenced by onMain(), and updateKnowledge().

bool Simulators::UnderwaterAcoustics::Task::m_setup
UDPSocket* Simulators::UnderwaterAcoustics::Task::m_sock
Collaboration diagram for Simulators::UnderwaterAcoustics::Task:
Collaboration graph