ros2_snapshot.core.specifications.node_specification module

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

class ros2_snapshot.core.specifications.node_specification.NodeSpecification(*args: Any, **kwargs: Any)

Bases: _EntityMetamodel

Metamodel for ROS Node specifications.

action_clients: Dict[str, str] | List[str] | None = None
action_servers: Dict[str, str] | List[str] | None = None
file_path: str | None = None
package: str | None = None
parameters: Dict[str, str] | List[str] | None = None
published_topics: Dict[str, str] | List[str] | None = None
services_provided: Dict[str, str] | List[str] | None = None
source: str | List[str] | None = None
subscribed_topics: Dict[str, str] | List[str] | None = None
validated: bool = False
yaml_tag: ClassVar[str] = '!NodeSpecification'
class ros2_snapshot.core.specifications.node_specification.NodeSpecificationBank(*args: Any, **kwargs: Any)

Bases: _BankMetamodel

Metamodel for Bank of ROS Node specifications.

HUMAN_OUTPUT_NAME: ClassVar[str] = 'NodeSpecs:'
entity_class(name)

Class of entity given bank type.

Returns:

instance of entity class definition

yaml_tag: ClassVar[str] = '!NodeSpecBank'