_None_TransformArray.py
Go to the documentation of this file.
00001 """autogenerated by genpy from m3skin_ros/None_TransformArrayRequest.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 None_TransformArrayRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "m3skin_ros/None_TransformArrayRequest"
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(None_TransformArrayRequest, 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 m3skin_ros/None_TransformArrayResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091 
00092 import geometry_msgs.msg
00093 
00094 class None_TransformArrayResponse(genpy.Message):
00095   _md5sum = "052d95b95a619394e582c25c2aeed50c"
00096   _type = "m3skin_ros/None_TransformArrayResponse"
00097   _has_header = False #flag to mark the presence of a Header object
00098   _full_text = """
00099 
00100 
00101 geometry_msgs/Transform[] data
00102 
00103 
00104 ================================================================================
00105 MSG: geometry_msgs/Transform
00106 # This represents the transform between two coordinate frames in free space.
00107 
00108 Vector3 translation
00109 Quaternion rotation
00110 
00111 ================================================================================
00112 MSG: geometry_msgs/Vector3
00113 # This represents a vector in free space. 
00114 
00115 float64 x
00116 float64 y
00117 float64 z
00118 ================================================================================
00119 MSG: geometry_msgs/Quaternion
00120 # This represents an orientation in free space in quaternion form.
00121 
00122 float64 x
00123 float64 y
00124 float64 z
00125 float64 w
00126 
00127 """
00128   __slots__ = ['data']
00129   _slot_types = ['geometry_msgs/Transform[]']
00130 
00131   def __init__(self, *args, **kwds):
00132     """
00133     Constructor. Any message fields that are implicitly/explicitly
00134     set to None will be assigned a default value. The recommend
00135     use is keyword arguments as this is more robust to future message
00136     changes.  You cannot mix in-order arguments and keyword arguments.
00137 
00138     The available fields are:
00139        data
00140 
00141     :param args: complete set of field values, in .msg order
00142     :param kwds: use keyword arguments corresponding to message field names
00143     to set specific fields.
00144     """
00145     if args or kwds:
00146       super(None_TransformArrayResponse, self).__init__(*args, **kwds)
00147       #message fields cannot be None, assign default values for those that are
00148       if self.data is None:
00149         self.data = []
00150     else:
00151       self.data = []
00152 
00153   def _get_types(self):
00154     """
00155     internal API method
00156     """
00157     return self._slot_types
00158 
00159   def serialize(self, buff):
00160     """
00161     serialize message into buffer
00162     :param buff: buffer, ``StringIO``
00163     """
00164     try:
00165       length = len(self.data)
00166       buff.write(_struct_I.pack(length))
00167       for val1 in self.data:
00168         _v1 = val1.translation
00169         _x = _v1
00170         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00171         _v2 = val1.rotation
00172         _x = _v2
00173         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00174     except struct.error as se: self._check_types(se)
00175     except TypeError as te: self._check_types(te)
00176 
00177   def deserialize(self, str):
00178     """
00179     unpack serialized message in str into this message instance
00180     :param str: byte array of serialized message, ``str``
00181     """
00182     try:
00183       if self.data is None:
00184         self.data = None
00185       end = 0
00186       start = end
00187       end += 4
00188       (length,) = _struct_I.unpack(str[start:end])
00189       self.data = []
00190       for i in range(0, length):
00191         val1 = geometry_msgs.msg.Transform()
00192         _v3 = val1.translation
00193         _x = _v3
00194         start = end
00195         end += 24
00196         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00197         _v4 = val1.rotation
00198         _x = _v4
00199         start = end
00200         end += 32
00201         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00202         self.data.append(val1)
00203       return self
00204     except struct.error as e:
00205       raise genpy.DeserializationError(e) #most likely buffer underfill
00206 
00207 
00208   def serialize_numpy(self, buff, numpy):
00209     """
00210     serialize message with numpy array types into buffer
00211     :param buff: buffer, ``StringIO``
00212     :param numpy: numpy python module
00213     """
00214     try:
00215       length = len(self.data)
00216       buff.write(_struct_I.pack(length))
00217       for val1 in self.data:
00218         _v5 = val1.translation
00219         _x = _v5
00220         buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00221         _v6 = val1.rotation
00222         _x = _v6
00223         buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00224     except struct.error as se: self._check_types(se)
00225     except TypeError as te: self._check_types(te)
00226 
00227   def deserialize_numpy(self, str, numpy):
00228     """
00229     unpack serialized message in str into this message instance using numpy for array types
00230     :param str: byte array of serialized message, ``str``
00231     :param numpy: numpy python module
00232     """
00233     try:
00234       if self.data is None:
00235         self.data = None
00236       end = 0
00237       start = end
00238       end += 4
00239       (length,) = _struct_I.unpack(str[start:end])
00240       self.data = []
00241       for i in range(0, length):
00242         val1 = geometry_msgs.msg.Transform()
00243         _v7 = val1.translation
00244         _x = _v7
00245         start = end
00246         end += 24
00247         (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00248         _v8 = val1.rotation
00249         _x = _v8
00250         start = end
00251         end += 32
00252         (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00253         self.data.append(val1)
00254       return self
00255     except struct.error as e:
00256       raise genpy.DeserializationError(e) #most likely buffer underfill
00257 
00258 _struct_I = genpy.struct_I
00259 _struct_4d = struct.Struct("<4d")
00260 _struct_3d = struct.Struct("<3d")
00261 class None_TransformArray(object):
00262   _type          = 'm3skin_ros/None_TransformArray'
00263   _md5sum = '052d95b95a619394e582c25c2aeed50c'
00264   _request_class  = None_TransformArrayRequest
00265   _response_class = None_TransformArrayResponse


m3skin_ros
Author(s): Meka Robotics
autogenerated on Wed Nov 27 2013 11:34:26