SMACC2
Loading...
Searching...
No Matches
cl_keyboard::ClKeyboard Class Reference

#include <cl_keyboard.hpp>

Inheritance diagram for cl_keyboard::ClKeyboard:
Inheritance graph
Collaboration diagram for cl_keyboard::ClKeyboard:
Collaboration graph

Public Member Functions

 ClKeyboard ()
 
virtual ~ClKeyboard ()
 
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
- 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 ()
 
ISmaccStateMachinegetStateMachine ()
 
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)
 
const std::vector< std::shared_ptr< ISmaccComponent > > & iterateComponents () const
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClient
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 
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_
 

Detailed Description

Definition at line 34 of file cl_keyboard.hpp.

Constructor & Destructor Documentation

◆ ClKeyboard()

cl_keyboard::ClKeyboard::ClKeyboard ( )

Definition at line 25 of file cl_keyboard.cpp.

25{}

◆ ~ClKeyboard()

cl_keyboard::ClKeyboard::~ClKeyboard ( )
virtual

Definition at line 27 of file cl_keyboard.cpp.

27{}

Member Function Documentation

◆ onComponentInitialization()

template<typename TOrthogonal , typename TClient >
void cl_keyboard::ClKeyboard::onComponentInitialization ( )
inline

Definition at line 42 of file cl_keyboard.hpp.

45 {
46 // for listener we use dependency injection pattern where we reference the CpTopicSubscriber inside the smacc core
47 // this would be the basic subscription component to the topic
48 // we use this to gain the topic funcionality interated with SMACC and that post smacc events for transitions
49 // we are using it to handle ros topic messages reception and notifying other components in the client
50 this->createComponent<
52 ClKeyboard>("/keyboard_unicode");
53
54 // this keyboard subscriber component requires the first subscriber component
55 // it is notified by the CpTopicSubscriber and processes the messages to decide with keyboard event must be posted and then post it
57 }
SmaccComponentType * createComponent(TArgs... targs)

References smacc2::ISmaccClient::createComponent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: