Go to the documentation of this file.00001 """autogenerated by genpy from ethzasl_icp_mapper/LoadMapRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import std_msgs.msg
00008
00009 class LoadMapRequest(genpy.Message):
00010 _md5sum = "716e25f9d9dc76ceba197f93cbf05dc7"
00011 _type = "ethzasl_icp_mapper/LoadMapRequest"
00012 _has_header = False
00013 _full_text = """std_msgs/String filename
00014
00015 ================================================================================
00016 MSG: std_msgs/String
00017 string data
00018
00019 """
00020 __slots__ = ['filename']
00021 _slot_types = ['std_msgs/String']
00022
00023 def __init__(self, *args, **kwds):
00024 """
00025 Constructor. Any message fields that are implicitly/explicitly
00026 set to None will be assigned a default value. The recommend
00027 use is keyword arguments as this is more robust to future message
00028 changes. You cannot mix in-order arguments and keyword arguments.
00029
00030 The available fields are:
00031 filename
00032
00033 :param args: complete set of field values, in .msg order
00034 :param kwds: use keyword arguments corresponding to message field names
00035 to set specific fields.
00036 """
00037 if args or kwds:
00038 super(LoadMapRequest, self).__init__(*args, **kwds)
00039
00040 if self.filename is None:
00041 self.filename = std_msgs.msg.String()
00042 else:
00043 self.filename = std_msgs.msg.String()
00044
00045 def _get_types(self):
00046 """
00047 internal API method
00048 """
00049 return self._slot_types
00050
00051 def serialize(self, buff):
00052 """
00053 serialize message into buffer
00054 :param buff: buffer, ``StringIO``
00055 """
00056 try:
00057 _x = self.filename.data
00058 length = len(_x)
00059 if python3 or type(_x) == unicode:
00060 _x = _x.encode('utf-8')
00061 length = len(_x)
00062 buff.write(struct.pack('<I%ss'%length, length, _x))
00063 except struct.error as se: self._check_types(se)
00064 except TypeError as te: self._check_types(te)
00065
00066 def deserialize(self, str):
00067 """
00068 unpack serialized message in str into this message instance
00069 :param str: byte array of serialized message, ``str``
00070 """
00071 try:
00072 if self.filename is None:
00073 self.filename = std_msgs.msg.String()
00074 end = 0
00075 start = end
00076 end += 4
00077 (length,) = _struct_I.unpack(str[start:end])
00078 start = end
00079 end += length
00080 if python3:
00081 self.filename.data = str[start:end].decode('utf-8')
00082 else:
00083 self.filename.data = str[start:end]
00084 return self
00085 except struct.error as e:
00086 raise genpy.DeserializationError(e)
00087
00088
00089 def serialize_numpy(self, buff, numpy):
00090 """
00091 serialize message with numpy array types into buffer
00092 :param buff: buffer, ``StringIO``
00093 :param numpy: numpy python module
00094 """
00095 try:
00096 _x = self.filename.data
00097 length = len(_x)
00098 if python3 or type(_x) == unicode:
00099 _x = _x.encode('utf-8')
00100 length = len(_x)
00101 buff.write(struct.pack('<I%ss'%length, length, _x))
00102 except struct.error as se: self._check_types(se)
00103 except TypeError as te: self._check_types(te)
00104
00105 def deserialize_numpy(self, str, numpy):
00106 """
00107 unpack serialized message in str into this message instance using numpy for array types
00108 :param str: byte array of serialized message, ``str``
00109 :param numpy: numpy python module
00110 """
00111 try:
00112 if self.filename is None:
00113 self.filename = std_msgs.msg.String()
00114 end = 0
00115 start = end
00116 end += 4
00117 (length,) = _struct_I.unpack(str[start:end])
00118 start = end
00119 end += length
00120 if python3:
00121 self.filename.data = str[start:end].decode('utf-8')
00122 else:
00123 self.filename.data = str[start:end]
00124 return self
00125 except struct.error as e:
00126 raise genpy.DeserializationError(e)
00127
00128 _struct_I = genpy.struct_I
00129 """autogenerated by genpy from ethzasl_icp_mapper/LoadMapResponse.msg. Do not edit."""
00130 import sys
00131 python3 = True if sys.hexversion > 0x03000000 else False
00132 import genpy
00133 import struct
00134
00135
00136 class LoadMapResponse(genpy.Message):
00137 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00138 _type = "ethzasl_icp_mapper/LoadMapResponse"
00139 _has_header = False
00140 _full_text = """
00141
00142 """
00143 __slots__ = []
00144 _slot_types = []
00145
00146 def __init__(self, *args, **kwds):
00147 """
00148 Constructor. Any message fields that are implicitly/explicitly
00149 set to None will be assigned a default value. The recommend
00150 use is keyword arguments as this is more robust to future message
00151 changes. You cannot mix in-order arguments and keyword arguments.
00152
00153 The available fields are:
00154
00155
00156 :param args: complete set of field values, in .msg order
00157 :param kwds: use keyword arguments corresponding to message field names
00158 to set specific fields.
00159 """
00160 if args or kwds:
00161 super(LoadMapResponse, self).__init__(*args, **kwds)
00162
00163 def _get_types(self):
00164 """
00165 internal API method
00166 """
00167 return self._slot_types
00168
00169 def serialize(self, buff):
00170 """
00171 serialize message into buffer
00172 :param buff: buffer, ``StringIO``
00173 """
00174 try:
00175 pass
00176 except struct.error as se: self._check_types(se)
00177 except TypeError as te: self._check_types(te)
00178
00179 def deserialize(self, str):
00180 """
00181 unpack serialized message in str into this message instance
00182 :param str: byte array of serialized message, ``str``
00183 """
00184 try:
00185 end = 0
00186 return self
00187 except struct.error as e:
00188 raise genpy.DeserializationError(e)
00189
00190
00191 def serialize_numpy(self, buff, numpy):
00192 """
00193 serialize message with numpy array types into buffer
00194 :param buff: buffer, ``StringIO``
00195 :param numpy: numpy python module
00196 """
00197 try:
00198 pass
00199 except struct.error as se: self._check_types(se)
00200 except TypeError as te: self._check_types(te)
00201
00202 def deserialize_numpy(self, str, numpy):
00203 """
00204 unpack serialized message in str into this message instance using numpy for array types
00205 :param str: byte array of serialized message, ``str``
00206 :param numpy: numpy python module
00207 """
00208 try:
00209 end = 0
00210 return self
00211 except struct.error as e:
00212 raise genpy.DeserializationError(e)
00213
00214 _struct_I = genpy.struct_I
00215 class LoadMap(object):
00216 _type = 'ethzasl_icp_mapper/LoadMap'
00217 _md5sum = '716e25f9d9dc76ceba197f93cbf05dc7'
00218 _request_class = LoadMapRequest
00219 _response_class = LoadMapResponse