$search
00001 """autogenerated by genmsg_py from QueryCalibrationStateRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class QueryCalibrationStateRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "pr2_controllers_msgs/QueryCalibrationStateRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 """ 00012 __slots__ = [] 00013 _slot_types = [] 00014 00015 def __init__(self, *args, **kwds): 00016 """ 00017 Constructor. Any message fields that are implicitly/explicitly 00018 set to None will be assigned a default value. The recommend 00019 use is keyword arguments as this is more robust to future message 00020 changes. You cannot mix in-order arguments and keyword arguments. 00021 00022 The available fields are: 00023 00024 00025 @param args: complete set of field values, in .msg order 00026 @param kwds: use keyword arguments corresponding to message field names 00027 to set specific fields. 00028 """ 00029 if args or kwds: 00030 super(QueryCalibrationStateRequest, self).__init__(*args, **kwds) 00031 00032 def _get_types(self): 00033 """ 00034 internal API method 00035 """ 00036 return self._slot_types 00037 00038 def serialize(self, buff): 00039 """ 00040 serialize message into buffer 00041 @param buff: buffer 00042 @type buff: StringIO 00043 """ 00044 try: 00045 pass 00046 except struct.error as se: self._check_types(se) 00047 except TypeError as te: self._check_types(te) 00048 00049 def deserialize(self, str): 00050 """ 00051 unpack serialized message in str into this message instance 00052 @param str: byte array of serialized message 00053 @type str: str 00054 """ 00055 try: 00056 end = 0 00057 return self 00058 except struct.error as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00060 00061 00062 def serialize_numpy(self, buff, numpy): 00063 """ 00064 serialize message with numpy array types into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 @param numpy: numpy python module 00068 @type numpy module 00069 """ 00070 try: 00071 pass 00072 except struct.error as se: self._check_types(se) 00073 except TypeError as te: self._check_types(te) 00074 00075 def deserialize_numpy(self, str, numpy): 00076 """ 00077 unpack serialized message in str into this message instance using numpy for array types 00078 @param str: byte array of serialized message 00079 @type str: str 00080 @param numpy: numpy python module 00081 @type numpy: module 00082 """ 00083 try: 00084 end = 0 00085 return self 00086 except struct.error as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from QueryCalibrationStateResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 00095 class QueryCalibrationStateResponse(roslib.message.Message): 00096 _md5sum = "28af3beedcb84986b8e470dc5470507d" 00097 _type = "pr2_controllers_msgs/QueryCalibrationStateResponse" 00098 _has_header = False #flag to mark the presence of a Header object 00099 _full_text = """bool is_calibrated 00100 00101 """ 00102 __slots__ = ['is_calibrated'] 00103 _slot_types = ['bool'] 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 is_calibrated 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(QueryCalibrationStateResponse, self).__init__(*args, **kwds) 00121 #message fields cannot be None, assign default values for those that are 00122 if self.is_calibrated is None: 00123 self.is_calibrated = False 00124 else: 00125 self.is_calibrated = False 00126 00127 def _get_types(self): 00128 """ 00129 internal API method 00130 """ 00131 return self._slot_types 00132 00133 def serialize(self, buff): 00134 """ 00135 serialize message into buffer 00136 @param buff: buffer 00137 @type buff: StringIO 00138 """ 00139 try: 00140 buff.write(_struct_B.pack(self.is_calibrated)) 00141 except struct.error as se: self._check_types(se) 00142 except TypeError as te: self._check_types(te) 00143 00144 def deserialize(self, str): 00145 """ 00146 unpack serialized message in str into this message instance 00147 @param str: byte array of serialized message 00148 @type str: str 00149 """ 00150 try: 00151 end = 0 00152 start = end 00153 end += 1 00154 (self.is_calibrated,) = _struct_B.unpack(str[start:end]) 00155 self.is_calibrated = bool(self.is_calibrated) 00156 return self 00157 except struct.error as e: 00158 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00159 00160 00161 def serialize_numpy(self, buff, numpy): 00162 """ 00163 serialize message with numpy array types into buffer 00164 @param buff: buffer 00165 @type buff: StringIO 00166 @param numpy: numpy python module 00167 @type numpy module 00168 """ 00169 try: 00170 buff.write(_struct_B.pack(self.is_calibrated)) 00171 except struct.error as se: self._check_types(se) 00172 except TypeError as te: self._check_types(te) 00173 00174 def deserialize_numpy(self, str, numpy): 00175 """ 00176 unpack serialized message in str into this message instance using numpy for array types 00177 @param str: byte array of serialized message 00178 @type str: str 00179 @param numpy: numpy python module 00180 @type numpy: module 00181 """ 00182 try: 00183 end = 0 00184 start = end 00185 end += 1 00186 (self.is_calibrated,) = _struct_B.unpack(str[start:end]) 00187 self.is_calibrated = bool(self.is_calibrated) 00188 return self 00189 except struct.error as e: 00190 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00191 00192 _struct_I = roslib.message.struct_I 00193 _struct_B = struct.Struct("<B") 00194 class QueryCalibrationState(roslib.message.ServiceDefinition): 00195 _type = 'pr2_controllers_msgs/QueryCalibrationState' 00196 _md5sum = '28af3beedcb84986b8e470dc5470507d' 00197 _request_class = QueryCalibrationStateRequest 00198 _response_class = QueryCalibrationStateResponse