SMACC2
|
#include <cb_default_publish_loop.hpp>
Public Member Functions | |
CbDefaultPublishLoop () | |
template<typename TMessage > | |
CbDefaultPublishLoop (const TMessage &data) | |
template<typename TMessage > | |
void | setMessage (const TMessage &data) |
void | onEntry () override |
virtual void | update () |
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, bool throwExceptionIfNotExist=false) |
virtual void | onEntry () |
virtual void | onExit () |
virtual void | executeOnEntry () |
virtual void | executeOnExit () |
Public Member Functions inherited from smacc2::ISmaccUpdatable | |
ISmaccUpdatable () | |
ISmaccUpdatable (rclcpp::Duration duration) | |
void | executeUpdate (rclcpp::Node::SharedPtr node) |
void | setUpdatePeriod (rclcpp::Duration duration) |
Private Attributes | |
std::function< void()> | deferedPublishFn_ |
ClRosPublisher * | client_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
virtual void | update ()=0 |
Definition at line 26 of file cb_default_publish_loop.hpp.
|
inline |
Definition at line 33 of file cb_default_publish_loop.hpp.
|
inline |
Definition at line 36 of file cb_default_publish_loop.hpp.
References setMessage().
|
inlineoverridevirtual |
Reimplemented from smacc2::SmaccClientBehavior.
Definition at line 47 of file cb_default_publish_loop.hpp.
References smacc2::ISmaccClientBehavior::requiresClient().
|
inlineoverridevirtual |
Reimplemented from smacc2::SmaccClientBehavior.
Definition at line 57 of file cb_default_publish_loop.hpp.
|
inline |
Definition at line 42 of file cb_default_publish_loop.hpp.
References deferedPublishFn_, and cl_ros_publisher::ClRosPublisher::publish().
Referenced by CbDefaultPublishLoop().
|
inlinevirtual |
Implements smacc2::ISmaccUpdatable.
Definition at line 49 of file cb_default_publish_loop.hpp.
References deferedPublishFn_.
|
private |
Definition at line 30 of file cb_default_publish_loop.hpp.
|
private |
Definition at line 29 of file cb_default_publish_loop.hpp.
Referenced by setMessage(), and update().