Template Class SickWaitForMessageHandler

Class Documentation

template<typename HandleType, class MsgType>
class SickWaitForMessageHandler

Public Types

typedef SickWaitForMessageHandler<HandleType, MsgType> *SickWaitForMessageHandlerPtr

Public Functions

inline bool waitForNextMessage(MsgType &msg, double timeout_sec)

Public Static Functions

static inline void messageCallback(HandleType node, const MsgType *msg)
static inline void addWaitForMessageHandlerHandler(SickWaitForMessageHandlerPtr handler)
static inline void removeWaitForMessageHandlerHandler(SickWaitForMessageHandlerPtr handler)

Protected Functions

inline void message_callback(HandleType node, const MsgType *msg)

Protected Attributes

bool m_message_valid = false
MsgType m_message
std::mutex m_message_mutex
std::condition_variable m_message_cond

Protected Static Attributes

static std::list<SickWaitForMessageHandler<HandleType, MsgType>*> s_wait_for_message_handler_list
static std::mutex s_wait_for_message_handler_mutex