SMACC
|
#include <cl_keyboard.h>
Public Member Functions | |
template<typename T > | |
void | OnKeyPress (void(T::*callback)(char keypress), T *object) |
ClKeyboard () | |
virtual | ~ClKeyboard () |
virtual void | initialize () override |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
void | onKeyboardMessage (const std_msgs::UInt16 &unicode_keychar) |
template<typename TEv > | |
void | postKeyEvent () |
Public Member Functions inherited from smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 > | |
SmaccSubscriberClient () | |
SmaccSubscriberClient (std::string topicname) | |
virtual | ~SmaccSubscriberClient () |
boost::signals2::connection | onMessageReceived (void(T::*callback)(const std_msgs::UInt16 &), T *object) |
boost::signals2::connection | onFirstMessageReceived (void(T::*callback)(const std_msgs::UInt16 &), T *object) |
void | onOrthogonalAllocation () |
virtual void | initialize () |
Public Member Functions inherited from smacc::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | initialize () |
virtual std::string | getName () const |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
virtual smacc::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
Public Attributes | |
smacc::SmaccSignal< void(char keypress)> | OnKeyPress_ |
std::function< void(std_msgs::UInt16)> | postEventKeyPress |
Public Attributes inherited from smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 > | |
boost::optional< std::string > | topicName |
boost::optional< int > | queueSize |
smacc::SmaccSignal< void(const std_msgs::UInt16 &)> | onFirstMessageReceived_ |
smacc::SmaccSignal< void(const std_msgs::UInt16 &)> | onMessageReceived_ |
std::function< void(const std_msgs::UInt16 &)> | postMessageEvent |
std::function< void(const std_msgs::UInt16 &)> | postInitialMessageEvent |
Private Attributes | |
bool | initialized_ |
Additional Inherited Members | |
Public Types inherited from smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 > | |
typedef std_msgs::UInt16 | TMessageType |
Protected Member Functions inherited from smacc::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
void | setOrthogonal (ISmaccOrthogonal *orthogonal) |
Protected Attributes inherited from smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 > | |
ros::NodeHandle | nh_ |
Protected Attributes inherited from smacc::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > | components_ |
Definition at line 148 of file cl_keyboard.h.
cl_keyboard::ClKeyboard::ClKeyboard | ( | ) |
Definition at line 4 of file cl_keyboard.cpp.
References initialized_, and smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 >::topicName.
|
virtual |
Definition at line 9 of file cl_keyboard.cpp.
|
overridevirtual |
Reimplemented from smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 >.
Definition at line 14 of file cl_keyboard.cpp.
References initialized_, onKeyboardMessage(), and smacc::client_bases::SmaccSubscriberClient< std_msgs::UInt16 >::onMessageReceived().
void cl_keyboard::ClKeyboard::onKeyboardMessage | ( | const std_msgs::UInt16 & | unicode_keychar | ) |
Definition at line 24 of file cl_keyboard.cpp.
References postEventKeyPress.
Referenced by initialize().
|
inline |
Definition at line 154 of file cl_keyboard.h.
References smacc::ISmaccStateMachine::createSignalConnection(), and smacc::ISmaccClient::getStateMachine().
Referenced by cl_keyboard::CbDefaultKeyboardBehavior::onEntry().
|
inline |
Definition at line 169 of file cl_keyboard.h.
References OnKeyPress_, and postEventKeyPress.
|
inline |
Definition at line 237 of file cl_keyboard.h.
References smacc::introspection::demangleSymbol().
|
private |
Definition at line 244 of file cl_keyboard.h.
Referenced by ClKeyboard(), and initialize().
smacc::SmaccSignal<void(char keypress)> cl_keyboard::ClKeyboard::OnKeyPress_ |
Definition at line 151 of file cl_keyboard.h.
Referenced by onOrthogonalAllocation().
std::function<void(std_msgs::UInt16)> cl_keyboard::ClKeyboard::postEventKeyPress |
Definition at line 166 of file cl_keyboard.h.
Referenced by onKeyboardMessage(), and onOrthogonalAllocation().