module documentation

The Subscription handle: one topic's lifetime and its signals, in one object.

Messages are awaited one at a time or iterated. The handle also reports type-hash mismatches, the publisher count, and the QoS profile with its provenance. It stays the same across a QoS adaptation: the rclpy subscription underneath is re-created while this object, its buffer and its consumers are untouched. The publisher count comes from DDS match events, so the graph poll is not needed for subscribed topics.

The write side is a separate object, SubscriptionSink, held only by the Runtime, so a Component author cannot inject messages. Nothing here imports rclpy.

Class Subscription A live subscription to one ROS2 topic, from RuntimeInterface.subscribe.
Class SubscriptionSink The write side of a Subscription; every method runs on the Runtime's event loop.
Class TypeHashMismatch A publisher whose type hash differs from the one this Runtime built its dataclass against.
Exception TypeHashMismatchWarning A publisher's type hash differs from the one this Runtime built its dataclass against.