SMACC2
|
#include <cb_wait_topic_message.hpp>
Public Member Functions | |
CbWaitTopicMessage (const char *topicname, std::function< bool(const TMessage &)> guardFunction=nullptr) | |
virtual | ~CbWaitTopicMessage () |
void | onEntry () override |
void | onMessageReceived (const typename TMessage::SharedPtr msg) |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual | ~SmaccAsyncClientBehavior () |
template<typename TCallback , typename T > | |
boost::signals2::connection | onSuccess (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFinished (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFailure (TCallback callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage) |
Protected Attributes | |
bool | success = false |
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 () |
virtual void | dispose () override |
bool | isShutdownRequested () |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
virtual void | onEntry () |
virtual void | onExit () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () |
virtual rclcpp::Logger | getLogger () |
Definition at line 36 of file cb_wait_topic_message.hpp.
|
inline |
Definition at line 39 of file cb_wait_topic_message.hpp.
References smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::guardFn_, and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::topicname_.
|
inlinevirtual |
Definition at line 46 of file cb_wait_topic_message.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 48 of file cb_wait_topic_message.hpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getNode(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::sub_, and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::topicname_.
|
inline |
Definition at line 69 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 >::onEntry().
|
protected |
Definition at line 82 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::CbWaitTopicMessage(), and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived().
|
protected |
Definition at line 81 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry().
|
protected |
Definition at line 80 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived().
|
protected |
Definition at line 83 of file cb_wait_topic_message.hpp.
Referenced by smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::CbWaitTopicMessage(), and smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry().