_RobotCartConfiguration.py
Go to the documentation of this file.
00001 """autogenerated by genpy from cart_pushing_msgs/RobotCartConfiguration.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 RobotCartConfiguration(genpy.Message):
00010   _md5sum = "b6763adc7a4163e81b79c0de27053f06"
00011   _type = "cart_pushing_msgs/RobotCartConfiguration"
00012   _has_header = False #flag to mark the presence of a Header object
00013   _full_text = """# Robot's pose in reference frame
00014 geometry_msgs/Pose robot_pose
00015 
00016 # Cart's pose in base frame
00017 geometry_msgs/Pose cart_pose
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__ = ['robot_pose','cart_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        robot_pose,cart_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(RobotCartConfiguration, self).__init__(*args, **kwds)
00060       #message fields cannot be None, assign default values for those that are
00061       if self.robot_pose is None:
00062         self.robot_pose = geometry_msgs.msg.Pose()
00063       if self.cart_pose is None:
00064         self.cart_pose = geometry_msgs.msg.Pose()
00065     else:
00066       self.robot_pose = geometry_msgs.msg.Pose()
00067       self.cart_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.robot_pose.position.x, _x.robot_pose.position.y, _x.robot_pose.position.z, _x.robot_pose.orientation.x, _x.robot_pose.orientation.y, _x.robot_pose.orientation.z, _x.robot_pose.orientation.w, _x.cart_pose.position.x, _x.cart_pose.position.y, _x.cart_pose.position.z, _x.cart_pose.orientation.x, _x.cart_pose.orientation.y, _x.cart_pose.orientation.z, _x.cart_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.robot_pose is None:
00093         self.robot_pose = geometry_msgs.msg.Pose()
00094       if self.cart_pose is None:
00095         self.cart_pose = geometry_msgs.msg.Pose()
00096       end = 0
00097       _x = self
00098       start = end
00099       end += 112
00100       (_x.robot_pose.position.x, _x.robot_pose.position.y, _x.robot_pose.position.z, _x.robot_pose.orientation.x, _x.robot_pose.orientation.y, _x.robot_pose.orientation.z, _x.robot_pose.orientation.w, _x.cart_pose.position.x, _x.cart_pose.position.y, _x.cart_pose.position.z, _x.cart_pose.orientation.x, _x.cart_pose.orientation.y, _x.cart_pose.orientation.z, _x.cart_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.robot_pose.position.x, _x.robot_pose.position.y, _x.robot_pose.position.z, _x.robot_pose.orientation.x, _x.robot_pose.orientation.y, _x.robot_pose.orientation.z, _x.robot_pose.orientation.w, _x.cart_pose.position.x, _x.cart_pose.position.y, _x.cart_pose.position.z, _x.cart_pose.orientation.x, _x.cart_pose.orientation.y, _x.cart_pose.orientation.z, _x.cart_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.robot_pose is None:
00126         self.robot_pose = geometry_msgs.msg.Pose()
00127       if self.cart_pose is None:
00128         self.cart_pose = geometry_msgs.msg.Pose()
00129       end = 0
00130       _x = self
00131       start = end
00132       end += 112
00133       (_x.robot_pose.position.x, _x.robot_pose.position.y, _x.robot_pose.position.z, _x.robot_pose.orientation.x, _x.robot_pose.orientation.y, _x.robot_pose.orientation.z, _x.robot_pose.orientation.w, _x.cart_pose.position.x, _x.cart_pose.position.y, _x.cart_pose.position.z, _x.cart_pose.orientation.x, _x.cart_pose.orientation.y, _x.cart_pose.orientation.z, _x.cart_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")


cart_pushing_msgs
Author(s): Sachin Chitta
autogenerated on Tue Jan 7 2014 11:11:13