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