$search
00001 """autogenerated by genmsg_py from GetNavPoseGoal.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 00008 class GetNavPoseGoal(roslib.message.Message): 00009 _md5sum = "b150a1c21c4b1afea792e960a06c3770" 00010 _type = "pr2_object_manipulation_msgs/GetNavPoseGoal" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00013 00014 # a seed position for the pose marker. If empty (quaternion of norm 0) 00015 # the marker will be initialized at the current pose of the header frame. 00016 geometry_msgs/PoseStamped starting_pose 00017 00018 # The maximum in-plane distance that the action will allow 00019 float32 max_distance 00020 00021 ================================================================================ 00022 MSG: geometry_msgs/PoseStamped 00023 # A Pose with reference coordinate frame and timestamp 00024 Header header 00025 Pose pose 00026 00027 ================================================================================ 00028 MSG: std_msgs/Header 00029 # Standard metadata for higher-level stamped data types. 00030 # This is generally used to communicate timestamped data 00031 # in a particular coordinate frame. 00032 # 00033 # sequence ID: consecutively increasing ID 00034 uint32 seq 00035 #Two-integer timestamp that is expressed as: 00036 # * stamp.secs: seconds (stamp_secs) since epoch 00037 # * stamp.nsecs: nanoseconds since stamp_secs 00038 # time-handling sugar is provided by the client library 00039 time stamp 00040 #Frame this data is associated with 00041 # 0: no frame 00042 # 1: global frame 00043 string frame_id 00044 00045 ================================================================================ 00046 MSG: geometry_msgs/Pose 00047 # A representation of pose in free space, composed of postion and orientation. 00048 Point position 00049 Quaternion orientation 00050 00051 ================================================================================ 00052 MSG: geometry_msgs/Point 00053 # This contains the position of a point in free space 00054 float64 x 00055 float64 y 00056 float64 z 00057 00058 ================================================================================ 00059 MSG: geometry_msgs/Quaternion 00060 # This represents an orientation in free space in quaternion form. 00061 00062 float64 x 00063 float64 y 00064 float64 z 00065 float64 w 00066 00067 """ 00068 __slots__ = ['starting_pose','max_distance'] 00069 _slot_types = ['geometry_msgs/PoseStamped','float32'] 00070 00071 def __init__(self, *args, **kwds): 00072 """ 00073 Constructor. Any message fields that are implicitly/explicitly 00074 set to None will be assigned a default value. The recommend 00075 use is keyword arguments as this is more robust to future message 00076 changes. You cannot mix in-order arguments and keyword arguments. 00077 00078 The available fields are: 00079 starting_pose,max_distance 00080 00081 @param args: complete set of field values, in .msg order 00082 @param kwds: use keyword arguments corresponding to message field names 00083 to set specific fields. 00084 """ 00085 if args or kwds: 00086 super(GetNavPoseGoal, self).__init__(*args, **kwds) 00087 #message fields cannot be None, assign default values for those that are 00088 if self.starting_pose is None: 00089 self.starting_pose = geometry_msgs.msg.PoseStamped() 00090 if self.max_distance is None: 00091 self.max_distance = 0. 00092 else: 00093 self.starting_pose = geometry_msgs.msg.PoseStamped() 00094 self.max_distance = 0. 00095 00096 def _get_types(self): 00097 """ 00098 internal API method 00099 """ 00100 return self._slot_types 00101 00102 def serialize(self, buff): 00103 """ 00104 serialize message into buffer 00105 @param buff: buffer 00106 @type buff: StringIO 00107 """ 00108 try: 00109 _x = self 00110 buff.write(_struct_3I.pack(_x.starting_pose.header.seq, _x.starting_pose.header.stamp.secs, _x.starting_pose.header.stamp.nsecs)) 00111 _x = self.starting_pose.header.frame_id 00112 length = len(_x) 00113 buff.write(struct.pack('<I%ss'%length, length, _x)) 00114 _x = self 00115 buff.write(_struct_7df.pack(_x.starting_pose.pose.position.x, _x.starting_pose.pose.position.y, _x.starting_pose.pose.position.z, _x.starting_pose.pose.orientation.x, _x.starting_pose.pose.orientation.y, _x.starting_pose.pose.orientation.z, _x.starting_pose.pose.orientation.w, _x.max_distance)) 00116 except struct.error as se: self._check_types(se) 00117 except TypeError as te: self._check_types(te) 00118 00119 def deserialize(self, str): 00120 """ 00121 unpack serialized message in str into this message instance 00122 @param str: byte array of serialized message 00123 @type str: str 00124 """ 00125 try: 00126 if self.starting_pose is None: 00127 self.starting_pose = geometry_msgs.msg.PoseStamped() 00128 end = 0 00129 _x = self 00130 start = end 00131 end += 12 00132 (_x.starting_pose.header.seq, _x.starting_pose.header.stamp.secs, _x.starting_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00133 start = end 00134 end += 4 00135 (length,) = _struct_I.unpack(str[start:end]) 00136 start = end 00137 end += length 00138 self.starting_pose.header.frame_id = str[start:end] 00139 _x = self 00140 start = end 00141 end += 60 00142 (_x.starting_pose.pose.position.x, _x.starting_pose.pose.position.y, _x.starting_pose.pose.position.z, _x.starting_pose.pose.orientation.x, _x.starting_pose.pose.orientation.y, _x.starting_pose.pose.orientation.z, _x.starting_pose.pose.orientation.w, _x.max_distance,) = _struct_7df.unpack(str[start:end]) 00143 return self 00144 except struct.error as e: 00145 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00146 00147 00148 def serialize_numpy(self, buff, numpy): 00149 """ 00150 serialize message with numpy array types into buffer 00151 @param buff: buffer 00152 @type buff: StringIO 00153 @param numpy: numpy python module 00154 @type numpy module 00155 """ 00156 try: 00157 _x = self 00158 buff.write(_struct_3I.pack(_x.starting_pose.header.seq, _x.starting_pose.header.stamp.secs, _x.starting_pose.header.stamp.nsecs)) 00159 _x = self.starting_pose.header.frame_id 00160 length = len(_x) 00161 buff.write(struct.pack('<I%ss'%length, length, _x)) 00162 _x = self 00163 buff.write(_struct_7df.pack(_x.starting_pose.pose.position.x, _x.starting_pose.pose.position.y, _x.starting_pose.pose.position.z, _x.starting_pose.pose.orientation.x, _x.starting_pose.pose.orientation.y, _x.starting_pose.pose.orientation.z, _x.starting_pose.pose.orientation.w, _x.max_distance)) 00164 except struct.error as se: self._check_types(se) 00165 except TypeError as te: self._check_types(te) 00166 00167 def deserialize_numpy(self, str, numpy): 00168 """ 00169 unpack serialized message in str into this message instance using numpy for array types 00170 @param str: byte array of serialized message 00171 @type str: str 00172 @param numpy: numpy python module 00173 @type numpy: module 00174 """ 00175 try: 00176 if self.starting_pose is None: 00177 self.starting_pose = geometry_msgs.msg.PoseStamped() 00178 end = 0 00179 _x = self 00180 start = end 00181 end += 12 00182 (_x.starting_pose.header.seq, _x.starting_pose.header.stamp.secs, _x.starting_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00183 start = end 00184 end += 4 00185 (length,) = _struct_I.unpack(str[start:end]) 00186 start = end 00187 end += length 00188 self.starting_pose.header.frame_id = str[start:end] 00189 _x = self 00190 start = end 00191 end += 60 00192 (_x.starting_pose.pose.position.x, _x.starting_pose.pose.position.y, _x.starting_pose.pose.position.z, _x.starting_pose.pose.orientation.x, _x.starting_pose.pose.orientation.y, _x.starting_pose.pose.orientation.z, _x.starting_pose.pose.orientation.w, _x.max_distance,) = _struct_7df.unpack(str[start:end]) 00193 return self 00194 except struct.error as e: 00195 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00196 00197 _struct_I = roslib.message.struct_I 00198 _struct_3I = struct.Struct("<3I") 00199 _struct_7df = struct.Struct("<7df")