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