_RemoteGatewayInfo.py
Go to the documentation of this file.
00001 """autogenerated by genpy from gateway_msgs/RemoteGatewayInfoRequest.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 RemoteGatewayInfoRequest(genpy.Message):
00009   _md5sum = "e005eaac1f4b29980f211758e562aa6e"
00010   _type = "gateway_msgs/RemoteGatewayInfoRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 string[] gateways
00015 
00016 """
00017   __slots__ = ['gateways']
00018   _slot_types = ['string[]']
00019 
00020   def __init__(self, *args, **kwds):
00021     """
00022     Constructor. Any message fields that are implicitly/explicitly
00023     set to None will be assigned a default value. The recommend
00024     use is keyword arguments as this is more robust to future message
00025     changes.  You cannot mix in-order arguments and keyword arguments.
00026 
00027     The available fields are:
00028        gateways
00029 
00030     :param args: complete set of field values, in .msg order
00031     :param kwds: use keyword arguments corresponding to message field names
00032     to set specific fields.
00033     """
00034     if args or kwds:
00035       super(RemoteGatewayInfoRequest, self).__init__(*args, **kwds)
00036       #message fields cannot be None, assign default values for those that are
00037       if self.gateways is None:
00038         self.gateways = []
00039     else:
00040       self.gateways = []
00041 
00042   def _get_types(self):
00043     """
00044     internal API method
00045     """
00046     return self._slot_types
00047 
00048   def serialize(self, buff):
00049     """
00050     serialize message into buffer
00051     :param buff: buffer, ``StringIO``
00052     """
00053     try:
00054       length = len(self.gateways)
00055       buff.write(_struct_I.pack(length))
00056       for val1 in self.gateways:
00057         length = len(val1)
00058         if python3 or type(val1) == unicode:
00059           val1 = val1.encode('utf-8')
00060           length = len(val1)
00061         buff.write(struct.pack('<I%ss'%length, length, val1))
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       start = end
00073       end += 4
00074       (length,) = _struct_I.unpack(str[start:end])
00075       self.gateways = []
00076       for i in range(0, length):
00077         start = end
00078         end += 4
00079         (length,) = _struct_I.unpack(str[start:end])
00080         start = end
00081         end += length
00082         if python3:
00083           val1 = str[start:end].decode('utf-8')
00084         else:
00085           val1 = str[start:end]
00086         self.gateways.append(val1)
00087       return self
00088     except struct.error as e:
00089       raise genpy.DeserializationError(e) #most likely buffer underfill
00090 
00091 
00092   def serialize_numpy(self, buff, numpy):
00093     """
00094     serialize message with numpy array types into buffer
00095     :param buff: buffer, ``StringIO``
00096     :param numpy: numpy python module
00097     """
00098     try:
00099       length = len(self.gateways)
00100       buff.write(_struct_I.pack(length))
00101       for val1 in self.gateways:
00102         length = len(val1)
00103         if python3 or type(val1) == unicode:
00104           val1 = val1.encode('utf-8')
00105           length = len(val1)
00106         buff.write(struct.pack('<I%ss'%length, length, val1))
00107     except struct.error as se: self._check_types(se)
00108     except TypeError as te: self._check_types(te)
00109 
00110   def deserialize_numpy(self, str, numpy):
00111     """
00112     unpack serialized message in str into this message instance using numpy for array types
00113     :param str: byte array of serialized message, ``str``
00114     :param numpy: numpy python module
00115     """
00116     try:
00117       end = 0
00118       start = end
00119       end += 4
00120       (length,) = _struct_I.unpack(str[start:end])
00121       self.gateways = []
00122       for i in range(0, length):
00123         start = end
00124         end += 4
00125         (length,) = _struct_I.unpack(str[start:end])
00126         start = end
00127         end += length
00128         if python3:
00129           val1 = str[start:end].decode('utf-8')
00130         else:
00131           val1 = str[start:end]
00132         self.gateways.append(val1)
00133       return self
00134     except struct.error as e:
00135       raise genpy.DeserializationError(e) #most likely buffer underfill
00136 
00137 _struct_I = genpy.struct_I
00138 """autogenerated by genpy from gateway_msgs/RemoteGatewayInfoResponse.msg. Do not edit."""
00139 import sys
00140 python3 = True if sys.hexversion > 0x03000000 else False
00141 import genpy
00142 import struct
00143 
00144 import gateway_msgs.msg
00145 
00146 class RemoteGatewayInfoResponse(genpy.Message):
00147   _md5sum = "303a0993450751ffdd331454ee056fe0"
00148   _type = "gateway_msgs/RemoteGatewayInfoResponse"
00149   _has_header = False #flag to mark the presence of a Header object
00150   _full_text = """RemoteGateway[] gateways
00151 
00152 
00153 ================================================================================
00154 MSG: gateway_msgs/RemoteGateway
00155 ###### Gateway information ######
00156 string name
00157 string ip
00158 #TODO blocking status,health
00159 bool firewall
00160 
00161 ###### Public Interface ######
00162 
00163 Rule[] public_interface
00164 
00165 
00166 ###### Flipped Interface ######
00167 
00168 # Flipped and pulled interfaces would be useful for debugging 
00169 #    https://github.com/robotics-in-concert/rocon_multimaster/issues/84
00170 
00171 RemoteRule[] flipped_interface
00172 RemoteRule[] pulled_interface
00173 
00174 ###### Foreign Interface ######
00175 
00176 # Q) Should we show these?
00177 # A) Probably not, in the overall scheme of things, 
00178 #    it doubles up the information from above
00179 
00180 # RemoteRule[] flipped_in_connections
00181 # RemoteRule[] pulled_connections
00182 
00183 ================================================================================
00184 MSG: gateway_msgs/Rule
00185 # Standard gateway connection rule
00186 
00187 # type of connection (from gateway_msgs.msg.Connection)
00188 string type
00189 
00190 # this is the topic/service name or the action base name (a regex is supported)
00191 string name 
00192 
00193 # (optional) an optional node name can be provided. if node name is not provided
00194 # then all nodes are matched (also supports regex)
00195 string node
00196 
00197 ================================================================================
00198 MSG: gateway_msgs/RemoteRule
00199 # Definition for a flip. It represents either:
00200 #
00201 # 1) an existing flipped connection (from the local gateway)
00202 # 2) a rule that is put on a watchlist
00203 
00204 # The target recipient of the flip
00205 string gateway
00206 
00207 # Connection has the following parameters that need setting
00208 # - name : fully qualified name of the connection (str)
00209 # - type : connection type (str)
00210 #  
00211 # Use one of the types defined in Connection string constants:
00212 #     (publisher, subscriber, service, action_client, action_server)
00213 #
00214 # - node : name of the node it originates from (str)(optional)
00215 #
00216 # Node name is necessary, for instance, if you have multiple subscribers
00217 # publishing to a single topic. Most of the time it is not necessary,
00218 # but in some cases it helps refine the rule. It helps refine the rule.
00219 #
00220 Rule rule
00221 
00222 """
00223   __slots__ = ['gateways']
00224   _slot_types = ['gateway_msgs/RemoteGateway[]']
00225 
00226   def __init__(self, *args, **kwds):
00227     """
00228     Constructor. Any message fields that are implicitly/explicitly
00229     set to None will be assigned a default value. The recommend
00230     use is keyword arguments as this is more robust to future message
00231     changes.  You cannot mix in-order arguments and keyword arguments.
00232 
00233     The available fields are:
00234        gateways
00235 
00236     :param args: complete set of field values, in .msg order
00237     :param kwds: use keyword arguments corresponding to message field names
00238     to set specific fields.
00239     """
00240     if args or kwds:
00241       super(RemoteGatewayInfoResponse, self).__init__(*args, **kwds)
00242       #message fields cannot be None, assign default values for those that are
00243       if self.gateways is None:
00244         self.gateways = []
00245     else:
00246       self.gateways = []
00247 
00248   def _get_types(self):
00249     """
00250     internal API method
00251     """
00252     return self._slot_types
00253 
00254   def serialize(self, buff):
00255     """
00256     serialize message into buffer
00257     :param buff: buffer, ``StringIO``
00258     """
00259     try:
00260       length = len(self.gateways)
00261       buff.write(_struct_I.pack(length))
00262       for val1 in self.gateways:
00263         _x = val1.name
00264         length = len(_x)
00265         if python3 or type(_x) == unicode:
00266           _x = _x.encode('utf-8')
00267           length = len(_x)
00268         buff.write(struct.pack('<I%ss'%length, length, _x))
00269         _x = val1.ip
00270         length = len(_x)
00271         if python3 or type(_x) == unicode:
00272           _x = _x.encode('utf-8')
00273           length = len(_x)
00274         buff.write(struct.pack('<I%ss'%length, length, _x))
00275         buff.write(_struct_B.pack(val1.firewall))
00276         length = len(val1.public_interface)
00277         buff.write(_struct_I.pack(length))
00278         for val2 in val1.public_interface:
00279           _x = val2.type
00280           length = len(_x)
00281           if python3 or type(_x) == unicode:
00282             _x = _x.encode('utf-8')
00283             length = len(_x)
00284           buff.write(struct.pack('<I%ss'%length, length, _x))
00285           _x = val2.name
00286           length = len(_x)
00287           if python3 or type(_x) == unicode:
00288             _x = _x.encode('utf-8')
00289             length = len(_x)
00290           buff.write(struct.pack('<I%ss'%length, length, _x))
00291           _x = val2.node
00292           length = len(_x)
00293           if python3 or type(_x) == unicode:
00294             _x = _x.encode('utf-8')
00295             length = len(_x)
00296           buff.write(struct.pack('<I%ss'%length, length, _x))
00297         length = len(val1.flipped_interface)
00298         buff.write(_struct_I.pack(length))
00299         for val2 in val1.flipped_interface:
00300           _x = val2.gateway
00301           length = len(_x)
00302           if python3 or type(_x) == unicode:
00303             _x = _x.encode('utf-8')
00304             length = len(_x)
00305           buff.write(struct.pack('<I%ss'%length, length, _x))
00306           _v1 = val2.rule
00307           _x = _v1.type
00308           length = len(_x)
00309           if python3 or type(_x) == unicode:
00310             _x = _x.encode('utf-8')
00311             length = len(_x)
00312           buff.write(struct.pack('<I%ss'%length, length, _x))
00313           _x = _v1.name
00314           length = len(_x)
00315           if python3 or type(_x) == unicode:
00316             _x = _x.encode('utf-8')
00317             length = len(_x)
00318           buff.write(struct.pack('<I%ss'%length, length, _x))
00319           _x = _v1.node
00320           length = len(_x)
00321           if python3 or type(_x) == unicode:
00322             _x = _x.encode('utf-8')
00323             length = len(_x)
00324           buff.write(struct.pack('<I%ss'%length, length, _x))
00325         length = len(val1.pulled_interface)
00326         buff.write(_struct_I.pack(length))
00327         for val2 in val1.pulled_interface:
00328           _x = val2.gateway
00329           length = len(_x)
00330           if python3 or type(_x) == unicode:
00331             _x = _x.encode('utf-8')
00332             length = len(_x)
00333           buff.write(struct.pack('<I%ss'%length, length, _x))
00334           _v2 = val2.rule
00335           _x = _v2.type
00336           length = len(_x)
00337           if python3 or type(_x) == unicode:
00338             _x = _x.encode('utf-8')
00339             length = len(_x)
00340           buff.write(struct.pack('<I%ss'%length, length, _x))
00341           _x = _v2.name
00342           length = len(_x)
00343           if python3 or type(_x) == unicode:
00344             _x = _x.encode('utf-8')
00345             length = len(_x)
00346           buff.write(struct.pack('<I%ss'%length, length, _x))
00347           _x = _v2.node
00348           length = len(_x)
00349           if python3 or type(_x) == unicode:
00350             _x = _x.encode('utf-8')
00351             length = len(_x)
00352           buff.write(struct.pack('<I%ss'%length, length, _x))
00353     except struct.error as se: self._check_types(se)
00354     except TypeError as te: self._check_types(te)
00355 
00356   def deserialize(self, str):
00357     """
00358     unpack serialized message in str into this message instance
00359     :param str: byte array of serialized message, ``str``
00360     """
00361     try:
00362       if self.gateways is None:
00363         self.gateways = None
00364       end = 0
00365       start = end
00366       end += 4
00367       (length,) = _struct_I.unpack(str[start:end])
00368       self.gateways = []
00369       for i in range(0, length):
00370         val1 = gateway_msgs.msg.RemoteGateway()
00371         start = end
00372         end += 4
00373         (length,) = _struct_I.unpack(str[start:end])
00374         start = end
00375         end += length
00376         if python3:
00377           val1.name = str[start:end].decode('utf-8')
00378         else:
00379           val1.name = str[start:end]
00380         start = end
00381         end += 4
00382         (length,) = _struct_I.unpack(str[start:end])
00383         start = end
00384         end += length
00385         if python3:
00386           val1.ip = str[start:end].decode('utf-8')
00387         else:
00388           val1.ip = str[start:end]
00389         start = end
00390         end += 1
00391         (val1.firewall,) = _struct_B.unpack(str[start:end])
00392         val1.firewall = bool(val1.firewall)
00393         start = end
00394         end += 4
00395         (length,) = _struct_I.unpack(str[start:end])
00396         val1.public_interface = []
00397         for i in range(0, length):
00398           val2 = gateway_msgs.msg.Rule()
00399           start = end
00400           end += 4
00401           (length,) = _struct_I.unpack(str[start:end])
00402           start = end
00403           end += length
00404           if python3:
00405             val2.type = str[start:end].decode('utf-8')
00406           else:
00407             val2.type = str[start:end]
00408           start = end
00409           end += 4
00410           (length,) = _struct_I.unpack(str[start:end])
00411           start = end
00412           end += length
00413           if python3:
00414             val2.name = str[start:end].decode('utf-8')
00415           else:
00416             val2.name = str[start:end]
00417           start = end
00418           end += 4
00419           (length,) = _struct_I.unpack(str[start:end])
00420           start = end
00421           end += length
00422           if python3:
00423             val2.node = str[start:end].decode('utf-8')
00424           else:
00425             val2.node = str[start:end]
00426           val1.public_interface.append(val2)
00427         start = end
00428         end += 4
00429         (length,) = _struct_I.unpack(str[start:end])
00430         val1.flipped_interface = []
00431         for i in range(0, length):
00432           val2 = gateway_msgs.msg.RemoteRule()
00433           start = end
00434           end += 4
00435           (length,) = _struct_I.unpack(str[start:end])
00436           start = end
00437           end += length
00438           if python3:
00439             val2.gateway = str[start:end].decode('utf-8')
00440           else:
00441             val2.gateway = str[start:end]
00442           _v3 = val2.rule
00443           start = end
00444           end += 4
00445           (length,) = _struct_I.unpack(str[start:end])
00446           start = end
00447           end += length
00448           if python3:
00449             _v3.type = str[start:end].decode('utf-8')
00450           else:
00451             _v3.type = str[start:end]
00452           start = end
00453           end += 4
00454           (length,) = _struct_I.unpack(str[start:end])
00455           start = end
00456           end += length
00457           if python3:
00458             _v3.name = str[start:end].decode('utf-8')
00459           else:
00460             _v3.name = str[start:end]
00461           start = end
00462           end += 4
00463           (length,) = _struct_I.unpack(str[start:end])
00464           start = end
00465           end += length
00466           if python3:
00467             _v3.node = str[start:end].decode('utf-8')
00468           else:
00469             _v3.node = str[start:end]
00470           val1.flipped_interface.append(val2)
00471         start = end
00472         end += 4
00473         (length,) = _struct_I.unpack(str[start:end])
00474         val1.pulled_interface = []
00475         for i in range(0, length):
00476           val2 = gateway_msgs.msg.RemoteRule()
00477           start = end
00478           end += 4
00479           (length,) = _struct_I.unpack(str[start:end])
00480           start = end
00481           end += length
00482           if python3:
00483             val2.gateway = str[start:end].decode('utf-8')
00484           else:
00485             val2.gateway = str[start:end]
00486           _v4 = val2.rule
00487           start = end
00488           end += 4
00489           (length,) = _struct_I.unpack(str[start:end])
00490           start = end
00491           end += length
00492           if python3:
00493             _v4.type = str[start:end].decode('utf-8')
00494           else:
00495             _v4.type = str[start:end]
00496           start = end
00497           end += 4
00498           (length,) = _struct_I.unpack(str[start:end])
00499           start = end
00500           end += length
00501           if python3:
00502             _v4.name = str[start:end].decode('utf-8')
00503           else:
00504             _v4.name = str[start:end]
00505           start = end
00506           end += 4
00507           (length,) = _struct_I.unpack(str[start:end])
00508           start = end
00509           end += length
00510           if python3:
00511             _v4.node = str[start:end].decode('utf-8')
00512           else:
00513             _v4.node = str[start:end]
00514           val1.pulled_interface.append(val2)
00515         self.gateways.append(val1)
00516       return self
00517     except struct.error as e:
00518       raise genpy.DeserializationError(e) #most likely buffer underfill
00519 
00520 
00521   def serialize_numpy(self, buff, numpy):
00522     """
00523     serialize message with numpy array types into buffer
00524     :param buff: buffer, ``StringIO``
00525     :param numpy: numpy python module
00526     """
00527     try:
00528       length = len(self.gateways)
00529       buff.write(_struct_I.pack(length))
00530       for val1 in self.gateways:
00531         _x = val1.name
00532         length = len(_x)
00533         if python3 or type(_x) == unicode:
00534           _x = _x.encode('utf-8')
00535           length = len(_x)
00536         buff.write(struct.pack('<I%ss'%length, length, _x))
00537         _x = val1.ip
00538         length = len(_x)
00539         if python3 or type(_x) == unicode:
00540           _x = _x.encode('utf-8')
00541           length = len(_x)
00542         buff.write(struct.pack('<I%ss'%length, length, _x))
00543         buff.write(_struct_B.pack(val1.firewall))
00544         length = len(val1.public_interface)
00545         buff.write(_struct_I.pack(length))
00546         for val2 in val1.public_interface:
00547           _x = val2.type
00548           length = len(_x)
00549           if python3 or type(_x) == unicode:
00550             _x = _x.encode('utf-8')
00551             length = len(_x)
00552           buff.write(struct.pack('<I%ss'%length, length, _x))
00553           _x = val2.name
00554           length = len(_x)
00555           if python3 or type(_x) == unicode:
00556             _x = _x.encode('utf-8')
00557             length = len(_x)
00558           buff.write(struct.pack('<I%ss'%length, length, _x))
00559           _x = val2.node
00560           length = len(_x)
00561           if python3 or type(_x) == unicode:
00562             _x = _x.encode('utf-8')
00563             length = len(_x)
00564           buff.write(struct.pack('<I%ss'%length, length, _x))
00565         length = len(val1.flipped_interface)
00566         buff.write(_struct_I.pack(length))
00567         for val2 in val1.flipped_interface:
00568           _x = val2.gateway
00569           length = len(_x)
00570           if python3 or type(_x) == unicode:
00571             _x = _x.encode('utf-8')
00572             length = len(_x)
00573           buff.write(struct.pack('<I%ss'%length, length, _x))
00574           _v5 = val2.rule
00575           _x = _v5.type
00576           length = len(_x)
00577           if python3 or type(_x) == unicode:
00578             _x = _x.encode('utf-8')
00579             length = len(_x)
00580           buff.write(struct.pack('<I%ss'%length, length, _x))
00581           _x = _v5.name
00582           length = len(_x)
00583           if python3 or type(_x) == unicode:
00584             _x = _x.encode('utf-8')
00585             length = len(_x)
00586           buff.write(struct.pack('<I%ss'%length, length, _x))
00587           _x = _v5.node
00588           length = len(_x)
00589           if python3 or type(_x) == unicode:
00590             _x = _x.encode('utf-8')
00591             length = len(_x)
00592           buff.write(struct.pack('<I%ss'%length, length, _x))
00593         length = len(val1.pulled_interface)
00594         buff.write(_struct_I.pack(length))
00595         for val2 in val1.pulled_interface:
00596           _x = val2.gateway
00597           length = len(_x)
00598           if python3 or type(_x) == unicode:
00599             _x = _x.encode('utf-8')
00600             length = len(_x)
00601           buff.write(struct.pack('<I%ss'%length, length, _x))
00602           _v6 = val2.rule
00603           _x = _v6.type
00604           length = len(_x)
00605           if python3 or type(_x) == unicode:
00606             _x = _x.encode('utf-8')
00607             length = len(_x)
00608           buff.write(struct.pack('<I%ss'%length, length, _x))
00609           _x = _v6.name
00610           length = len(_x)
00611           if python3 or type(_x) == unicode:
00612             _x = _x.encode('utf-8')
00613             length = len(_x)
00614           buff.write(struct.pack('<I%ss'%length, length, _x))
00615           _x = _v6.node
00616           length = len(_x)
00617           if python3 or type(_x) == unicode:
00618             _x = _x.encode('utf-8')
00619             length = len(_x)
00620           buff.write(struct.pack('<I%ss'%length, length, _x))
00621     except struct.error as se: self._check_types(se)
00622     except TypeError as te: self._check_types(te)
00623 
00624   def deserialize_numpy(self, str, numpy):
00625     """
00626     unpack serialized message in str into this message instance using numpy for array types
00627     :param str: byte array of serialized message, ``str``
00628     :param numpy: numpy python module
00629     """
00630     try:
00631       if self.gateways is None:
00632         self.gateways = None
00633       end = 0
00634       start = end
00635       end += 4
00636       (length,) = _struct_I.unpack(str[start:end])
00637       self.gateways = []
00638       for i in range(0, length):
00639         val1 = gateway_msgs.msg.RemoteGateway()
00640         start = end
00641         end += 4
00642         (length,) = _struct_I.unpack(str[start:end])
00643         start = end
00644         end += length
00645         if python3:
00646           val1.name = str[start:end].decode('utf-8')
00647         else:
00648           val1.name = str[start:end]
00649         start = end
00650         end += 4
00651         (length,) = _struct_I.unpack(str[start:end])
00652         start = end
00653         end += length
00654         if python3:
00655           val1.ip = str[start:end].decode('utf-8')
00656         else:
00657           val1.ip = str[start:end]
00658         start = end
00659         end += 1
00660         (val1.firewall,) = _struct_B.unpack(str[start:end])
00661         val1.firewall = bool(val1.firewall)
00662         start = end
00663         end += 4
00664         (length,) = _struct_I.unpack(str[start:end])
00665         val1.public_interface = []
00666         for i in range(0, length):
00667           val2 = gateway_msgs.msg.Rule()
00668           start = end
00669           end += 4
00670           (length,) = _struct_I.unpack(str[start:end])
00671           start = end
00672           end += length
00673           if python3:
00674             val2.type = str[start:end].decode('utf-8')
00675           else:
00676             val2.type = str[start:end]
00677           start = end
00678           end += 4
00679           (length,) = _struct_I.unpack(str[start:end])
00680           start = end
00681           end += length
00682           if python3:
00683             val2.name = str[start:end].decode('utf-8')
00684           else:
00685             val2.name = str[start:end]
00686           start = end
00687           end += 4
00688           (length,) = _struct_I.unpack(str[start:end])
00689           start = end
00690           end += length
00691           if python3:
00692             val2.node = str[start:end].decode('utf-8')
00693           else:
00694             val2.node = str[start:end]
00695           val1.public_interface.append(val2)
00696         start = end
00697         end += 4
00698         (length,) = _struct_I.unpack(str[start:end])
00699         val1.flipped_interface = []
00700         for i in range(0, length):
00701           val2 = gateway_msgs.msg.RemoteRule()
00702           start = end
00703           end += 4
00704           (length,) = _struct_I.unpack(str[start:end])
00705           start = end
00706           end += length
00707           if python3:
00708             val2.gateway = str[start:end].decode('utf-8')
00709           else:
00710             val2.gateway = str[start:end]
00711           _v7 = val2.rule
00712           start = end
00713           end += 4
00714           (length,) = _struct_I.unpack(str[start:end])
00715           start = end
00716           end += length
00717           if python3:
00718             _v7.type = str[start:end].decode('utf-8')
00719           else:
00720             _v7.type = str[start:end]
00721           start = end
00722           end += 4
00723           (length,) = _struct_I.unpack(str[start:end])
00724           start = end
00725           end += length
00726           if python3:
00727             _v7.name = str[start:end].decode('utf-8')
00728           else:
00729             _v7.name = str[start:end]
00730           start = end
00731           end += 4
00732           (length,) = _struct_I.unpack(str[start:end])
00733           start = end
00734           end += length
00735           if python3:
00736             _v7.node = str[start:end].decode('utf-8')
00737           else:
00738             _v7.node = str[start:end]
00739           val1.flipped_interface.append(val2)
00740         start = end
00741         end += 4
00742         (length,) = _struct_I.unpack(str[start:end])
00743         val1.pulled_interface = []
00744         for i in range(0, length):
00745           val2 = gateway_msgs.msg.RemoteRule()
00746           start = end
00747           end += 4
00748           (length,) = _struct_I.unpack(str[start:end])
00749           start = end
00750           end += length
00751           if python3:
00752             val2.gateway = str[start:end].decode('utf-8')
00753           else:
00754             val2.gateway = str[start:end]
00755           _v8 = val2.rule
00756           start = end
00757           end += 4
00758           (length,) = _struct_I.unpack(str[start:end])
00759           start = end
00760           end += length
00761           if python3:
00762             _v8.type = str[start:end].decode('utf-8')
00763           else:
00764             _v8.type = str[start:end]
00765           start = end
00766           end += 4
00767           (length,) = _struct_I.unpack(str[start:end])
00768           start = end
00769           end += length
00770           if python3:
00771             _v8.name = str[start:end].decode('utf-8')
00772           else:
00773             _v8.name = str[start:end]
00774           start = end
00775           end += 4
00776           (length,) = _struct_I.unpack(str[start:end])
00777           start = end
00778           end += length
00779           if python3:
00780             _v8.node = str[start:end].decode('utf-8')
00781           else:
00782             _v8.node = str[start:end]
00783           val1.pulled_interface.append(val2)
00784         self.gateways.append(val1)
00785       return self
00786     except struct.error as e:
00787       raise genpy.DeserializationError(e) #most likely buffer underfill
00788 
00789 _struct_I = genpy.struct_I
00790 _struct_B = struct.Struct("<B")
00791 class RemoteGatewayInfo(object):
00792   _type          = 'gateway_msgs/RemoteGatewayInfo'
00793   _md5sum = '9d8812307e0422d30d4ad675d3495cf8'
00794   _request_class  = RemoteGatewayInfoRequest
00795   _response_class = RemoteGatewayInfoResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


gateway_msgs
Author(s): Jihoon
autogenerated on Tue Jan 15 2013 17:43:49