examples_rclpy_executors.talker module

class examples_rclpy_executors.talker.Talker(*args: Any, **kwargs: Any)

Bases: Node

A node with a single publisher.

This class creates a node which regularly publishes messages on a topic. Creating a node by inheriting from Node is recommended because it allows it to be imported and used by other scripts.

timer_callback()
examples_rclpy_executors.talker.main(args=None)

Run a Talker node standalone.

This function is called directly when using an entrypoint. Entrypoints are configured in setup.py. This along with the script installation in setup.cfg allows a talker node to be run with the command ros2 run examples_rclpy_executors talker.

Parameters:

args – Arguments passed in from the command line.