Go to the documentation of this file.
62 #include <condition_variable>
83 std::unique_lock<std::mutex> lock(
mtx_);
90 std::unique_lock<std::mutex> lock(
mtx_);
100 std::condition_variable
cv_;
149 void handleSbf(
const std::shared_ptr<Telegram>& telegram);
150 void handleNmea(
const std::shared_ptr<Telegram>& telegram);
152 void handleError(
const std::shared_ptr<Telegram>& telegram);
153 void handleCd(
const std::shared_ptr<Telegram>& telegram);
void resetWaitforMainCd()
Returns the connection descriptor.
void handleNmea(const std::shared_ptr< Telegram > &telegram)
std::string getMainCd()
Returns the connection descriptor.
ROSaicNodeBase * node_
Pointer to Node.
void handleResponse(const std::shared_ptr< Telegram > &telegram)
This class is the base class for abstraction.
std::string mainConnectionDescriptor_
Can search buffer for messages, read/parse them, and so on.
Semaphore capabilitiesSemaphore_
MessageHandler messageHandler_
MessageHandler parser.
TelegramHandler(ROSaicNodeBase *node)
void handleSbf(const std::shared_ptr< Telegram > &telegram)
std::condition_variable cv_
void handleError(const std::shared_ptr< Telegram > &telegram)
void waitForCapabilities()
Waits for capabilities.
void handleCd(const std::shared_ptr< Telegram > &telegram)
Represents ensemble of (to be constructed) ROS messages, to be handled at once by this class.
void waitForResponse()
Waits for response.
Semaphore responseSemaphore_
void handleTelegram(const std::shared_ptr< Telegram > &telegram)
Called every time a telegram is received.