talker
This file is ai generated. Do not edit this file directly. Instead, edit the node source code and run the generate-node-docs command to update this file.
Description
A simple ROS2 node that publishes string messages to the chatter topic at a 1 Hz rate. This demonstrates basic publisher functionality with a timer callback in Python.
Publishers
Topic:
/chatterType:
example_interfaces/msg/StringQoS: Queue size of 10
Description: Publishes “Hello World” messages with an incrementing counter
Example Usage
# Run the talker node
ros2 run demo_nodes_py talker
The talker will publish and log messages in the format:
[INFO] [talker]: Publishing: "Hello World: 0"
[INFO] [talker]: Publishing: "Hello World: 1"
...
To test with a listener:
# Terminal 1: Run talker
ros2 run demo_nodes_py talker
# Terminal 2: Run listener
ros2 run demo_nodes_py listener