2Port of ROS2 `rclpy.topic_endpoint_info` for ROS1.
4Partially modified copy from ROS2 `rclpy.topic_endpoint_info`,
5at https://github.com/ros2/rclpy (`rclpy/rclpy/topic_endpoint_info.py`),
6released under the Apache 2.0 License.
8------------------------------------------------------------------------------
9This file is part of rosros - simple unified interface to ROS1 / ROS2.
10Released under the BSD License.
15------------------------------------------------------------------------------
17## @namespace rosros.rclify.topic_endpoint_info
19# Original file copyright notice:
21# Copyright 2016 Open Source Robotics Foundation, Inc.
23# Licensed under the Apache License, Version 2.0 (the "License");
24# you may not use this file except in compliance with the License.
25# You may obtain a copy of the License at
27# http://www.apache.org/licenses/LICENSE-2.0
34from enum
import IntEnum
36from . qos
import QoSPresetProfiles, QoSProfile
40 """Enum for possible types of topic endpoints."""
47 """Information on a topic endpoint."""
60 'Invalid arguments passed to constructor: %r' % kwargs.keys()
72 Get field 'node_name'.
74 :returns: node_name attribute
81 assert isinstance(value, str)
87 Get field 'node_namespace'.
89 :returns: node_namespace attribute
94 @node_namespace.setter
96 assert isinstance(value, str)
102 Get field 'topic_type'.
104 :returns: topic_type attribute
111 assert isinstance(value, str)
117 Get field 'endpoint_type'.
119 :returns: endpoint_type attribute
120 :rtype: TopicEndpointTypeEnum
124 @endpoint_type.setter
126 if isinstance(value, TopicEndpointTypeEnum):
128 elif isinstance(value, int):
136 Get field 'endpoint_gid'.
138 :returns: endpoint_gid attribute
145 assert all(isinstance(x, int)
for x
in value)
151 Get field 'qos_profile'.
153 :returns: qos_profile attribute
160 if isinstance(value, QoSProfile):
162 elif isinstance(value, dict):
168 if not isinstance(other, TopicEndpointInfo):
171 self.__getattribute__(slot) == other.__getattribute__(slot)
180 result +=
'QoS profile:\n'
186 result +=
' Liveliness lease duration: %d nanoseconds' % \
Define Quality of Service policies.
Information on a topic endpoint.
qos_profile
Get field 'qos_profile'.
endpoint_gid(self, value)
endpoint_gid
Get field 'endpoint_gid'.
endpoint_type
Get field 'endpoint_type'.
node_name
Get field 'node_name'.
node_namespace
Get field 'node_namespace'.
node_namespace(self, value)
endpoint_type(self, value)
topic_type
Get field 'topic_type'.
Enum for possible types of topic endpoints.