SMACC2
|
#include <cb_publish_once.hpp>
Public Member Functions | |
CbPublishOnce () | |
template<typename TMessage > | |
CbPublishOnce (const TMessage &data) | |
template<typename TMessage > | |
void | setMessage (const TMessage &data) |
void | onEntry () override |
void | onExit () override |
void | onEntry () override |
void | onExit () override |
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) |
Private Attributes | |
std::function< void()> | deferedPublishFn |
ClRosPublisher * | client_ |
Additional Inherited Members | |
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 28 of file cb_publish_once.hpp.
|
inline |
Definition at line 35 of file cb_publish_once.hpp.
|
inline |
Definition at line 38 of file cb_publish_once.hpp.
References cl_ros_publisher::CbPublishOnce< RosMsgType >::setMessage().
|
inlineoverridevirtual |
Reimplemented from smacc2::SmaccClientBehavior.
Definition at line 49 of file cb_publish_once.hpp.
References cl_ros_publisher::CbPublishOnce< RosMsgType >::deferedPublishFn, and smacc2::ISmaccClientBehavior::requiresClient().
|
inlineoverridevirtual |
Reimplemented from smacc2::SmaccClientBehavior.
Definition at line 56 of file cb_publish_once.hpp.
|
inline |
Definition at line 44 of file cb_publish_once.hpp.
References cl_ros_publisher::CbPublishOnce< RosMsgType >::deferedPublishFn, and cl_ros_publisher::ClRosPublisher::publish().
Referenced by cl_ros_publisher::CbPublishOnce< RosMsgType >::CbPublishOnce().
|
private |
Definition at line 32 of file cb_publish_once.hpp.
|
private |
Definition at line 31 of file cb_publish_once.hpp.
Referenced by cl_ros_publisher::CbPublishOnce< RosMsgType >::onEntry(), and cl_ros_publisher::CbPublishOnce< RosMsgType >::setMessage().