class documentation

class QoSProfile:

View In Hierarchy

The matching policies of one endpoint, and nothing else.

The defaults are the middleware's usual values, so a profile written with one keyword is the middleware's own profile with that one change.

Method __post_init__ Refuse a duration that is not a duration.
Method __str__ Return the profile as one line for event texts and logs.
Instance Variable deadline The longest gap, in seconds, between samples that this endpoint promises (offered) or tolerates (requested). FOREVER means no deadline.
Instance Variable durability Whether a publisher keeps its samples for late joiners.
Instance Variable lease Seconds an assertion of liveliness stays good for. FOREVER means no lease.
Instance Variable liveliness How a publisher asserts that it is still alive.
Instance Variable reliability Whether samples are retried until acknowledged.
def __post_init__(self):

Refuse a duration that is not a duration.

Raises
ValueErrorWhen the deadline or the lease is not a positive number of seconds. Zero is refused because rclpy uses it for "middleware default"; write FOREVER instead.
def __str__(self) -> str:

Return the profile as one line for event texts and logs.

deadline: float =

The longest gap, in seconds, between samples that this endpoint promises (offered) or tolerates (requested). FOREVER means no deadline.

durability: Durability =

Whether a publisher keeps its samples for late joiners.

lease: float =

Seconds an assertion of liveliness stays good for. FOREVER means no lease.

liveliness: Liveliness =

How a publisher asserts that it is still alive.

reliability: Reliability =

Whether samples are retried until acknowledged.