SMACC2
|
#include <cl_keyboard.hpp>
Public Member Functions | |
ClKeyboard () | |
virtual | ~ClKeyboard () |
virtual void | onInitialize () override |
template<typename T > | |
void | OnKeyPress (void(T::*callback)(char keypress), T *object) |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
void | onKeyboardMessage (const std_msgs::msg::UInt16 &unicode_keychar) |
template<typename TEv > | |
void | postKeyEvent () |
Public Member Functions inherited from smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 > | |
SmaccSubscriberClient () | |
SmaccSubscriberClient (std::string topicname) | |
virtual | ~SmaccSubscriberClient () |
boost::signals2::connection | onMessageReceived (void(T::*callback)(const std_msgs::msg::UInt16 &), T *object) |
boost::signals2::connection | onFirstMessageReceived (void(T::*callback)(const std_msgs::msg::UInt16 &), T *object) |
void | onOrthogonalAllocation () |
Public Member Functions inherited from smacc2::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | onInitialize () |
virtual std::string | getName () const |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
template<typename TComponent > | |
TComponent * | getComponent (int index) |
virtual smacc2::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) |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
Public Attributes | |
smacc2::SmaccSignal< void(char keypress)> | OnKeyPress_ |
std::function< void(std_msgs::msg::UInt16)> | postEventKeyPress |
Public Attributes inherited from smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 > | |
std::optional< std::string > | topicName |
std::optional< int > | queueSize |
smacc2::SmaccSignal< void(const std_msgs::msg::UInt16 &)> | onFirstMessageReceived_ |
smacc2::SmaccSignal< void(const std_msgs::msg::UInt16 &)> | onMessageReceived_ |
std::function< void(const std_msgs::msg::UInt16 &)> | postMessageEvent |
std::function< void(const std_msgs::msg::UInt16 &)> | postInitialMessageEvent |
Private Attributes | |
bool | initialized_ |
Additional Inherited Members | |
Public Types inherited from smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 > | |
typedef std_msgs::msg::UInt16 | TMessageType |
Protected Member Functions inherited from smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 > | |
void | onInitialize () override |
Protected Member Functions inherited from smacc2::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) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Protected Attributes inherited from smacc2::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Definition at line 162 of file cl_keyboard.hpp.
cl_keyboard::ClKeyboard::ClKeyboard | ( | ) |
Definition at line 19 of file cl_keyboard.cpp.
References initialized_, and smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 >::topicName.
|
virtual |
Definition at line 25 of file cl_keyboard.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 27 of file cl_keyboard.cpp.
References initialized_, onKeyboardMessage(), and smacc2::client_bases::SmaccSubscriberClient< std_msgs::msg::UInt16 >::onMessageReceived().
void cl_keyboard::ClKeyboard::onKeyboardMessage | ( | const std_msgs::msg::UInt16 & | unicode_keychar | ) |
Definition at line 38 of file cl_keyboard.cpp.
References postEventKeyPress.
Referenced by onInitialize().
|
inline |
Definition at line 172 of file cl_keyboard.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccClient::getStateMachine().
Referenced by cl_keyboard::CbDefaultKeyboardBehavior::onEntry().
|
inline |
Definition at line 181 of file cl_keyboard.hpp.
References smacc2::ISmaccClient::getLogger(), OnKeyPress_, and postEventKeyPress.
|
inline |
Definition at line 251 of file cl_keyboard.hpp.
References smacc2::introspection::demangleSymbol(), and smacc2::ISmaccClient::getLogger().
|
private |
Definition at line 259 of file cl_keyboard.hpp.
Referenced by ClKeyboard(), and onInitialize().
smacc2::SmaccSignal<void(char keypress)> cl_keyboard::ClKeyboard::OnKeyPress_ |
Definition at line 169 of file cl_keyboard.hpp.
Referenced by onOrthogonalAllocation().
std::function<void(std_msgs::msg::UInt16)> cl_keyboard::ClKeyboard::postEventKeyPress |
Definition at line 178 of file cl_keyboard.hpp.
Referenced by onKeyboardMessage(), and onOrthogonalAllocation().