_QueryCalibrationState.py
Go to the documentation of this file.
00001 """autogenerated by genpy from pr2_controllers_msgs/QueryCalibrationStateRequest.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 QueryCalibrationStateRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "pr2_controllers_msgs/QueryCalibrationStateRequest"
00011   _has_header = False #flag to mark the presence of a Header object
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(QueryCalibrationStateRequest, 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) #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, ``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) #most likely buffer underfill
00084 
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from pr2_controllers_msgs/QueryCalibrationStateResponse.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 QueryCalibrationStateResponse(genpy.Message):
00094   _md5sum = "28af3beedcb84986b8e470dc5470507d"
00095   _type = "pr2_controllers_msgs/QueryCalibrationStateResponse"
00096   _has_header = False #flag to mark the presence of a Header object
00097   _full_text = """bool is_calibrated
00098 
00099 """
00100   __slots__ = ['is_calibrated']
00101   _slot_types = ['bool']
00102 
00103   def __init__(self, *args, **kwds):
00104     """
00105     Constructor. Any message fields that are implicitly/explicitly
00106     set to None will be assigned a default value. The recommend
00107     use is keyword arguments as this is more robust to future message
00108     changes.  You cannot mix in-order arguments and keyword arguments.
00109 
00110     The available fields are:
00111        is_calibrated
00112 
00113     :param args: complete set of field values, in .msg order
00114     :param kwds: use keyword arguments corresponding to message field names
00115     to set specific fields.
00116     """
00117     if args or kwds:
00118       super(QueryCalibrationStateResponse, self).__init__(*args, **kwds)
00119       #message fields cannot be None, assign default values for those that are
00120       if self.is_calibrated is None:
00121         self.is_calibrated = False
00122     else:
00123       self.is_calibrated = False
00124 
00125   def _get_types(self):
00126     """
00127     internal API method
00128     """
00129     return self._slot_types
00130 
00131   def serialize(self, buff):
00132     """
00133     serialize message into buffer
00134     :param buff: buffer, ``StringIO``
00135     """
00136     try:
00137       buff.write(_struct_B.pack(self.is_calibrated))
00138     except struct.error as se: self._check_types(se)
00139     except TypeError as te: self._check_types(te)
00140 
00141   def deserialize(self, str):
00142     """
00143     unpack serialized message in str into this message instance
00144     :param str: byte array of serialized message, ``str``
00145     """
00146     try:
00147       end = 0
00148       start = end
00149       end += 1
00150       (self.is_calibrated,) = _struct_B.unpack(str[start:end])
00151       self.is_calibrated = bool(self.is_calibrated)
00152       return self
00153     except struct.error as e:
00154       raise genpy.DeserializationError(e) #most likely buffer underfill
00155 
00156 
00157   def serialize_numpy(self, buff, numpy):
00158     """
00159     serialize message with numpy array types into buffer
00160     :param buff: buffer, ``StringIO``
00161     :param numpy: numpy python module
00162     """
00163     try:
00164       buff.write(_struct_B.pack(self.is_calibrated))
00165     except struct.error as se: self._check_types(se)
00166     except TypeError as te: self._check_types(te)
00167 
00168   def deserialize_numpy(self, str, numpy):
00169     """
00170     unpack serialized message in str into this message instance using numpy for array types
00171     :param str: byte array of serialized message, ``str``
00172     :param numpy: numpy python module
00173     """
00174     try:
00175       end = 0
00176       start = end
00177       end += 1
00178       (self.is_calibrated,) = _struct_B.unpack(str[start:end])
00179       self.is_calibrated = bool(self.is_calibrated)
00180       return self
00181     except struct.error as e:
00182       raise genpy.DeserializationError(e) #most likely buffer underfill
00183 
00184 _struct_I = genpy.struct_I
00185 _struct_B = struct.Struct("<B")
00186 class QueryCalibrationState(object):
00187   _type          = 'pr2_controllers_msgs/QueryCalibrationState'
00188   _md5sum = '28af3beedcb84986b8e470dc5470507d'
00189   _request_class  = QueryCalibrationStateRequest
00190   _response_class = QueryCalibrationStateResponse


pr2_controllers_msgs
Author(s): Stuart Glaser
autogenerated on Fri Jan 3 2014 11:41:02