ros2_snapshot.core.deployments.topic module

Metamodels used to model ROS Topics and the Banks that contain them.

class ros2_snapshot.core.deployments.topic.Topic(*args: Any, **kwargs: Any)

Bases: _EntityMetamodel

Metamodel for ROS Topics.

add_to_dot_graph(graph)

Add the ROS Entity to a DOT Graph.

Parameters:

graph (graphviz.Digraph) – the DOT Graph to add the ROS Entity to

construct_type: str | None = None
endpoint_type: str | None = None
publisher_node_names: Set[str] | List[str] | None = None
qos_profile: Any | None = None
subscriber_node_names: Set[str] | List[str] | None = None
topic_hash: str | None = None
yaml_tag: ClassVar[str] = '!Topic'
class ros2_snapshot.core.deployments.topic.TopicBank(*args: Any, **kwargs: Any)

Bases: _BankMetamodel

Metamodel for Bank of ROS Topics.

HUMAN_OUTPUT_NAME = 'Topics:'
entity_class(name)

Return class of entity given bank type.

Returns:

instance of entity class definition

yaml_tag: ClassVar[str] = '!TopicBank'