_compute_effector_camera.py
Go to the documentation of this file.
00001 """autogenerated by genpy from visp_hand2eye_calibration/compute_effector_cameraRequest.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 compute_effector_cameraRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "visp_hand2eye_calibration/compute_effector_cameraRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 
00014 
00015 
00016 
00017 """
00018   __slots__ = []
00019   _slot_types = []
00020 
00021   def __init__(self, *args, **kwds):
00022     """
00023     Constructor. Any message fields that are implicitly/explicitly
00024     set to None will be assigned a default value. The recommend
00025     use is keyword arguments as this is more robust to future message
00026     changes.  You cannot mix in-order arguments and keyword arguments.
00027 
00028     The available fields are:
00029        
00030 
00031     :param args: complete set of field values, in .msg order
00032     :param kwds: use keyword arguments corresponding to message field names
00033     to set specific fields.
00034     """
00035     if args or kwds:
00036       super(compute_effector_cameraRequest, self).__init__(*args, **kwds)
00037 
00038   def _get_types(self):
00039     """
00040     internal API method
00041     """
00042     return self._slot_types
00043 
00044   def serialize(self, buff):
00045     """
00046     serialize message into buffer
00047     :param buff: buffer, ``StringIO``
00048     """
00049     try:
00050       pass
00051     except struct.error as se: self._check_types(se)
00052     except TypeError as te: self._check_types(te)
00053 
00054   def deserialize(self, str):
00055     """
00056     unpack serialized message in str into this message instance
00057     :param str: byte array of serialized message, ``str``
00058     """
00059     try:
00060       end = 0
00061       return self
00062     except struct.error as e:
00063       raise genpy.DeserializationError(e) #most likely buffer underfill
00064 
00065 
00066   def serialize_numpy(self, buff, numpy):
00067     """
00068     serialize message with numpy array types into buffer
00069     :param buff: buffer, ``StringIO``
00070     :param numpy: numpy python module
00071     """
00072     try:
00073       pass
00074     except struct.error as se: self._check_types(se)
00075     except TypeError as te: self._check_types(te)
00076 
00077   def deserialize_numpy(self, str, numpy):
00078     """
00079     unpack serialized message in str into this message instance using numpy for array types
00080     :param str: byte array of serialized message, ``str``
00081     :param numpy: numpy python module
00082     """
00083     try:
00084       end = 0
00085       return self
00086     except struct.error as e:
00087       raise genpy.DeserializationError(e) #most likely buffer underfill
00088 
00089 _struct_I = genpy.struct_I
00090 """autogenerated by genpy from visp_hand2eye_calibration/compute_effector_cameraResponse.msg. Do not edit."""
00091 import sys
00092 python3 = True if sys.hexversion > 0x03000000 else False
00093 import genpy
00094 import struct
00095 
00096 import geometry_msgs.msg
00097 
00098 class compute_effector_cameraResponse(genpy.Message):
00099   _md5sum = "e28a9ea34e6e135a6309cbdf6fb0ad0d"
00100   _type = "visp_hand2eye_calibration/compute_effector_cameraResponse"
00101   _has_header = False #flag to mark the presence of a Header object
00102   _full_text = """geometry_msgs/Transform effector_camera
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__ = ['effector_camera']
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        effector_camera
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(compute_effector_cameraResponse, self).__init__(*args, **kwds)
00147       #message fields cannot be None, assign default values for those that are
00148       if self.effector_camera is None:
00149         self.effector_camera = geometry_msgs.msg.Transform()
00150     else:
00151       self.effector_camera = geometry_msgs.msg.Transform()
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       _x = self
00166       buff.write(_struct_7d.pack(_x.effector_camera.translation.x, _x.effector_camera.translation.y, _x.effector_camera.translation.z, _x.effector_camera.rotation.x, _x.effector_camera.rotation.y, _x.effector_camera.rotation.z, _x.effector_camera.rotation.w))
00167     except struct.error as se: self._check_types(se)
00168     except TypeError as te: self._check_types(te)
00169 
00170   def deserialize(self, str):
00171     """
00172     unpack serialized message in str into this message instance
00173     :param str: byte array of serialized message, ``str``
00174     """
00175     try:
00176       if self.effector_camera is None:
00177         self.effector_camera = geometry_msgs.msg.Transform()
00178       end = 0
00179       _x = self
00180       start = end
00181       end += 56
00182       (_x.effector_camera.translation.x, _x.effector_camera.translation.y, _x.effector_camera.translation.z, _x.effector_camera.rotation.x, _x.effector_camera.rotation.y, _x.effector_camera.rotation.z, _x.effector_camera.rotation.w,) = _struct_7d.unpack(str[start:end])
00183       return self
00184     except struct.error as e:
00185       raise genpy.DeserializationError(e) #most likely buffer underfill
00186 
00187 
00188   def serialize_numpy(self, buff, numpy):
00189     """
00190     serialize message with numpy array types into buffer
00191     :param buff: buffer, ``StringIO``
00192     :param numpy: numpy python module
00193     """
00194     try:
00195       _x = self
00196       buff.write(_struct_7d.pack(_x.effector_camera.translation.x, _x.effector_camera.translation.y, _x.effector_camera.translation.z, _x.effector_camera.rotation.x, _x.effector_camera.rotation.y, _x.effector_camera.rotation.z, _x.effector_camera.rotation.w))
00197     except struct.error as se: self._check_types(se)
00198     except TypeError as te: self._check_types(te)
00199 
00200   def deserialize_numpy(self, str, numpy):
00201     """
00202     unpack serialized message in str into this message instance using numpy for array types
00203     :param str: byte array of serialized message, ``str``
00204     :param numpy: numpy python module
00205     """
00206     try:
00207       if self.effector_camera is None:
00208         self.effector_camera = geometry_msgs.msg.Transform()
00209       end = 0
00210       _x = self
00211       start = end
00212       end += 56
00213       (_x.effector_camera.translation.x, _x.effector_camera.translation.y, _x.effector_camera.translation.z, _x.effector_camera.rotation.x, _x.effector_camera.rotation.y, _x.effector_camera.rotation.z, _x.effector_camera.rotation.w,) = _struct_7d.unpack(str[start:end])
00214       return self
00215     except struct.error as e:
00216       raise genpy.DeserializationError(e) #most likely buffer underfill
00217 
00218 _struct_I = genpy.struct_I
00219 _struct_7d = struct.Struct("<7d")
00220 class compute_effector_camera(object):
00221   _type          = 'visp_hand2eye_calibration/compute_effector_camera'
00222   _md5sum = 'e28a9ea34e6e135a6309cbdf6fb0ad0d'
00223   _request_class  = compute_effector_cameraRequest
00224   _response_class = compute_effector_cameraResponse


visp_hand2eye_calibration
Author(s): Filip Novotny
autogenerated on Sat Dec 28 2013 17:45:52