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


nao_remote
Author(s): Armin Hornung
autogenerated on Tue Oct 15 2013 10:07:07