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