Go to the documentation of this file.00001 """autogenerated by genpy from gateway_msgs/ConnectionType.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007
00008 class ConnectionType(genpy.Message):
00009 _md5sum = "65d75f1bb32566bfec48966db2073c81"
00010 _type = "gateway_msgs/ConnectionType"
00011 _has_header = False
00012 _full_text = """# A connection can be 1 of 5 types
00013 string PUBLISHER = publisher
00014 string SUBSCRIBER = subscriber
00015 string SERVICE = service
00016 string ACTION_CLIENT = action_client
00017 string ACTION_SERVER = action_server
00018 string INVALID = invalid
00019
00020 """
00021
00022 PUBLISHER = 'publisher'
00023 SUBSCRIBER = 'subscriber'
00024 SERVICE = 'service'
00025 ACTION_CLIENT = 'action_client'
00026 ACTION_SERVER = 'action_server'
00027 INVALID = 'invalid'
00028
00029 __slots__ = []
00030 _slot_types = []
00031
00032 def __init__(self, *args, **kwds):
00033 """
00034 Constructor. Any message fields that are implicitly/explicitly
00035 set to None will be assigned a default value. The recommend
00036 use is keyword arguments as this is more robust to future message
00037 changes. You cannot mix in-order arguments and keyword arguments.
00038
00039 The available fields are:
00040
00041
00042 :param args: complete set of field values, in .msg order
00043 :param kwds: use keyword arguments corresponding to message field names
00044 to set specific fields.
00045 """
00046 if args or kwds:
00047 super(ConnectionType, self).__init__(*args, **kwds)
00048
00049 def _get_types(self):
00050 """
00051 internal API method
00052 """
00053 return self._slot_types
00054
00055 def serialize(self, buff):
00056 """
00057 serialize message into buffer
00058 :param buff: buffer, ``StringIO``
00059 """
00060 try:
00061 pass
00062 except struct.error as se: self._check_types(se)
00063 except TypeError as te: self._check_types(te)
00064
00065 def deserialize(self, str):
00066 """
00067 unpack serialized message in str into this message instance
00068 :param str: byte array of serialized message, ``str``
00069 """
00070 try:
00071 end = 0
00072 return self
00073 except struct.error as e:
00074 raise genpy.DeserializationError(e)
00075
00076
00077 def serialize_numpy(self, buff, numpy):
00078 """
00079 serialize message with numpy array types into buffer
00080 :param buff: buffer, ``StringIO``
00081 :param numpy: numpy python module
00082 """
00083 try:
00084 pass
00085 except struct.error as se: self._check_types(se)
00086 except TypeError as te: self._check_types(te)
00087
00088 def deserialize_numpy(self, str, numpy):
00089 """
00090 unpack serialized message in str into this message instance using numpy for array types
00091 :param str: byte array of serialized message, ``str``
00092 :param numpy: numpy python module
00093 """
00094 try:
00095 end = 0
00096 return self
00097 except struct.error as e:
00098 raise genpy.DeserializationError(e)
00099
00100 _struct_I = genpy.struct_I