_ReloadControllerLibraries.py
Go to the documentation of this file.
00001 """autogenerated by genpy from pr2_mechanism_msgs/ReloadControllerLibrariesRequest.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 ReloadControllerLibrariesRequest(genpy.Message):
00009   _md5sum = "18442b59be9479097f11c543bddbac62"
00010   _type = "pr2_mechanism_msgs/ReloadControllerLibrariesRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 bool force_kill
00021 
00022 """
00023   __slots__ = ['force_kill']
00024   _slot_types = ['bool']
00025 
00026   def __init__(self, *args, **kwds):
00027     """
00028     Constructor. Any message fields that are implicitly/explicitly
00029     set to None will be assigned a default value. The recommend
00030     use is keyword arguments as this is more robust to future message
00031     changes.  You cannot mix in-order arguments and keyword arguments.
00032 
00033     The available fields are:
00034        force_kill
00035 
00036     :param args: complete set of field values, in .msg order
00037     :param kwds: use keyword arguments corresponding to message field names
00038     to set specific fields.
00039     """
00040     if args or kwds:
00041       super(ReloadControllerLibrariesRequest, self).__init__(*args, **kwds)
00042       #message fields cannot be None, assign default values for those that are
00043       if self.force_kill is None:
00044         self.force_kill = False
00045     else:
00046       self.force_kill = False
00047 
00048   def _get_types(self):
00049     """
00050     internal API method
00051     """
00052     return self._slot_types
00053 
00054   def serialize(self, buff):
00055     """
00056     serialize message into buffer
00057     :param buff: buffer, ``StringIO``
00058     """
00059     try:
00060       buff.write(_struct_B.pack(self.force_kill))
00061     except struct.error as se: self._check_types(se)
00062     except TypeError as 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, ``str``
00068     """
00069     try:
00070       end = 0
00071       start = end
00072       end += 1
00073       (self.force_kill,) = _struct_B.unpack(str[start:end])
00074       self.force_kill = bool(self.force_kill)
00075       return self
00076     except struct.error as e:
00077       raise genpy.DeserializationError(e) #most likely buffer underfill
00078 
00079 
00080   def serialize_numpy(self, buff, numpy):
00081     """
00082     serialize message with numpy array types into buffer
00083     :param buff: buffer, ``StringIO``
00084     :param numpy: numpy python module
00085     """
00086     try:
00087       buff.write(_struct_B.pack(self.force_kill))
00088     except struct.error as se: self._check_types(se)
00089     except TypeError as te: self._check_types(te)
00090 
00091   def deserialize_numpy(self, str, numpy):
00092     """
00093     unpack serialized message in str into this message instance using numpy for array types
00094     :param str: byte array of serialized message, ``str``
00095     :param numpy: numpy python module
00096     """
00097     try:
00098       end = 0
00099       start = end
00100       end += 1
00101       (self.force_kill,) = _struct_B.unpack(str[start:end])
00102       self.force_kill = bool(self.force_kill)
00103       return self
00104     except struct.error as e:
00105       raise genpy.DeserializationError(e) #most likely buffer underfill
00106 
00107 _struct_I = genpy.struct_I
00108 _struct_B = struct.Struct("<B")
00109 """autogenerated by genpy from pr2_mechanism_msgs/ReloadControllerLibrariesResponse.msg. Do not edit."""
00110 import sys
00111 python3 = True if sys.hexversion > 0x03000000 else False
00112 import genpy
00113 import struct
00114 
00115 
00116 class ReloadControllerLibrariesResponse(genpy.Message):
00117   _md5sum = "6f6da3883749771fac40d6deb24a8c02"
00118   _type = "pr2_mechanism_msgs/ReloadControllerLibrariesResponse"
00119   _has_header = False #flag to mark the presence of a Header object
00120   _full_text = """bool ok
00121 
00122 """
00123   __slots__ = ['ok']
00124   _slot_types = ['bool']
00125 
00126   def __init__(self, *args, **kwds):
00127     """
00128     Constructor. Any message fields that are implicitly/explicitly
00129     set to None will be assigned a default value. The recommend
00130     use is keyword arguments as this is more robust to future message
00131     changes.  You cannot mix in-order arguments and keyword arguments.
00132 
00133     The available fields are:
00134        ok
00135 
00136     :param args: complete set of field values, in .msg order
00137     :param kwds: use keyword arguments corresponding to message field names
00138     to set specific fields.
00139     """
00140     if args or kwds:
00141       super(ReloadControllerLibrariesResponse, self).__init__(*args, **kwds)
00142       #message fields cannot be None, assign default values for those that are
00143       if self.ok is None:
00144         self.ok = False
00145     else:
00146       self.ok = False
00147 
00148   def _get_types(self):
00149     """
00150     internal API method
00151     """
00152     return self._slot_types
00153 
00154   def serialize(self, buff):
00155     """
00156     serialize message into buffer
00157     :param buff: buffer, ``StringIO``
00158     """
00159     try:
00160       buff.write(_struct_B.pack(self.ok))
00161     except struct.error as se: self._check_types(se)
00162     except TypeError as te: self._check_types(te)
00163 
00164   def deserialize(self, str):
00165     """
00166     unpack serialized message in str into this message instance
00167     :param str: byte array of serialized message, ``str``
00168     """
00169     try:
00170       end = 0
00171       start = end
00172       end += 1
00173       (self.ok,) = _struct_B.unpack(str[start:end])
00174       self.ok = bool(self.ok)
00175       return self
00176     except struct.error as e:
00177       raise genpy.DeserializationError(e) #most likely buffer underfill
00178 
00179 
00180   def serialize_numpy(self, buff, numpy):
00181     """
00182     serialize message with numpy array types into buffer
00183     :param buff: buffer, ``StringIO``
00184     :param numpy: numpy python module
00185     """
00186     try:
00187       buff.write(_struct_B.pack(self.ok))
00188     except struct.error as se: self._check_types(se)
00189     except TypeError as te: self._check_types(te)
00190 
00191   def deserialize_numpy(self, str, numpy):
00192     """
00193     unpack serialized message in str into this message instance using numpy for array types
00194     :param str: byte array of serialized message, ``str``
00195     :param numpy: numpy python module
00196     """
00197     try:
00198       end = 0
00199       start = end
00200       end += 1
00201       (self.ok,) = _struct_B.unpack(str[start:end])
00202       self.ok = bool(self.ok)
00203       return self
00204     except struct.error as e:
00205       raise genpy.DeserializationError(e) #most likely buffer underfill
00206 
00207 _struct_I = genpy.struct_I
00208 _struct_B = struct.Struct("<B")
00209 class ReloadControllerLibraries(object):
00210   _type          = 'pr2_mechanism_msgs/ReloadControllerLibraries'
00211   _md5sum = '40e8c411fd1797d2e2c486018f846040'
00212   _request_class  = ReloadControllerLibrariesRequest
00213   _response_class = ReloadControllerLibrariesResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


pr2_mechanism_msgs
Author(s): Stuart Glaser sglaser@willowgarage.com, Wim Meeussen
autogenerated on Mon Nov 19 2012 16:39:56