Public Member Functions | Private Member Functions | Private Attributes | List of all members
io::TelegramHandler Class Reference

Represents ensemble of (to be constructed) ROS messages, to be handled at once by this class. More...

#include <telegram_handler.hpp>

Public Member Functions

void clearSemaphores ()
 
std::string getMainCd ()
 Returns the connection descriptor. More...
 
void handleTelegram (const std::shared_ptr< Telegram > &telegram)
 Called every time a telegram is received. More...
 
void resetWaitforMainCd ()
 Returns the connection descriptor. More...
 
 TelegramHandler (ROSaicNodeBase *node)
 
void waitForCapabilities ()
 Waits for capabilities. More...
 
void waitForResponse ()
 Waits for response. More...
 
 ~TelegramHandler ()
 

Private Member Functions

void handleCd (const std::shared_ptr< Telegram > &telegram)
 
void handleError (const std::shared_ptr< Telegram > &telegram)
 
void handleNmea (const std::shared_ptr< Telegram > &telegram)
 
void handleResponse (const std::shared_ptr< Telegram > &telegram)
 
void handleSbf (const std::shared_ptr< Telegram > &telegram)
 

Private Attributes

Semaphore capabilitiesSemaphore_
 
Semaphore cdSemaphore_
 
std::string mainConnectionDescriptor_ = std::string()
 
MessageHandler messageHandler_
 MessageHandler parser. More...
 
ROSaicNodeBasenode_
 Pointer to Node. More...
 
Semaphore responseSemaphore_
 

Detailed Description

Represents ensemble of (to be constructed) ROS messages, to be handled at once by this class.

Definition at line 109 of file telegram_handler.hpp.

Constructor & Destructor Documentation

◆ TelegramHandler()

io::TelegramHandler::TelegramHandler ( ROSaicNodeBase node)
inline

Definition at line 113 of file telegram_handler.hpp.

◆ ~TelegramHandler()

io::TelegramHandler::~TelegramHandler ( )
inline

Definition at line 115 of file telegram_handler.hpp.

Member Function Documentation

◆ clearSemaphores()

void io::TelegramHandler::clearSemaphores ( )
inline

Definition at line 121 of file telegram_handler.hpp.

◆ getMainCd()

std::string io::TelegramHandler::getMainCd ( )
inline

Returns the connection descriptor.

Definition at line 136 of file telegram_handler.hpp.

◆ handleCd()

void io::TelegramHandler::handleCd ( const std::shared_ptr< Telegram > &  telegram)
private

Definition at line 146 of file telegram_handler.cpp.

◆ handleError()

void io::TelegramHandler::handleError ( const std::shared_ptr< Telegram > &  telegram)
private

◆ handleNmea()

void io::TelegramHandler::handleNmea ( const std::shared_ptr< Telegram > &  telegram)
private

Definition at line 110 of file telegram_handler.cpp.

◆ handleResponse()

void io::TelegramHandler::handleResponse ( const std::shared_ptr< Telegram > &  telegram)
private

Definition at line 115 of file telegram_handler.cpp.

◆ handleSbf()

void io::TelegramHandler::handleSbf ( const std::shared_ptr< Telegram > &  telegram)
private

Definition at line 105 of file telegram_handler.cpp.

◆ handleTelegram()

void io::TelegramHandler::handleTelegram ( const std::shared_ptr< Telegram > &  telegram)

Called every time a telegram is received.

Definition at line 41 of file telegram_handler.cpp.

◆ resetWaitforMainCd()

void io::TelegramHandler::resetWaitforMainCd ( )
inline

Returns the connection descriptor.

Definition at line 133 of file telegram_handler.hpp.

◆ waitForCapabilities()

void io::TelegramHandler::waitForCapabilities ( )
inline

Waits for capabilities.

Definition at line 146 of file telegram_handler.hpp.

◆ waitForResponse()

void io::TelegramHandler::waitForResponse ( )
inline

Waits for response.

Definition at line 143 of file telegram_handler.hpp.

Member Data Documentation

◆ capabilitiesSemaphore_

Semaphore io::TelegramHandler::capabilitiesSemaphore_
private

Definition at line 162 of file telegram_handler.hpp.

◆ cdSemaphore_

Semaphore io::TelegramHandler::cdSemaphore_
private

Definition at line 160 of file telegram_handler.hpp.

◆ mainConnectionDescriptor_

std::string io::TelegramHandler::mainConnectionDescriptor_ = std::string()
private

Definition at line 163 of file telegram_handler.hpp.

◆ messageHandler_

MessageHandler io::TelegramHandler::messageHandler_
private

MessageHandler parser.

Definition at line 158 of file telegram_handler.hpp.

◆ node_

ROSaicNodeBase* io::TelegramHandler::node_
private

Pointer to Node.

Definition at line 155 of file telegram_handler.hpp.

◆ responseSemaphore_

Semaphore io::TelegramHandler::responseSemaphore_
private

Definition at line 161 of file telegram_handler.hpp.


The documentation for this class was generated from the following files:


septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Wed Nov 22 2023 04:04:28