Template Class PublisherState
- Defined in File publisher_state.hpp 
Inheritance Relationships
Base Type
- public yasmin::State
Class Documentation
- 
template<typename MsgT>
 class PublisherState : public yasmin::State
- Template class to publish ROS 2 messages. - This class provides functionality to publish to a ROS 2 topic of type - MsgTand create a custom messages.- Template Parameters:
- MsgT – The message type of the topic to publish to. 
 - Public Functions - Construct a new PublisherState with ROS 2 node and specific QoS. - Parameters:
- topic_name – The name of the topic to monitor. 
- create_message_handler – A callback handler to create messages. 
- qos – Quality of Service settings for the topic. 
 
 
 - Construct a new PublisherState with ROS 2 node and specific QoS. - Parameters:
- node – The ROS 2 node. 
- topic_name – The name of the topic to monitor. 
- create_message_handler – A callback handler to create messages. 
- qos – Quality of Service settings for the topic. 
 
 
 - Execute the publishing operation. - Parameters:
- blackboard – A shared pointer to the blackboard for data storage. 
- Returns:
- A string outcome indicating the result of the monitoring operation. 
 
 - Protected Attributes - 
rclcpp::Node::SharedPtr node_
- Shared pointer to the ROS 2 node.