Class StringListener
Defined in File string_talker_listener_nodes.hpp
Inheritance Relationships
Base Type
public rclcpp::Node
Class Documentation
-
class StringListener : public rclcpp::Node
Public Functions
-
StringListener(const std::string &topic_name = string_msgs::DEFAULT_TOPIC_NAME, const rclcpp::SubscriptionOptions &subscription_options = rclcpp::SubscriptionOptions())
Standard constructor.
- Parameters:
topic_name – [in] Topic to subscribe to.
subscription_options – [in] SubscriptionOptions to use for the subscription.
-
void initialize()
Initialize the listener node.
-
void start_listening()
Instantiate a Subscription to the chatter topic.
-
StringListener(const std::string &topic_name = string_msgs::DEFAULT_TOPIC_NAME, const rclcpp::SubscriptionOptions &subscription_options = rclcpp::SubscriptionOptions())