00001 """autogenerated by genpy from coverage_3d_srvs/CleanSpotRequest.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 geometry_msgs.msg
00008 import std_msgs.msg
00009
00010 class CleanSpotRequest(genpy.Message):
00011 _md5sum = "6e25ab72a22f6074807bfe0a8785b5a9"
00012 _type = "coverage_3d_srvs/CleanSpotRequest"
00013 _has_header = False
00014 _full_text = """float64 box_size
00015 geometry_msgs/PointStamped spot
00016
00017 ================================================================================
00018 MSG: geometry_msgs/PointStamped
00019 # This represents a Point with reference coordinate frame and timestamp
00020 Header header
00021 Point point
00022
00023 ================================================================================
00024 MSG: std_msgs/Header
00025 # Standard metadata for higher-level stamped data types.
00026 # This is generally used to communicate timestamped data
00027 # in a particular coordinate frame.
00028 #
00029 # sequence ID: consecutively increasing ID
00030 uint32 seq
00031 #Two-integer timestamp that is expressed as:
00032 # * stamp.secs: seconds (stamp_secs) since epoch
00033 # * stamp.nsecs: nanoseconds since stamp_secs
00034 # time-handling sugar is provided by the client library
00035 time stamp
00036 #Frame this data is associated with
00037 # 0: no frame
00038 # 1: global frame
00039 string frame_id
00040
00041 ================================================================================
00042 MSG: geometry_msgs/Point
00043 # This contains the position of a point in free space
00044 float64 x
00045 float64 y
00046 float64 z
00047
00048 """
00049 __slots__ = ['box_size','spot']
00050 _slot_types = ['float64','geometry_msgs/PointStamped']
00051
00052 def __init__(self, *args, **kwds):
00053 """
00054 Constructor. Any message fields that are implicitly/explicitly
00055 set to None will be assigned a default value. The recommend
00056 use is keyword arguments as this is more robust to future message
00057 changes. You cannot mix in-order arguments and keyword arguments.
00058
00059 The available fields are:
00060 box_size,spot
00061
00062 :param args: complete set of field values, in .msg order
00063 :param kwds: use keyword arguments corresponding to message field names
00064 to set specific fields.
00065 """
00066 if args or kwds:
00067 super(CleanSpotRequest, self).__init__(*args, **kwds)
00068
00069 if self.box_size is None:
00070 self.box_size = 0.
00071 if self.spot is None:
00072 self.spot = geometry_msgs.msg.PointStamped()
00073 else:
00074 self.box_size = 0.
00075 self.spot = geometry_msgs.msg.PointStamped()
00076
00077 def _get_types(self):
00078 """
00079 internal API method
00080 """
00081 return self._slot_types
00082
00083 def serialize(self, buff):
00084 """
00085 serialize message into buffer
00086 :param buff: buffer, ``StringIO``
00087 """
00088 try:
00089 _x = self
00090 buff.write(_struct_d3I.pack(_x.box_size, _x.spot.header.seq, _x.spot.header.stamp.secs, _x.spot.header.stamp.nsecs))
00091 _x = self.spot.header.frame_id
00092 length = len(_x)
00093 if python3 or type(_x) == unicode:
00094 _x = _x.encode('utf-8')
00095 length = len(_x)
00096 buff.write(struct.pack('<I%ss'%length, length, _x))
00097 _x = self
00098 buff.write(_struct_3d.pack(_x.spot.point.x, _x.spot.point.y, _x.spot.point.z))
00099 except struct.error as se: self._check_types(se)
00100 except TypeError as te: self._check_types(te)
00101
00102 def deserialize(self, str):
00103 """
00104 unpack serialized message in str into this message instance
00105 :param str: byte array of serialized message, ``str``
00106 """
00107 try:
00108 if self.spot is None:
00109 self.spot = geometry_msgs.msg.PointStamped()
00110 end = 0
00111 _x = self
00112 start = end
00113 end += 20
00114 (_x.box_size, _x.spot.header.seq, _x.spot.header.stamp.secs, _x.spot.header.stamp.nsecs,) = _struct_d3I.unpack(str[start:end])
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.spot.header.frame_id = str[start:end].decode('utf-8')
00122 else:
00123 self.spot.header.frame_id = str[start:end]
00124 _x = self
00125 start = end
00126 end += 24
00127 (_x.spot.point.x, _x.spot.point.y, _x.spot.point.z,) = _struct_3d.unpack(str[start:end])
00128 return self
00129 except struct.error as e:
00130 raise genpy.DeserializationError(e)
00131
00132
00133 def serialize_numpy(self, buff, numpy):
00134 """
00135 serialize message with numpy array types into buffer
00136 :param buff: buffer, ``StringIO``
00137 :param numpy: numpy python module
00138 """
00139 try:
00140 _x = self
00141 buff.write(_struct_d3I.pack(_x.box_size, _x.spot.header.seq, _x.spot.header.stamp.secs, _x.spot.header.stamp.nsecs))
00142 _x = self.spot.header.frame_id
00143 length = len(_x)
00144 if python3 or type(_x) == unicode:
00145 _x = _x.encode('utf-8')
00146 length = len(_x)
00147 buff.write(struct.pack('<I%ss'%length, length, _x))
00148 _x = self
00149 buff.write(_struct_3d.pack(_x.spot.point.x, _x.spot.point.y, _x.spot.point.z))
00150 except struct.error as se: self._check_types(se)
00151 except TypeError as te: self._check_types(te)
00152
00153 def deserialize_numpy(self, str, numpy):
00154 """
00155 unpack serialized message in str into this message instance using numpy for array types
00156 :param str: byte array of serialized message, ``str``
00157 :param numpy: numpy python module
00158 """
00159 try:
00160 if self.spot is None:
00161 self.spot = geometry_msgs.msg.PointStamped()
00162 end = 0
00163 _x = self
00164 start = end
00165 end += 20
00166 (_x.box_size, _x.spot.header.seq, _x.spot.header.stamp.secs, _x.spot.header.stamp.nsecs,) = _struct_d3I.unpack(str[start:end])
00167 start = end
00168 end += 4
00169 (length,) = _struct_I.unpack(str[start:end])
00170 start = end
00171 end += length
00172 if python3:
00173 self.spot.header.frame_id = str[start:end].decode('utf-8')
00174 else:
00175 self.spot.header.frame_id = str[start:end]
00176 _x = self
00177 start = end
00178 end += 24
00179 (_x.spot.point.x, _x.spot.point.y, _x.spot.point.z,) = _struct_3d.unpack(str[start:end])
00180 return self
00181 except struct.error as e:
00182 raise genpy.DeserializationError(e)
00183
00184 _struct_I = genpy.struct_I
00185 _struct_3d = struct.Struct("<3d")
00186 _struct_d3I = struct.Struct("<d3I")
00187 """autogenerated by genpy from coverage_3d_srvs/CleanSpotResponse.msg. Do not edit."""
00188 import sys
00189 python3 = True if sys.hexversion > 0x03000000 else False
00190 import genpy
00191 import struct
00192
00193
00194 class CleanSpotResponse(genpy.Message):
00195 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00196 _type = "coverage_3d_srvs/CleanSpotResponse"
00197 _has_header = False
00198 _full_text = """
00199
00200 """
00201 __slots__ = []
00202 _slot_types = []
00203
00204 def __init__(self, *args, **kwds):
00205 """
00206 Constructor. Any message fields that are implicitly/explicitly
00207 set to None will be assigned a default value. The recommend
00208 use is keyword arguments as this is more robust to future message
00209 changes. You cannot mix in-order arguments and keyword arguments.
00210
00211 The available fields are:
00212
00213
00214 :param args: complete set of field values, in .msg order
00215 :param kwds: use keyword arguments corresponding to message field names
00216 to set specific fields.
00217 """
00218 if args or kwds:
00219 super(CleanSpotResponse, self).__init__(*args, **kwds)
00220
00221 def _get_types(self):
00222 """
00223 internal API method
00224 """
00225 return self._slot_types
00226
00227 def serialize(self, buff):
00228 """
00229 serialize message into buffer
00230 :param buff: buffer, ``StringIO``
00231 """
00232 try:
00233 pass
00234 except struct.error as se: self._check_types(se)
00235 except TypeError as te: self._check_types(te)
00236
00237 def deserialize(self, str):
00238 """
00239 unpack serialized message in str into this message instance
00240 :param str: byte array of serialized message, ``str``
00241 """
00242 try:
00243 end = 0
00244 return self
00245 except struct.error as e:
00246 raise genpy.DeserializationError(e)
00247
00248
00249 def serialize_numpy(self, buff, numpy):
00250 """
00251 serialize message with numpy array types into buffer
00252 :param buff: buffer, ``StringIO``
00253 :param numpy: numpy python module
00254 """
00255 try:
00256 pass
00257 except struct.error as se: self._check_types(se)
00258 except TypeError as te: self._check_types(te)
00259
00260 def deserialize_numpy(self, str, numpy):
00261 """
00262 unpack serialized message in str into this message instance using numpy for array types
00263 :param str: byte array of serialized message, ``str``
00264 :param numpy: numpy python module
00265 """
00266 try:
00267 end = 0
00268 return self
00269 except struct.error as e:
00270 raise genpy.DeserializationError(e)
00271
00272 _struct_I = genpy.struct_I
00273 class CleanSpot(object):
00274 _type = 'coverage_3d_srvs/CleanSpot'
00275 _md5sum = '6e25ab72a22f6074807bfe0a8785b5a9'
00276 _request_class = CleanSpotRequest
00277 _response_class = CleanSpotResponse