rclpy.topic_endpoint_info module
- class rclpy.topic_endpoint_info.TopicEndpointInfo(node_name: str = '', node_namespace: str = '', topic_type: str = '', topic_type_hash: ~rclpy.type_hash.TypeHash = <rclpy.type_hash.TypeHash object>, endpoint_type: ~rclpy.topic_endpoint_info.TopicEndpointTypeEnum = TopicEndpointTypeEnum.INVALID, endpoint_gid: ~typing.List[int] = [], qos_profile: rclpy.qos.QoSProfile = rclpy.qos.QoSPresetProfiles.UNKNOWN.value)
Bases:
object
Information on a topic endpoint.
- property endpoint_gid: List[int]
Get field ‘endpoint_gid’.
- Returns:
endpoint_gid attribute
- property endpoint_type: TopicEndpointTypeEnum
Get field ‘endpoint_type’.
- Returns:
endpoint_type attribute
- property node_name: str
Get field ‘node_name’.
- Returns:
node_name attribute
- property node_namespace: str
Get field ‘node_namespace’.
- Returns:
node_namespace attribute
- property qos_profile: rclpy.qos.QoSProfile
Get field ‘qos_profile’.
- Returns:
qos_profile attribute
- property topic_type: str
Get field ‘topic_type’.
- Returns:
topic_type attribute
- class rclpy.topic_endpoint_info.TopicEndpointTypeEnum(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntEnum
Enum for possible types of topic endpoints.
This enum matches the one defined in rmw/types.h
- INVALID = 0
- PUBLISHER = 1
- SUBSCRIPTION = 2