$search
00001 """autogenerated by genmsg_py from GetNavPoseActionGoal.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import pr2_object_manipulation_msgs.msg 00006 import geometry_msgs.msg 00007 import roslib.rostime 00008 import actionlib_msgs.msg 00009 import std_msgs.msg 00010 00011 class GetNavPoseActionGoal(roslib.message.Message): 00012 _md5sum = "e46735325132cb6eb60ed036d0430c18" 00013 _type = "pr2_object_manipulation_msgs/GetNavPoseActionGoal" 00014 _has_header = True #flag to mark the presence of a Header object 00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00016 00017 Header header 00018 actionlib_msgs/GoalID goal_id 00019 GetNavPoseGoal goal 00020 00021 ================================================================================ 00022 MSG: std_msgs/Header 00023 # Standard metadata for higher-level stamped data types. 00024 # This is generally used to communicate timestamped data 00025 # in a particular coordinate frame. 00026 # 00027 # sequence ID: consecutively increasing ID 00028 uint32 seq 00029 #Two-integer timestamp that is expressed as: 00030 # * stamp.secs: seconds (stamp_secs) since epoch 00031 # * stamp.nsecs: nanoseconds since stamp_secs 00032 # time-handling sugar is provided by the client library 00033 time stamp 00034 #Frame this data is associated with 00035 # 0: no frame 00036 # 1: global frame 00037 string frame_id 00038 00039 ================================================================================ 00040 MSG: actionlib_msgs/GoalID 00041 # The stamp should store the time at which this goal was requested. 00042 # It is used by an action server when it tries to preempt all 00043 # goals that were requested before a certain time 00044 time stamp 00045 00046 # The id provides a way to associate feedback and 00047 # result message with specific goal requests. The id 00048 # specified must be unique. 00049 string id 00050 00051 00052 ================================================================================ 00053 MSG: pr2_object_manipulation_msgs/GetNavPoseGoal 00054 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00055 00056 # a seed position for the pose marker. If empty (quaternion of norm 0) 00057 # the marker will be initialized at the current pose of the header frame. 00058 geometry_msgs/PoseStamped starting_pose 00059 00060 # The maximum in-plane distance that the action will allow 00061 float32 max_distance 00062 00063 ================================================================================ 00064 MSG: geometry_msgs/PoseStamped 00065 # A Pose with reference coordinate frame and timestamp 00066 Header header 00067 Pose pose 00068 00069 ================================================================================ 00070 MSG: geometry_msgs/Pose 00071 # A representation of pose in free space, composed of postion and orientation. 00072 Point position 00073 Quaternion orientation 00074 00075 ================================================================================ 00076 MSG: geometry_msgs/Point 00077 # This contains the position of a point in free space 00078 float64 x 00079 float64 y 00080 float64 z 00081 00082 ================================================================================ 00083 MSG: geometry_msgs/Quaternion 00084 # This represents an orientation in free space in quaternion form. 00085 00086 float64 x 00087 float64 y 00088 float64 z 00089 float64 w 00090 00091 """ 00092 __slots__ = ['header','goal_id','goal'] 00093 _slot_types = ['Header','actionlib_msgs/GoalID','pr2_object_manipulation_msgs/GetNavPoseGoal'] 00094 00095 def __init__(self, *args, **kwds): 00096 """ 00097 Constructor. Any message fields that are implicitly/explicitly 00098 set to None will be assigned a default value. The recommend 00099 use is keyword arguments as this is more robust to future message 00100 changes. You cannot mix in-order arguments and keyword arguments. 00101 00102 The available fields are: 00103 header,goal_id,goal 00104 00105 @param args: complete set of field values, in .msg order 00106 @param kwds: use keyword arguments corresponding to message field names 00107 to set specific fields. 00108 """ 00109 if args or kwds: 00110 super(GetNavPoseActionGoal, self).__init__(*args, **kwds) 00111 #message fields cannot be None, assign default values for those that are 00112 if self.header is None: 00113 self.header = std_msgs.msg._Header.Header() 00114 if self.goal_id is None: 00115 self.goal_id = actionlib_msgs.msg.GoalID() 00116 if self.goal is None: 00117 self.goal = pr2_object_manipulation_msgs.msg.GetNavPoseGoal() 00118 else: 00119 self.header = std_msgs.msg._Header.Header() 00120 self.goal_id = actionlib_msgs.msg.GoalID() 00121 self.goal = pr2_object_manipulation_msgs.msg.GetNavPoseGoal() 00122 00123 def _get_types(self): 00124 """ 00125 internal API method 00126 """ 00127 return self._slot_types 00128 00129 def serialize(self, buff): 00130 """ 00131 serialize message into buffer 00132 @param buff: buffer 00133 @type buff: StringIO 00134 """ 00135 try: 00136 _x = self 00137 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00138 _x = self.header.frame_id 00139 length = len(_x) 00140 buff.write(struct.pack('<I%ss'%length, length, _x)) 00141 _x = self 00142 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs)) 00143 _x = self.goal_id.id 00144 length = len(_x) 00145 buff.write(struct.pack('<I%ss'%length, length, _x)) 00146 _x = self 00147 buff.write(_struct_3I.pack(_x.goal.starting_pose.header.seq, _x.goal.starting_pose.header.stamp.secs, _x.goal.starting_pose.header.stamp.nsecs)) 00148 _x = self.goal.starting_pose.header.frame_id 00149 length = len(_x) 00150 buff.write(struct.pack('<I%ss'%length, length, _x)) 00151 _x = self 00152 buff.write(_struct_7df.pack(_x.goal.starting_pose.pose.position.x, _x.goal.starting_pose.pose.position.y, _x.goal.starting_pose.pose.position.z, _x.goal.starting_pose.pose.orientation.x, _x.goal.starting_pose.pose.orientation.y, _x.goal.starting_pose.pose.orientation.z, _x.goal.starting_pose.pose.orientation.w, _x.goal.max_distance)) 00153 except struct.error as se: self._check_types(se) 00154 except TypeError as te: self._check_types(te) 00155 00156 def deserialize(self, str): 00157 """ 00158 unpack serialized message in str into this message instance 00159 @param str: byte array of serialized message 00160 @type str: str 00161 """ 00162 try: 00163 if self.header is None: 00164 self.header = std_msgs.msg._Header.Header() 00165 if self.goal_id is None: 00166 self.goal_id = actionlib_msgs.msg.GoalID() 00167 if self.goal is None: 00168 self.goal = pr2_object_manipulation_msgs.msg.GetNavPoseGoal() 00169 end = 0 00170 _x = self 00171 start = end 00172 end += 12 00173 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00174 start = end 00175 end += 4 00176 (length,) = _struct_I.unpack(str[start:end]) 00177 start = end 00178 end += length 00179 self.header.frame_id = str[start:end] 00180 _x = self 00181 start = end 00182 end += 8 00183 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00184 start = end 00185 end += 4 00186 (length,) = _struct_I.unpack(str[start:end]) 00187 start = end 00188 end += length 00189 self.goal_id.id = str[start:end] 00190 _x = self 00191 start = end 00192 end += 12 00193 (_x.goal.starting_pose.header.seq, _x.goal.starting_pose.header.stamp.secs, _x.goal.starting_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00194 start = end 00195 end += 4 00196 (length,) = _struct_I.unpack(str[start:end]) 00197 start = end 00198 end += length 00199 self.goal.starting_pose.header.frame_id = str[start:end] 00200 _x = self 00201 start = end 00202 end += 60 00203 (_x.goal.starting_pose.pose.position.x, _x.goal.starting_pose.pose.position.y, _x.goal.starting_pose.pose.position.z, _x.goal.starting_pose.pose.orientation.x, _x.goal.starting_pose.pose.orientation.y, _x.goal.starting_pose.pose.orientation.z, _x.goal.starting_pose.pose.orientation.w, _x.goal.max_distance,) = _struct_7df.unpack(str[start:end]) 00204 return self 00205 except struct.error as e: 00206 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00207 00208 00209 def serialize_numpy(self, buff, numpy): 00210 """ 00211 serialize message with numpy array types into buffer 00212 @param buff: buffer 00213 @type buff: StringIO 00214 @param numpy: numpy python module 00215 @type numpy module 00216 """ 00217 try: 00218 _x = self 00219 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00220 _x = self.header.frame_id 00221 length = len(_x) 00222 buff.write(struct.pack('<I%ss'%length, length, _x)) 00223 _x = self 00224 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs)) 00225 _x = self.goal_id.id 00226 length = len(_x) 00227 buff.write(struct.pack('<I%ss'%length, length, _x)) 00228 _x = self 00229 buff.write(_struct_3I.pack(_x.goal.starting_pose.header.seq, _x.goal.starting_pose.header.stamp.secs, _x.goal.starting_pose.header.stamp.nsecs)) 00230 _x = self.goal.starting_pose.header.frame_id 00231 length = len(_x) 00232 buff.write(struct.pack('<I%ss'%length, length, _x)) 00233 _x = self 00234 buff.write(_struct_7df.pack(_x.goal.starting_pose.pose.position.x, _x.goal.starting_pose.pose.position.y, _x.goal.starting_pose.pose.position.z, _x.goal.starting_pose.pose.orientation.x, _x.goal.starting_pose.pose.orientation.y, _x.goal.starting_pose.pose.orientation.z, _x.goal.starting_pose.pose.orientation.w, _x.goal.max_distance)) 00235 except struct.error as se: self._check_types(se) 00236 except TypeError as te: self._check_types(te) 00237 00238 def deserialize_numpy(self, str, numpy): 00239 """ 00240 unpack serialized message in str into this message instance using numpy for array types 00241 @param str: byte array of serialized message 00242 @type str: str 00243 @param numpy: numpy python module 00244 @type numpy: module 00245 """ 00246 try: 00247 if self.header is None: 00248 self.header = std_msgs.msg._Header.Header() 00249 if self.goal_id is None: 00250 self.goal_id = actionlib_msgs.msg.GoalID() 00251 if self.goal is None: 00252 self.goal = pr2_object_manipulation_msgs.msg.GetNavPoseGoal() 00253 end = 0 00254 _x = self 00255 start = end 00256 end += 12 00257 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00258 start = end 00259 end += 4 00260 (length,) = _struct_I.unpack(str[start:end]) 00261 start = end 00262 end += length 00263 self.header.frame_id = str[start:end] 00264 _x = self 00265 start = end 00266 end += 8 00267 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00268 start = end 00269 end += 4 00270 (length,) = _struct_I.unpack(str[start:end]) 00271 start = end 00272 end += length 00273 self.goal_id.id = str[start:end] 00274 _x = self 00275 start = end 00276 end += 12 00277 (_x.goal.starting_pose.header.seq, _x.goal.starting_pose.header.stamp.secs, _x.goal.starting_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00278 start = end 00279 end += 4 00280 (length,) = _struct_I.unpack(str[start:end]) 00281 start = end 00282 end += length 00283 self.goal.starting_pose.header.frame_id = str[start:end] 00284 _x = self 00285 start = end 00286 end += 60 00287 (_x.goal.starting_pose.pose.position.x, _x.goal.starting_pose.pose.position.y, _x.goal.starting_pose.pose.position.z, _x.goal.starting_pose.pose.orientation.x, _x.goal.starting_pose.pose.orientation.y, _x.goal.starting_pose.pose.orientation.z, _x.goal.starting_pose.pose.orientation.w, _x.goal.max_distance,) = _struct_7df.unpack(str[start:end]) 00288 return self 00289 except struct.error as e: 00290 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00291 00292 _struct_I = roslib.message.struct_I 00293 _struct_3I = struct.Struct("<3I") 00294 _struct_2I = struct.Struct("<2I") 00295 _struct_7df = struct.Struct("<7df")