$search
00001 """autogenerated by genmsg_py from OccupancyBBXSizeQueryRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class OccupancyBBXSizeQueryRequest(roslib.message.Message): 00008 _md5sum = "17746d0996c54d9b8b0dfe6f3cd0b588" 00009 _type = "collider/OccupancyBBXSizeQueryRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 geometry_msgs/Point center 00013 00014 geometry_msgs/Point size 00015 00016 ================================================================================ 00017 MSG: geometry_msgs/Point 00018 # This contains the position of a point in free space 00019 float64 x 00020 float64 y 00021 float64 z 00022 00023 """ 00024 __slots__ = ['center','size'] 00025 _slot_types = ['geometry_msgs/Point','geometry_msgs/Point'] 00026 00027 def __init__(self, *args, **kwds): 00028 """ 00029 Constructor. Any message fields that are implicitly/explicitly 00030 set to None will be assigned a default value. The recommend 00031 use is keyword arguments as this is more robust to future message 00032 changes. You cannot mix in-order arguments and keyword arguments. 00033 00034 The available fields are: 00035 center,size 00036 00037 @param args: complete set of field values, in .msg order 00038 @param kwds: use keyword arguments corresponding to message field names 00039 to set specific fields. 00040 """ 00041 if args or kwds: 00042 super(OccupancyBBXSizeQueryRequest, self).__init__(*args, **kwds) 00043 #message fields cannot be None, assign default values for those that are 00044 if self.center is None: 00045 self.center = geometry_msgs.msg.Point() 00046 if self.size is None: 00047 self.size = geometry_msgs.msg.Point() 00048 else: 00049 self.center = geometry_msgs.msg.Point() 00050 self.size = geometry_msgs.msg.Point() 00051 00052 def _get_types(self): 00053 """ 00054 internal API method 00055 """ 00056 return self._slot_types 00057 00058 def serialize(self, buff): 00059 """ 00060 serialize message into buffer 00061 @param buff: buffer 00062 @type buff: StringIO 00063 """ 00064 try: 00065 _x = self 00066 buff.write(_struct_6d.pack(_x.center.x, _x.center.y, _x.center.z, _x.size.x, _x.size.y, _x.size.z)) 00067 except struct.error as se: self._check_types(se) 00068 except TypeError as te: self._check_types(te) 00069 00070 def deserialize(self, str): 00071 """ 00072 unpack serialized message in str into this message instance 00073 @param str: byte array of serialized message 00074 @type str: str 00075 """ 00076 try: 00077 if self.center is None: 00078 self.center = geometry_msgs.msg.Point() 00079 if self.size is None: 00080 self.size = geometry_msgs.msg.Point() 00081 end = 0 00082 _x = self 00083 start = end 00084 end += 48 00085 (_x.center.x, _x.center.y, _x.center.z, _x.size.x, _x.size.y, _x.size.z,) = _struct_6d.unpack(str[start:end]) 00086 return self 00087 except struct.error as e: 00088 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00089 00090 00091 def serialize_numpy(self, buff, numpy): 00092 """ 00093 serialize message with numpy array types into buffer 00094 @param buff: buffer 00095 @type buff: StringIO 00096 @param numpy: numpy python module 00097 @type numpy module 00098 """ 00099 try: 00100 _x = self 00101 buff.write(_struct_6d.pack(_x.center.x, _x.center.y, _x.center.z, _x.size.x, _x.size.y, _x.size.z)) 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 00109 @type str: str 00110 @param numpy: numpy python module 00111 @type numpy: module 00112 """ 00113 try: 00114 if self.center is None: 00115 self.center = geometry_msgs.msg.Point() 00116 if self.size is None: 00117 self.size = geometry_msgs.msg.Point() 00118 end = 0 00119 _x = self 00120 start = end 00121 end += 48 00122 (_x.center.x, _x.center.y, _x.center.z, _x.size.x, _x.size.y, _x.size.z,) = _struct_6d.unpack(str[start:end]) 00123 return self 00124 except struct.error as e: 00125 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00126 00127 _struct_I = roslib.message.struct_I 00128 _struct_6d = struct.Struct("<6d") 00129 """autogenerated by genmsg_py from OccupancyBBXSizeQueryResponse.msg. Do not edit.""" 00130 import roslib.message 00131 import struct 00132 00133 import geometry_msgs.msg 00134 00135 class OccupancyBBXSizeQueryResponse(roslib.message.Message): 00136 _md5sum = "32bc6e43503cdc225deabb9cd6ec4d0b" 00137 _type = "collider/OccupancyBBXSizeQueryResponse" 00138 _has_header = False #flag to mark the presence of a Header object 00139 _full_text = """ 00140 geometry_msgs/Point[] occupied 00141 00142 00143 geometry_msgs/Point[] free 00144 00145 00146 float64 resolution 00147 00148 00149 ================================================================================ 00150 MSG: geometry_msgs/Point 00151 # This contains the position of a point in free space 00152 float64 x 00153 float64 y 00154 float64 z 00155 00156 """ 00157 __slots__ = ['occupied','free','resolution'] 00158 _slot_types = ['geometry_msgs/Point[]','geometry_msgs/Point[]','float64'] 00159 00160 def __init__(self, *args, **kwds): 00161 """ 00162 Constructor. Any message fields that are implicitly/explicitly 00163 set to None will be assigned a default value. The recommend 00164 use is keyword arguments as this is more robust to future message 00165 changes. You cannot mix in-order arguments and keyword arguments. 00166 00167 The available fields are: 00168 occupied,free,resolution 00169 00170 @param args: complete set of field values, in .msg order 00171 @param kwds: use keyword arguments corresponding to message field names 00172 to set specific fields. 00173 """ 00174 if args or kwds: 00175 super(OccupancyBBXSizeQueryResponse, self).__init__(*args, **kwds) 00176 #message fields cannot be None, assign default values for those that are 00177 if self.occupied is None: 00178 self.occupied = [] 00179 if self.free is None: 00180 self.free = [] 00181 if self.resolution is None: 00182 self.resolution = 0. 00183 else: 00184 self.occupied = [] 00185 self.free = [] 00186 self.resolution = 0. 00187 00188 def _get_types(self): 00189 """ 00190 internal API method 00191 """ 00192 return self._slot_types 00193 00194 def serialize(self, buff): 00195 """ 00196 serialize message into buffer 00197 @param buff: buffer 00198 @type buff: StringIO 00199 """ 00200 try: 00201 length = len(self.occupied) 00202 buff.write(_struct_I.pack(length)) 00203 for val1 in self.occupied: 00204 _x = val1 00205 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00206 length = len(self.free) 00207 buff.write(_struct_I.pack(length)) 00208 for val1 in self.free: 00209 _x = val1 00210 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00211 buff.write(_struct_d.pack(self.resolution)) 00212 except struct.error as se: self._check_types(se) 00213 except TypeError as te: self._check_types(te) 00214 00215 def deserialize(self, str): 00216 """ 00217 unpack serialized message in str into this message instance 00218 @param str: byte array of serialized message 00219 @type str: str 00220 """ 00221 try: 00222 end = 0 00223 start = end 00224 end += 4 00225 (length,) = _struct_I.unpack(str[start:end]) 00226 self.occupied = [] 00227 for i in range(0, length): 00228 val1 = geometry_msgs.msg.Point() 00229 _x = val1 00230 start = end 00231 end += 24 00232 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00233 self.occupied.append(val1) 00234 start = end 00235 end += 4 00236 (length,) = _struct_I.unpack(str[start:end]) 00237 self.free = [] 00238 for i in range(0, length): 00239 val1 = geometry_msgs.msg.Point() 00240 _x = val1 00241 start = end 00242 end += 24 00243 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00244 self.free.append(val1) 00245 start = end 00246 end += 8 00247 (self.resolution,) = _struct_d.unpack(str[start:end]) 00248 return self 00249 except struct.error as e: 00250 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00251 00252 00253 def serialize_numpy(self, buff, numpy): 00254 """ 00255 serialize message with numpy array types into buffer 00256 @param buff: buffer 00257 @type buff: StringIO 00258 @param numpy: numpy python module 00259 @type numpy module 00260 """ 00261 try: 00262 length = len(self.occupied) 00263 buff.write(_struct_I.pack(length)) 00264 for val1 in self.occupied: 00265 _x = val1 00266 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00267 length = len(self.free) 00268 buff.write(_struct_I.pack(length)) 00269 for val1 in self.free: 00270 _x = val1 00271 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00272 buff.write(_struct_d.pack(self.resolution)) 00273 except struct.error as se: self._check_types(se) 00274 except TypeError as te: self._check_types(te) 00275 00276 def deserialize_numpy(self, str, numpy): 00277 """ 00278 unpack serialized message in str into this message instance using numpy for array types 00279 @param str: byte array of serialized message 00280 @type str: str 00281 @param numpy: numpy python module 00282 @type numpy: module 00283 """ 00284 try: 00285 end = 0 00286 start = end 00287 end += 4 00288 (length,) = _struct_I.unpack(str[start:end]) 00289 self.occupied = [] 00290 for i in range(0, length): 00291 val1 = geometry_msgs.msg.Point() 00292 _x = val1 00293 start = end 00294 end += 24 00295 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00296 self.occupied.append(val1) 00297 start = end 00298 end += 4 00299 (length,) = _struct_I.unpack(str[start:end]) 00300 self.free = [] 00301 for i in range(0, length): 00302 val1 = geometry_msgs.msg.Point() 00303 _x = val1 00304 start = end 00305 end += 24 00306 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00307 self.free.append(val1) 00308 start = end 00309 end += 8 00310 (self.resolution,) = _struct_d.unpack(str[start:end]) 00311 return self 00312 except struct.error as e: 00313 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00314 00315 _struct_I = roslib.message.struct_I 00316 _struct_d = struct.Struct("<d") 00317 _struct_3d = struct.Struct("<3d") 00318 class OccupancyBBXSizeQuery(roslib.message.ServiceDefinition): 00319 _type = 'collider/OccupancyBBXSizeQuery' 00320 _md5sum = '80a34f6e7e97fad3d6204d238d32527b' 00321 _request_class = OccupancyBBXSizeQueryRequest 00322 _response_class = OccupancyBBXSizeQueryResponse