|
SMACC2
|
#include <cb_wait_topic_message.hpp>


Public Member Functions | |
| CbWaitTopicMessage (const char *topicname, std::function< bool(const TMessage &)> guardFunction=nullptr) | |
| virtual | ~CbWaitTopicMessage () |
| void | runtimeConfigure () override |
| void | onEntry () override |
| void | onMessageReceived (const TMessage &msg) |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| SmaccAsyncClientBehavior ()=default | |
| ~SmaccAsyncClientBehavior () override | |
| SmaccAsyncClientBehavior (const SmaccAsyncClientBehavior &)=delete | |
| SmaccAsyncClientBehavior & | operator= (const SmaccAsyncClientBehavior &)=delete |
| SmaccAsyncClientBehavior (SmaccAsyncClientBehavior &&)=delete | |
| SmaccAsyncClientBehavior & | operator= (SmaccAsyncClientBehavior &&)=delete |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallback callback, T *object) |
| void | requestForceFinish () |
| void | executeOnEntry () override |
| void | executeOnExit () override |
| void | waitOnEntryThread (bool requestFinish) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallbackMethod callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
| ISmaccClientBehavior () | |
| virtual | ~ISmaccClientBehavior () |
| ISmaccClientBehavior (const ISmaccClientBehavior &)=delete | |
| ISmaccClientBehavior & | operator= (const ISmaccClientBehavior &)=delete |
| ISmaccClientBehavior (ISmaccClientBehavior &&)=delete | |
| ISmaccClientBehavior & | operator= (ISmaccClientBehavior &&)=delete |
| ISmaccStateMachine * | getStateMachine () |
| std::string | getName () const |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (const std::string &name, SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | onExit () |
Protected Types | |
| using | MessageSignal = smacc2::SmaccSignal<void(const TMessage &)> |
Protected Attributes | |
| bool | success = false |
| std::shared_ptr< MessageSignal > | signal_ |
| rclcpp::Subscription< TMessage >::SharedPtr | sub_ |
| std::function< bool(const TMessage &)> | guardFn_ |
| std::string | topicname_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| void | postSuccessEvent () |
| void | postFailureEvent () |
| void | dispose () override |
| bool | isShutdownRequested () |
| onEntry is executed in a new thread. However the current state cannot be left until the onEntry thread finishes. This flag can be checked from the onEntry thread to force finishing the thread. | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| ISmaccState * | getCurrentState () |
| void | postInitializationFailureEvent (const std::string &what) |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
| std::string | getTraceStateName () const |
| std::string | getTraceOrthogonalName () const |
Definition at line 38 of file cb_wait_topic_message.hpp.
|
protected |
Definition at line 86 of file cb_wait_topic_message.hpp.
|
inline |
Definition at line 41 of file cb_wait_topic_message.hpp.
|
inlinevirtual |
Definition at line 47 of file cb_wait_topic_message.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 58 of file cb_wait_topic_message.hpp.
References smacc2::introspection::demangledTypeName(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getNode(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::signal_, smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::sub_, and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::topicname_.

|
inline |
Definition at line 75 of file cb_wait_topic_message.hpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::guardFn_, smacc2::SmaccAsyncClientBehavior::postSuccessEvent(), and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::success.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::runtimeConfigure().


|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 51 of file cb_wait_topic_message.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClientBehavior::getStateMachine(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived(), and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::signal_.

|
protected |
Definition at line 91 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived().
|
protected |
Definition at line 89 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry(), and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::runtimeConfigure().
|
protected |
Definition at line 90 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry().
|
protected |
Definition at line 88 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived().
|
protected |
Definition at line 92 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry().