ros2topic.verb.pub module
- class ros2topic.verb.pub.PubVerb
Bases:
VerbExtension
Publish a message to a topic.
- add_arguments(parser, cli_name)
- main(*, args)
- ros2topic.verb.pub.main(args)
- ros2topic.verb.pub.nonnegative_int(inval)
- ros2topic.verb.pub.publisher(node: rclpy.node.Node, message_type: MsgType, topic_name: str, values: dict, period: float, print_nth: int, times: int, wait_matching_subscriptions: int, max_wait_time: float | None, qos_profile: rclpy.qos.QoSProfile, keep_alive: float) str | None
Initialize a node with a single publisher and run its publish loop (maybe only once).