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