rclpy.experimental.async_publisher module

class rclpy.experimental.async_publisher.AsyncPublisher(publisher_impl: object, msg_type: Type[MsgT], topic: str, qos_profile: rclpy.qos.QoSProfile, on_destroy: Callable[[AsyncPublisher], None])

Bases: BasePublisher[MsgT]

A publisher on a ROS topic.

Experimental

This API is experimental.

Create a container for a ROS publisher.

Warning

Users should not create a publisher with this constructor, instead they should call Node.create_publisher() or AsyncNode.create_publisher().