class documentation

class TransformConfig:

View In Hierarchy

Where this Machine reads TF from, and how often the frame network is sampled.

One Runtime is one Domain ID and one frame network, and one Machine runs one poll over the ownership partition of every declared head. So these values are declared once here, not per object. A ~opensmi.ros2.server.bindings.TFBinding keeps what is true of its object: head frame, exclusions, alternatives. Reached as ROS2Config.transforms; in the settings file:

[transforms]
path = "/robot/tf"
static_path = "/robot/tf_static"
interval = 0.5
quiet_after = 2.0
Method __post_init__ Refuse settings that contradict themselves.
Instance Variable depth How many messages each of the two subscriptions buffers.
Instance Variable interval Seconds between polls of the frame network. Inward is a poll, not a write per message, because /tf carries one message per publisher per control cycle.
Instance Variable path The transform topic, /tf unless remapped.
Instance Variable quiet_after Seconds a frame may go unpublished before its Location reads BadNoCommunication (see ~opensmi.ros2.server.status.transform_status). A static frame is exempt, so this only has to clear the slowest moving publisher.
Instance Variable static_path The static transform topic, always read as well. When this Machine publishes a frame of its own there, it uses ~opensmi.ros2.runtime.tf.TF_STATIC_QOS. What it requests on both topics is discovered from the publishers.
Property topics Return both transform topics, which is what a reader of these settings subscribes to.
def __post_init__(self):

Refuse settings that contradict themselves.

Raises
DeclarationErrorWhen either topic is unnamed, both name one topic, the subscriptions buffer nothing, or the poll period or the staleness window is not positive.
depth: int =

How many messages each of the two subscriptions buffers.

interval: float =

Seconds between polls of the frame network. Inward is a poll, not a write per message, because /tf carries one message per publisher per control cycle.

path: str =

The transform topic, /tf unless remapped.

quiet_after: float =

Seconds a frame may go unpublished before its Location reads BadNoCommunication (see ~opensmi.ros2.server.status.transform_status). A static frame is exempt, so this only has to clear the slowest moving publisher.

static_path: str =

The static transform topic, always read as well. When this Machine publishes a frame of its own there, it uses ~opensmi.ros2.runtime.tf.TF_STATIC_QOS. What it requests on both topics is discovered from the publishers.

@property
topics: tuple[str, str] =

Return both transform topics, which is what a reader of these settings subscribes to.