Class StringTalker
- Defined in File string_talker_listener_nodes.hpp 
Inheritance Relationships
Base Type
- public rclcpp::Node
Class Documentation
- 
class StringTalker : public rclcpp::Node
- Public Functions - 
StringTalker(const std::string &topic_name = string_msgs::DEFAULT_TOPIC_NAME, std::chrono::milliseconds publish_period = std::chrono::milliseconds(1000))
- Standard constructor. - Parameters:
- topic_name – [in] Topic to publish chatter messages to. 
- publish_period – [in] Frequency of publishing chatter messages. 
 
 
 - 
void initialize()
- Initialize the publisher. 
 - 
void publish()
- Publish a single message. 
 
- 
StringTalker(const std::string &topic_name = string_msgs::DEFAULT_TOPIC_NAME, std::chrono::milliseconds publish_period = std::chrono::milliseconds(1000))