Go to the documentation of this file.00001 """autogenerated by genpy from gateway_comms/Result.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 Result(genpy.Message):
00009 _md5sum = "b28fba5d8d49ef8a4a566fa8d21c545e"
00010 _type = "gateway_comms/Result"
00011 _has_header = False
00012 _full_text = """# Error types for the gateway ros api
00013
00014 # General
00015 int8 SUCCESS = 0
00016 int8 NO_HUB_CONNECTION = 1
00017
00018 # Connection
00019 int8 HUB_CONNECTION_ALREADY_EXISTS = 11
00020 int8 HUB_CONNECTION_UNRESOLVABLE = 12
00021 int8 HUB_CONNECTION_BLACKLISTED = 13
00022 int8 HUB_CONNECTION_FAILED = 14
00023 int8 HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST = 15
00024
00025 # Flipping
00026 int8 FLIP_NO_TO_SELF = 21
00027 int8 FLIP_RULE_ALREADY_EXISTS = 22
00028 int8 FLIP_PATTERN_ALREDY_EXISTS = 23
00029 int8 FLIP_REMOTE_GATEWAY_FIREWALLING = 24
00030 int8 FLIP_REMOTE_GATEWAY_NOT_CONNECTED = 25
00031
00032 # Advertise
00033 int8 ADVERTISEMENT_EXISTS = 31
00034 int8 ADVERTISEMENT_NOT_FOUND = 32
00035 int8 UNKNOWN_ADVERTISEMENT_ERROR = 39
00036
00037 # Pulling
00038 int8 PULL_RULE_ALREADY_EXISTS = 41
00039
00040 """
00041
00042 SUCCESS = 0
00043 NO_HUB_CONNECTION = 1
00044 HUB_CONNECTION_ALREADY_EXISTS = 11
00045 HUB_CONNECTION_UNRESOLVABLE = 12
00046 HUB_CONNECTION_BLACKLISTED = 13
00047 HUB_CONNECTION_FAILED = 14
00048 HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST = 15
00049 FLIP_NO_TO_SELF = 21
00050 FLIP_RULE_ALREADY_EXISTS = 22
00051 FLIP_PATTERN_ALREDY_EXISTS = 23
00052 FLIP_REMOTE_GATEWAY_FIREWALLING = 24
00053 FLIP_REMOTE_GATEWAY_NOT_CONNECTED = 25
00054 ADVERTISEMENT_EXISTS = 31
00055 ADVERTISEMENT_NOT_FOUND = 32
00056 UNKNOWN_ADVERTISEMENT_ERROR = 39
00057 PULL_RULE_ALREADY_EXISTS = 41
00058
00059 __slots__ = []
00060 _slot_types = []
00061
00062 def __init__(self, *args, **kwds):
00063 """
00064 Constructor. Any message fields that are implicitly/explicitly
00065 set to None will be assigned a default value. The recommend
00066 use is keyword arguments as this is more robust to future message
00067 changes. You cannot mix in-order arguments and keyword arguments.
00068
00069 The available fields are:
00070
00071
00072 :param args: complete set of field values, in .msg order
00073 :param kwds: use keyword arguments corresponding to message field names
00074 to set specific fields.
00075 """
00076 if args or kwds:
00077 super(Result, self).__init__(*args, **kwds)
00078
00079 def _get_types(self):
00080 """
00081 internal API method
00082 """
00083 return self._slot_types
00084
00085 def serialize(self, buff):
00086 """
00087 serialize message into buffer
00088 :param buff: buffer, ``StringIO``
00089 """
00090 try:
00091 pass
00092 except struct.error as se: self._check_types(se)
00093 except TypeError as te: self._check_types(te)
00094
00095 def deserialize(self, str):
00096 """
00097 unpack serialized message in str into this message instance
00098 :param str: byte array of serialized message, ``str``
00099 """
00100 try:
00101 end = 0
00102 return self
00103 except struct.error as e:
00104 raise genpy.DeserializationError(e)
00105
00106
00107 def serialize_numpy(self, buff, numpy):
00108 """
00109 serialize message with numpy array types into buffer
00110 :param buff: buffer, ``StringIO``
00111 :param numpy: numpy python module
00112 """
00113 try:
00114 pass
00115 except struct.error as se: self._check_types(se)
00116 except TypeError as te: self._check_types(te)
00117
00118 def deserialize_numpy(self, str, numpy):
00119 """
00120 unpack serialized message in str into this message instance using numpy for array types
00121 :param str: byte array of serialized message, ``str``
00122 :param numpy: numpy python module
00123 """
00124 try:
00125 end = 0
00126 return self
00127 except struct.error as e:
00128 raise genpy.DeserializationError(e)
00129
00130 _struct_I = genpy.struct_I