DUNE: Uniform Navigational Environment  2.5.0-rc1
Transports::UDP::LimitedComms Class Reference

Public Member Functions

 LimitedComms (float comm_range, unsigned local_id)
 
void setAnnounce (const IMC::Announce *msg)
 
void setMyEstimatedState (const IMC::EstimatedState *msg)
 
void setNodePosition (unsigned id, double lat, double lon, double alt)
 
void setMyPosition (double lat, double lon, float alt)
 
bool isNodeWithinRange (unsigned id, unsigned int message_id)
 
bool isActive ()
 
void setActive (bool active)
 
void setUnderwaterComms (bool ucomms)
 
void setAllowedMessages (std::vector< std::string > msgs)
 
double distanceTo (unsigned id)
 
float getCommRange (void)
 

Constructor & Destructor Documentation

Transports::UDP::LimitedComms::LimitedComms ( float  comm_range,
unsigned  local_id 
)
inline

Member Function Documentation

double Transports::UDP::LimitedComms::distanceTo ( unsigned  id)
inline
float Transports::UDP::LimitedComms::getCommRange ( void  )
inline
bool Transports::UDP::LimitedComms::isActive ( void  )
inline
bool Transports::UDP::LimitedComms::isNodeWithinRange ( unsigned  id,
unsigned int  message_id 
)
inline
void Transports::UDP::LimitedComms::setActive ( bool  active)
inline
void Transports::UDP::LimitedComms::setAllowedMessages ( std::vector< std::string >  msgs)
inline
void Transports::UDP::LimitedComms::setAnnounce ( const IMC::Announce *  msg)
inline
void Transports::UDP::LimitedComms::setMyEstimatedState ( const IMC::EstimatedState *  msg)
inline
void Transports::UDP::LimitedComms::setMyPosition ( double  lat,
double  lon,
float  alt 
)
inline
void Transports::UDP::LimitedComms::setNodePosition ( unsigned  id,
double  lat,
double  lon,
double  alt 
)
inline

Referenced by setAnnounce().

void Transports::UDP::LimitedComms::setUnderwaterComms ( bool  ucomms)
inline
Collaboration diagram for Transports::UDP::LimitedComms:
Collaboration graph