SMACC2
|
#include <cp_topic_publisher.hpp>
Public Types | |
typedef MessageType | TMessageType |
Public Member Functions | |
CpTopicPublisher (std::string topicname) | |
virtual | ~CpTopicPublisher () |
void | publish (const MessageType &msg) |
void | onInitialize () override |
Public Member Functions inherited from smacc2::ISmaccComponent | |
ISmaccComponent () | |
virtual | ~ISmaccComponent () |
virtual std::string | getName () const |
Public Attributes | |
std::optional< int > | queueSize |
std::optional< rmw_qos_durability_policy_t > | durability |
std::optional< rmw_qos_reliability_policy_t > | reliability |
Private Attributes | |
rclcpp::Publisher< MessageType >::SharedPtr | pub_ |
bool | initialized_ |
std::string | topicName_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
virtual void | onInitialize () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TComponent > | |
void | requiresComponent (TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false) |
template<typename TComponent > | |
void | requiresComponent (std::string name, TComponent *&requiredComponentStorage, bool throwExceptionIfNotExist=false) |
template<typename TClient > | |
void | requiresClient (TClient *&requiredClientStorage) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () const |
ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
ISmaccStateMachine * | stateMachine_ |
ISmaccClient * | owner_ |
Definition at line 34 of file cp_topic_publisher.hpp.
typedef MessageType smacc2::components::CpTopicPublisher< MessageType >::TMessageType |
Definition at line 41 of file cp_topic_publisher.hpp.
|
inline |
Definition at line 43 of file cp_topic_publisher.hpp.
References smacc2::components::CpTopicPublisher< MessageType >::initialized_, and smacc2::components::CpTopicPublisher< MessageType >::topicName_.
|
inlinevirtual |
Definition at line 49 of file cp_topic_publisher.hpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 64 of file cp_topic_publisher.hpp.
|
inline |
Definition at line 51 of file cp_topic_publisher.hpp.
References smacc2::components::CpTopicPublisher< MessageType >::pub_.
std::optional<rmw_qos_durability_policy_t> smacc2::components::CpTopicPublisher< MessageType >::durability |
Definition at line 38 of file cp_topic_publisher.hpp.
|
private |
Definition at line 59 of file cp_topic_publisher.hpp.
Referenced by smacc2::components::CpTopicPublisher< MessageType >::CpTopicPublisher().
|
private |
Definition at line 56 of file cp_topic_publisher.hpp.
Referenced by smacc2::components::CpTopicPublisher< MessageType >::publish().
std::optional<int> smacc2::components::CpTopicPublisher< MessageType >::queueSize |
Definition at line 37 of file cp_topic_publisher.hpp.
std::optional<rmw_qos_reliability_policy_t> smacc2::components::CpTopicPublisher< MessageType >::reliability |
Definition at line 39 of file cp_topic_publisher.hpp.
|
private |
Definition at line 60 of file cp_topic_publisher.hpp.
Referenced by smacc2::components::CpTopicPublisher< MessageType >::CpTopicPublisher().