$search
00001 """autogenerated by genmsg_py from RobotCartConfiguration.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class RobotCartConfiguration(roslib.message.Message): 00008 _md5sum = "b6763adc7a4163e81b79c0de27053f06" 00009 _type = "cart_pushing_msgs/RobotCartConfiguration" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """# Robot's pose in reference frame 00012 geometry_msgs/Pose robot_pose 00013 00014 # Cart's pose in base frame 00015 geometry_msgs/Pose cart_pose 00016 ================================================================================ 00017 MSG: geometry_msgs/Pose 00018 # A representation of pose in free space, composed of postion and orientation. 00019 Point position 00020 Quaternion orientation 00021 00022 ================================================================================ 00023 MSG: geometry_msgs/Point 00024 # This contains the position of a point in free space 00025 float64 x 00026 float64 y 00027 float64 z 00028 00029 ================================================================================ 00030 MSG: geometry_msgs/Quaternion 00031 # This represents an orientation in free space in quaternion form. 00032 00033 float64 x 00034 float64 y 00035 float64 z 00036 float64 w 00037 00038 """ 00039 __slots__ = ['robot_pose','cart_pose'] 00040 _slot_types = ['geometry_msgs/Pose','geometry_msgs/Pose'] 00041 00042 def __init__(self, *args, **kwds): 00043 """ 00044 Constructor. Any message fields that are implicitly/explicitly 00045 set to None will be assigned a default value. The recommend 00046 use is keyword arguments as this is more robust to future message 00047 changes. You cannot mix in-order arguments and keyword arguments. 00048 00049 The available fields are: 00050 robot_pose,cart_pose 00051 00052 @param args: complete set of field values, in .msg order 00053 @param kwds: use keyword arguments corresponding to message field names 00054 to set specific fields. 00055 """ 00056 if args or kwds: 00057 super(RobotCartConfiguration, self).__init__(*args, **kwds) 00058 #message fields cannot be None, assign default values for those that are 00059 if self.robot_pose is None: 00060 self.robot_pose = geometry_msgs.msg.Pose() 00061 if self.cart_pose is None: 00062 self.cart_pose = geometry_msgs.msg.Pose() 00063 else: 00064 self.robot_pose = geometry_msgs.msg.Pose() 00065 self.cart_pose = geometry_msgs.msg.Pose() 00066 00067 def _get_types(self): 00068 """ 00069 internal API method 00070 """ 00071 return self._slot_types 00072 00073 def serialize(self, buff): 00074 """ 00075 serialize message into buffer 00076 @param buff: buffer 00077 @type buff: StringIO 00078 """ 00079 try: 00080 _x = self 00081 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)) 00082 except struct.error as se: self._check_types(se) 00083 except TypeError as te: self._check_types(te) 00084 00085 def deserialize(self, str): 00086 """ 00087 unpack serialized message in str into this message instance 00088 @param str: byte array of serialized message 00089 @type str: 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 roslib.message.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 00110 @type buff: StringIO 00111 @param numpy: numpy python module 00112 @type numpy module 00113 """ 00114 try: 00115 _x = self 00116 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)) 00117 except struct.error as se: self._check_types(se) 00118 except TypeError as te: self._check_types(te) 00119 00120 def deserialize_numpy(self, str, numpy): 00121 """ 00122 unpack serialized message in str into this message instance using numpy for array types 00123 @param str: byte array of serialized message 00124 @type str: str 00125 @param numpy: numpy python module 00126 @type numpy: module 00127 """ 00128 try: 00129 if self.robot_pose is None: 00130 self.robot_pose = geometry_msgs.msg.Pose() 00131 if self.cart_pose is None: 00132 self.cart_pose = geometry_msgs.msg.Pose() 00133 end = 0 00134 _x = self 00135 start = end 00136 end += 112 00137 (_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]) 00138 return self 00139 except struct.error as e: 00140 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00141 00142 _struct_I = roslib.message.struct_I 00143 _struct_14d = struct.Struct("<14d")