_InteractiveBlockManipulationResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from turtlebot_block_manipulation/InteractiveBlockManipulationResult.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 InteractiveBlockManipulationResult(genpy.Message):
00010   _md5sum = "3fec3f60e60c18ca7b67a7513b211e95"
00011   _type = "turtlebot_block_manipulation/InteractiveBlockManipulationResult"
00012   _has_header = False #flag to mark the presence of a Header object
00013   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00014 #result definition
00015 geometry_msgs/Pose pickup_pose
00016 geometry_msgs/Pose place_pose
00017 
00018 ================================================================================
00019 MSG: geometry_msgs/Pose
00020 # A representation of pose in free space, composed of postion and orientation. 
00021 Point position
00022 Quaternion orientation
00023 
00024 ================================================================================
00025 MSG: geometry_msgs/Point
00026 # This contains the position of a point in free space
00027 float64 x
00028 float64 y
00029 float64 z
00030 
00031 ================================================================================
00032 MSG: geometry_msgs/Quaternion
00033 # This represents an orientation in free space in quaternion form.
00034 
00035 float64 x
00036 float64 y
00037 float64 z
00038 float64 w
00039 
00040 """
00041   __slots__ = ['pickup_pose','place_pose']
00042   _slot_types = ['geometry_msgs/Pose','geometry_msgs/Pose']
00043 
00044   def __init__(self, *args, **kwds):
00045     """
00046     Constructor. Any message fields that are implicitly/explicitly
00047     set to None will be assigned a default value. The recommend
00048     use is keyword arguments as this is more robust to future message
00049     changes.  You cannot mix in-order arguments and keyword arguments.
00050 
00051     The available fields are:
00052        pickup_pose,place_pose
00053 
00054     :param args: complete set of field values, in .msg order
00055     :param kwds: use keyword arguments corresponding to message field names
00056     to set specific fields.
00057     """
00058     if args or kwds:
00059       super(InteractiveBlockManipulationResult, self).__init__(*args, **kwds)
00060       #message fields cannot be None, assign default values for those that are
00061       if self.pickup_pose is None:
00062         self.pickup_pose = geometry_msgs.msg.Pose()
00063       if self.place_pose is None:
00064         self.place_pose = geometry_msgs.msg.Pose()
00065     else:
00066       self.pickup_pose = geometry_msgs.msg.Pose()
00067       self.place_pose = geometry_msgs.msg.Pose()
00068 
00069   def _get_types(self):
00070     """
00071     internal API method
00072     """
00073     return self._slot_types
00074 
00075   def serialize(self, buff):
00076     """
00077     serialize message into buffer
00078     :param buff: buffer, ``StringIO``
00079     """
00080     try:
00081       _x = self
00082       buff.write(_struct_14d.pack(_x.pickup_pose.position.x, _x.pickup_pose.position.y, _x.pickup_pose.position.z, _x.pickup_pose.orientation.x, _x.pickup_pose.orientation.y, _x.pickup_pose.orientation.z, _x.pickup_pose.orientation.w, _x.place_pose.position.x, _x.place_pose.position.y, _x.place_pose.position.z, _x.place_pose.orientation.x, _x.place_pose.orientation.y, _x.place_pose.orientation.z, _x.place_pose.orientation.w))
00083     except struct.error as se: self._check_types(se)
00084     except TypeError as te: self._check_types(te)
00085 
00086   def deserialize(self, str):
00087     """
00088     unpack serialized message in str into this message instance
00089     :param str: byte array of serialized message, ``str``
00090     """
00091     try:
00092       if self.pickup_pose is None:
00093         self.pickup_pose = geometry_msgs.msg.Pose()
00094       if self.place_pose is None:
00095         self.place_pose = geometry_msgs.msg.Pose()
00096       end = 0
00097       _x = self
00098       start = end
00099       end += 112
00100       (_x.pickup_pose.position.x, _x.pickup_pose.position.y, _x.pickup_pose.position.z, _x.pickup_pose.orientation.x, _x.pickup_pose.orientation.y, _x.pickup_pose.orientation.z, _x.pickup_pose.orientation.w, _x.place_pose.position.x, _x.place_pose.position.y, _x.place_pose.position.z, _x.place_pose.orientation.x, _x.place_pose.orientation.y, _x.place_pose.orientation.z, _x.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end])
00101       return self
00102     except struct.error as e:
00103       raise genpy.DeserializationError(e) #most likely buffer underfill
00104 
00105 
00106   def serialize_numpy(self, buff, numpy):
00107     """
00108     serialize message with numpy array types into buffer
00109     :param buff: buffer, ``StringIO``
00110     :param numpy: numpy python module
00111     """
00112     try:
00113       _x = self
00114       buff.write(_struct_14d.pack(_x.pickup_pose.position.x, _x.pickup_pose.position.y, _x.pickup_pose.position.z, _x.pickup_pose.orientation.x, _x.pickup_pose.orientation.y, _x.pickup_pose.orientation.z, _x.pickup_pose.orientation.w, _x.place_pose.position.x, _x.place_pose.position.y, _x.place_pose.position.z, _x.place_pose.orientation.x, _x.place_pose.orientation.y, _x.place_pose.orientation.z, _x.place_pose.orientation.w))
00115     except struct.error as se: self._check_types(se)
00116     except TypeError as te: self._check_types(te)
00117 
00118   def deserialize_numpy(self, str, numpy):
00119     """
00120     unpack serialized message in str into this message instance using numpy for array types
00121     :param str: byte array of serialized message, ``str``
00122     :param numpy: numpy python module
00123     """
00124     try:
00125       if self.pickup_pose is None:
00126         self.pickup_pose = geometry_msgs.msg.Pose()
00127       if self.place_pose is None:
00128         self.place_pose = geometry_msgs.msg.Pose()
00129       end = 0
00130       _x = self
00131       start = end
00132       end += 112
00133       (_x.pickup_pose.position.x, _x.pickup_pose.position.y, _x.pickup_pose.position.z, _x.pickup_pose.orientation.x, _x.pickup_pose.orientation.y, _x.pickup_pose.orientation.z, _x.pickup_pose.orientation.w, _x.place_pose.position.x, _x.place_pose.position.y, _x.place_pose.position.z, _x.place_pose.orientation.x, _x.place_pose.orientation.y, _x.place_pose.orientation.z, _x.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end])
00134       return self
00135     except struct.error as e:
00136       raise genpy.DeserializationError(e) #most likely buffer underfill
00137 
00138 _struct_I = genpy.struct_I
00139 _struct_14d = struct.Struct("<14d")


turtlebot_block_manipulation
Author(s): Helen Oleynikova
autogenerated on Thu Dec 12 2013 12:33:52