$search
00001 """autogenerated by genmsg_py from GetGripperPoseActionFeedback.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 GetGripperPoseActionFeedback(roslib.message.Message): 00012 _md5sum = "827a28d3cc9d535aa16d3748d83a6d58" 00013 _type = "pr2_object_manipulation_msgs/GetGripperPoseActionFeedback" 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/GoalStatus status 00019 GetGripperPoseFeedback feedback 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/GoalStatus 00041 GoalID goal_id 00042 uint8 status 00043 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00044 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00045 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00046 # and has since completed its execution (Terminal State) 00047 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00048 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00049 # to some failure (Terminal State) 00050 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00051 # because the goal was unattainable or invalid (Terminal State) 00052 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00053 # and has not yet completed execution 00054 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00055 # but the action server has not yet confirmed that the goal is canceled 00056 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00057 # and was successfully cancelled (Terminal State) 00058 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00059 # sent over the wire by an action server 00060 00061 #Allow for the user to associate a string with GoalStatus for debugging 00062 string text 00063 00064 00065 ================================================================================ 00066 MSG: actionlib_msgs/GoalID 00067 # The stamp should store the time at which this goal was requested. 00068 # It is used by an action server when it tries to preempt all 00069 # goals that were requested before a certain time 00070 time stamp 00071 00072 # The id provides a way to associate feedback and 00073 # result message with specific goal requests. The id 00074 # specified must be unique. 00075 string id 00076 00077 00078 ================================================================================ 00079 MSG: pr2_object_manipulation_msgs/GetGripperPoseFeedback 00080 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00081 00082 # the feedback gripper pose, which is basically raw and unfiltered but may be useful 00083 geometry_msgs/PoseStamped gripper_pose 00084 float32 gripper_opening 00085 00086 00087 ================================================================================ 00088 MSG: geometry_msgs/PoseStamped 00089 # A Pose with reference coordinate frame and timestamp 00090 Header header 00091 Pose pose 00092 00093 ================================================================================ 00094 MSG: geometry_msgs/Pose 00095 # A representation of pose in free space, composed of postion and orientation. 00096 Point position 00097 Quaternion orientation 00098 00099 ================================================================================ 00100 MSG: geometry_msgs/Point 00101 # This contains the position of a point in free space 00102 float64 x 00103 float64 y 00104 float64 z 00105 00106 ================================================================================ 00107 MSG: geometry_msgs/Quaternion 00108 # This represents an orientation in free space in quaternion form. 00109 00110 float64 x 00111 float64 y 00112 float64 z 00113 float64 w 00114 00115 """ 00116 __slots__ = ['header','status','feedback'] 00117 _slot_types = ['Header','actionlib_msgs/GoalStatus','pr2_object_manipulation_msgs/GetGripperPoseFeedback'] 00118 00119 def __init__(self, *args, **kwds): 00120 """ 00121 Constructor. Any message fields that are implicitly/explicitly 00122 set to None will be assigned a default value. The recommend 00123 use is keyword arguments as this is more robust to future message 00124 changes. You cannot mix in-order arguments and keyword arguments. 00125 00126 The available fields are: 00127 header,status,feedback 00128 00129 @param args: complete set of field values, in .msg order 00130 @param kwds: use keyword arguments corresponding to message field names 00131 to set specific fields. 00132 """ 00133 if args or kwds: 00134 super(GetGripperPoseActionFeedback, self).__init__(*args, **kwds) 00135 #message fields cannot be None, assign default values for those that are 00136 if self.header is None: 00137 self.header = std_msgs.msg._Header.Header() 00138 if self.status is None: 00139 self.status = actionlib_msgs.msg.GoalStatus() 00140 if self.feedback is None: 00141 self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback() 00142 else: 00143 self.header = std_msgs.msg._Header.Header() 00144 self.status = actionlib_msgs.msg.GoalStatus() 00145 self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback() 00146 00147 def _get_types(self): 00148 """ 00149 internal API method 00150 """ 00151 return self._slot_types 00152 00153 def serialize(self, buff): 00154 """ 00155 serialize message into buffer 00156 @param buff: buffer 00157 @type buff: StringIO 00158 """ 00159 try: 00160 _x = self 00161 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00162 _x = self.header.frame_id 00163 length = len(_x) 00164 buff.write(struct.pack('<I%ss'%length, length, _x)) 00165 _x = self 00166 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00167 _x = self.status.goal_id.id 00168 length = len(_x) 00169 buff.write(struct.pack('<I%ss'%length, length, _x)) 00170 buff.write(_struct_B.pack(self.status.status)) 00171 _x = self.status.text 00172 length = len(_x) 00173 buff.write(struct.pack('<I%ss'%length, length, _x)) 00174 _x = self 00175 buff.write(_struct_3I.pack(_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs)) 00176 _x = self.feedback.gripper_pose.header.frame_id 00177 length = len(_x) 00178 buff.write(struct.pack('<I%ss'%length, length, _x)) 00179 _x = self 00180 buff.write(_struct_7df.pack(_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening)) 00181 except struct.error as se: self._check_types(se) 00182 except TypeError as te: self._check_types(te) 00183 00184 def deserialize(self, str): 00185 """ 00186 unpack serialized message in str into this message instance 00187 @param str: byte array of serialized message 00188 @type str: str 00189 """ 00190 try: 00191 if self.header is None: 00192 self.header = std_msgs.msg._Header.Header() 00193 if self.status is None: 00194 self.status = actionlib_msgs.msg.GoalStatus() 00195 if self.feedback is None: 00196 self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback() 00197 end = 0 00198 _x = self 00199 start = end 00200 end += 12 00201 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00202 start = end 00203 end += 4 00204 (length,) = _struct_I.unpack(str[start:end]) 00205 start = end 00206 end += length 00207 self.header.frame_id = str[start:end] 00208 _x = self 00209 start = end 00210 end += 8 00211 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00212 start = end 00213 end += 4 00214 (length,) = _struct_I.unpack(str[start:end]) 00215 start = end 00216 end += length 00217 self.status.goal_id.id = str[start:end] 00218 start = end 00219 end += 1 00220 (self.status.status,) = _struct_B.unpack(str[start:end]) 00221 start = end 00222 end += 4 00223 (length,) = _struct_I.unpack(str[start:end]) 00224 start = end 00225 end += length 00226 self.status.text = str[start:end] 00227 _x = self 00228 start = end 00229 end += 12 00230 (_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00231 start = end 00232 end += 4 00233 (length,) = _struct_I.unpack(str[start:end]) 00234 start = end 00235 end += length 00236 self.feedback.gripper_pose.header.frame_id = str[start:end] 00237 _x = self 00238 start = end 00239 end += 60 00240 (_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening,) = _struct_7df.unpack(str[start:end]) 00241 return self 00242 except struct.error as e: 00243 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00244 00245 00246 def serialize_numpy(self, buff, numpy): 00247 """ 00248 serialize message with numpy array types into buffer 00249 @param buff: buffer 00250 @type buff: StringIO 00251 @param numpy: numpy python module 00252 @type numpy module 00253 """ 00254 try: 00255 _x = self 00256 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00257 _x = self.header.frame_id 00258 length = len(_x) 00259 buff.write(struct.pack('<I%ss'%length, length, _x)) 00260 _x = self 00261 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00262 _x = self.status.goal_id.id 00263 length = len(_x) 00264 buff.write(struct.pack('<I%ss'%length, length, _x)) 00265 buff.write(_struct_B.pack(self.status.status)) 00266 _x = self.status.text 00267 length = len(_x) 00268 buff.write(struct.pack('<I%ss'%length, length, _x)) 00269 _x = self 00270 buff.write(_struct_3I.pack(_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs)) 00271 _x = self.feedback.gripper_pose.header.frame_id 00272 length = len(_x) 00273 buff.write(struct.pack('<I%ss'%length, length, _x)) 00274 _x = self 00275 buff.write(_struct_7df.pack(_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening)) 00276 except struct.error as se: self._check_types(se) 00277 except TypeError as te: self._check_types(te) 00278 00279 def deserialize_numpy(self, str, numpy): 00280 """ 00281 unpack serialized message in str into this message instance using numpy for array types 00282 @param str: byte array of serialized message 00283 @type str: str 00284 @param numpy: numpy python module 00285 @type numpy: module 00286 """ 00287 try: 00288 if self.header is None: 00289 self.header = std_msgs.msg._Header.Header() 00290 if self.status is None: 00291 self.status = actionlib_msgs.msg.GoalStatus() 00292 if self.feedback is None: 00293 self.feedback = pr2_object_manipulation_msgs.msg.GetGripperPoseFeedback() 00294 end = 0 00295 _x = self 00296 start = end 00297 end += 12 00298 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00299 start = end 00300 end += 4 00301 (length,) = _struct_I.unpack(str[start:end]) 00302 start = end 00303 end += length 00304 self.header.frame_id = str[start:end] 00305 _x = self 00306 start = end 00307 end += 8 00308 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00309 start = end 00310 end += 4 00311 (length,) = _struct_I.unpack(str[start:end]) 00312 start = end 00313 end += length 00314 self.status.goal_id.id = str[start:end] 00315 start = end 00316 end += 1 00317 (self.status.status,) = _struct_B.unpack(str[start:end]) 00318 start = end 00319 end += 4 00320 (length,) = _struct_I.unpack(str[start:end]) 00321 start = end 00322 end += length 00323 self.status.text = str[start:end] 00324 _x = self 00325 start = end 00326 end += 12 00327 (_x.feedback.gripper_pose.header.seq, _x.feedback.gripper_pose.header.stamp.secs, _x.feedback.gripper_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00328 start = end 00329 end += 4 00330 (length,) = _struct_I.unpack(str[start:end]) 00331 start = end 00332 end += length 00333 self.feedback.gripper_pose.header.frame_id = str[start:end] 00334 _x = self 00335 start = end 00336 end += 60 00337 (_x.feedback.gripper_pose.pose.position.x, _x.feedback.gripper_pose.pose.position.y, _x.feedback.gripper_pose.pose.position.z, _x.feedback.gripper_pose.pose.orientation.x, _x.feedback.gripper_pose.pose.orientation.y, _x.feedback.gripper_pose.pose.orientation.z, _x.feedback.gripper_pose.pose.orientation.w, _x.feedback.gripper_opening,) = _struct_7df.unpack(str[start:end]) 00338 return self 00339 except struct.error as e: 00340 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00341 00342 _struct_I = roslib.message.struct_I 00343 _struct_3I = struct.Struct("<3I") 00344 _struct_B = struct.Struct("<B") 00345 _struct_2I = struct.Struct("<2I") 00346 _struct_7df = struct.Struct("<7df")