_MoveAng.py
Go to the documentation of this file.
00001 """autogenerated by genpy from robotis/MoveAngRequest.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 MoveAngRequest(genpy.Message):
00009   _md5sum = "0b06a5bbd694fba6102f1418541d5e49"
00010   _type = "robotis/MoveAngRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """float64 angle
00013 float64 angvel
00014 int32 blocking
00015 
00016 """
00017   __slots__ = ['angle','angvel','blocking']
00018   _slot_types = ['float64','float64','int32']
00019 
00020   def __init__(self, *args, **kwds):
00021     """
00022     Constructor. Any message fields that are implicitly/explicitly
00023     set to None will be assigned a default value. The recommend
00024     use is keyword arguments as this is more robust to future message
00025     changes.  You cannot mix in-order arguments and keyword arguments.
00026 
00027     The available fields are:
00028        angle,angvel,blocking
00029 
00030     :param args: complete set of field values, in .msg order
00031     :param kwds: use keyword arguments corresponding to message field names
00032     to set specific fields.
00033     """
00034     if args or kwds:
00035       super(MoveAngRequest, self).__init__(*args, **kwds)
00036       #message fields cannot be None, assign default values for those that are
00037       if self.angle is None:
00038         self.angle = 0.
00039       if self.angvel is None:
00040         self.angvel = 0.
00041       if self.blocking is None:
00042         self.blocking = 0
00043     else:
00044       self.angle = 0.
00045       self.angvel = 0.
00046       self.blocking = 0
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       _x = self
00061       buff.write(_struct_2di.pack(_x.angle, _x.angvel, _x.blocking))
00062     except struct.error as se: self._check_types(se)
00063     except TypeError as te: self._check_types(te)
00064 
00065   def deserialize(self, str):
00066     """
00067     unpack serialized message in str into this message instance
00068     :param str: byte array of serialized message, ``str``
00069     """
00070     try:
00071       end = 0
00072       _x = self
00073       start = end
00074       end += 20
00075       (_x.angle, _x.angvel, _x.blocking,) = _struct_2di.unpack(str[start:end])
00076       return self
00077     except struct.error as e:
00078       raise genpy.DeserializationError(e) #most likely buffer underfill
00079 
00080 
00081   def serialize_numpy(self, buff, numpy):
00082     """
00083     serialize message with numpy array types into buffer
00084     :param buff: buffer, ``StringIO``
00085     :param numpy: numpy python module
00086     """
00087     try:
00088       _x = self
00089       buff.write(_struct_2di.pack(_x.angle, _x.angvel, _x.blocking))
00090     except struct.error as se: self._check_types(se)
00091     except TypeError as te: self._check_types(te)
00092 
00093   def deserialize_numpy(self, str, numpy):
00094     """
00095     unpack serialized message in str into this message instance using numpy for array types
00096     :param str: byte array of serialized message, ``str``
00097     :param numpy: numpy python module
00098     """
00099     try:
00100       end = 0
00101       _x = self
00102       start = end
00103       end += 20
00104       (_x.angle, _x.angvel, _x.blocking,) = _struct_2di.unpack(str[start:end])
00105       return self
00106     except struct.error as e:
00107       raise genpy.DeserializationError(e) #most likely buffer underfill
00108 
00109 _struct_I = genpy.struct_I
00110 _struct_2di = struct.Struct("<2di")
00111 """autogenerated by genpy from robotis/MoveAngResponse.msg. Do not edit."""
00112 import sys
00113 python3 = True if sys.hexversion > 0x03000000 else False
00114 import genpy
00115 import struct
00116 
00117 
00118 class MoveAngResponse(genpy.Message):
00119   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00120   _type = "robotis/MoveAngResponse"
00121   _has_header = False #flag to mark the presence of a Header object
00122   _full_text = """
00123 
00124 """
00125   __slots__ = []
00126   _slot_types = []
00127 
00128   def __init__(self, *args, **kwds):
00129     """
00130     Constructor. Any message fields that are implicitly/explicitly
00131     set to None will be assigned a default value. The recommend
00132     use is keyword arguments as this is more robust to future message
00133     changes.  You cannot mix in-order arguments and keyword arguments.
00134 
00135     The available fields are:
00136        
00137 
00138     :param args: complete set of field values, in .msg order
00139     :param kwds: use keyword arguments corresponding to message field names
00140     to set specific fields.
00141     """
00142     if args or kwds:
00143       super(MoveAngResponse, self).__init__(*args, **kwds)
00144 
00145   def _get_types(self):
00146     """
00147     internal API method
00148     """
00149     return self._slot_types
00150 
00151   def serialize(self, buff):
00152     """
00153     serialize message into buffer
00154     :param buff: buffer, ``StringIO``
00155     """
00156     try:
00157       pass
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       return self
00169     except struct.error as e:
00170       raise genpy.DeserializationError(e) #most likely buffer underfill
00171 
00172 
00173   def serialize_numpy(self, buff, numpy):
00174     """
00175     serialize message with numpy array types into buffer
00176     :param buff: buffer, ``StringIO``
00177     :param numpy: numpy python module
00178     """
00179     try:
00180       pass
00181     except struct.error as se: self._check_types(se)
00182     except TypeError as te: self._check_types(te)
00183 
00184   def deserialize_numpy(self, str, numpy):
00185     """
00186     unpack serialized message in str into this message instance using numpy for array types
00187     :param str: byte array of serialized message, ``str``
00188     :param numpy: numpy python module
00189     """
00190     try:
00191       end = 0
00192       return self
00193     except struct.error as e:
00194       raise genpy.DeserializationError(e) #most likely buffer underfill
00195 
00196 _struct_I = genpy.struct_I
00197 class MoveAng(object):
00198   _type          = 'robotis/MoveAng'
00199   _md5sum = '0b06a5bbd694fba6102f1418541d5e49'
00200   _request_class  = MoveAngRequest
00201   _response_class = MoveAngResponse


robotis
Author(s): Travis Deyle, Advait Jain, Marc Killpack, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:37:53