SMACC
Loading...
Searching...
No Matches
cl_keyboard.cpp
Go to the documentation of this file.
2
3namespace cl_keyboard {
5 initialized_ = false;
6 topicName = "/keyboard_unicode";
7}
8
10{
11
12}
13
15
16 SmaccSubscriberClient<std_msgs::UInt16>::initialize();
17
18 if (!this->initialized_) {
20 this->initialized_ = true;
21 }
22}
23
24void ClKeyboard::onKeyboardMessage(const std_msgs::UInt16 &unicode_keychar) {
25
26 postEventKeyPress(unicode_keychar);
27}
28} // namespace cl_keyboard
std::function< void(std_msgs::UInt16)> postEventKeyPress
Definition: cl_keyboard.h:166
virtual void initialize() override
Definition: cl_keyboard.cpp:14
void onKeyboardMessage(const std_msgs::UInt16 &unicode_keychar)
Definition: cl_keyboard.cpp:24
boost::signals2::connection onMessageReceived(void(T::*callback)(const std_msgs::UInt16 &), T *object)