$search
00001 """autogenerated by genmsg_py from AcquireObjectImageAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import cob_object_detection_msgs.msg 00006 import geometry_msgs.msg 00007 import roslib.rostime 00008 import actionlib_msgs.msg 00009 import std_msgs.msg 00010 00011 class AcquireObjectImageAction(roslib.message.Message): 00012 _md5sum = "089df8c12f43ce82ba50ba0d9569dfde" 00013 _type = "cob_object_detection_msgs/AcquireObjectImageAction" 00014 _has_header = False #flag to mark the presence of a Header object 00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00016 00017 AcquireObjectImageActionGoal action_goal 00018 AcquireObjectImageActionResult action_result 00019 AcquireObjectImageActionFeedback action_feedback 00020 00021 ================================================================================ 00022 MSG: cob_object_detection_msgs/AcquireObjectImageActionGoal 00023 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00024 00025 Header header 00026 actionlib_msgs/GoalID goal_id 00027 AcquireObjectImageGoal goal 00028 00029 ================================================================================ 00030 MSG: std_msgs/Header 00031 # Standard metadata for higher-level stamped data types. 00032 # This is generally used to communicate timestamped data 00033 # in a particular coordinate frame. 00034 # 00035 # sequence ID: consecutively increasing ID 00036 uint32 seq 00037 #Two-integer timestamp that is expressed as: 00038 # * stamp.secs: seconds (stamp_secs) since epoch 00039 # * stamp.nsecs: nanoseconds since stamp_secs 00040 # time-handling sugar is provided by the client library 00041 time stamp 00042 #Frame this data is associated with 00043 # 0: no frame 00044 # 1: global frame 00045 string frame_id 00046 00047 ================================================================================ 00048 MSG: actionlib_msgs/GoalID 00049 # The stamp should store the time at which this goal was requested. 00050 # It is used by an action server when it tries to preempt all 00051 # goals that were requested before a certain time 00052 time stamp 00053 00054 # The id provides a way to associate feedback and 00055 # result message with specific goal requests. The id 00056 # specified must be unique. 00057 string id 00058 00059 00060 ================================================================================ 00061 MSG: cob_object_detection_msgs/AcquireObjectImageGoal 00062 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00063 # The goal 00064 string object_name 00065 bool reset_image_counter 00066 geometry_msgs/PoseStamped pose 00067 geometry_msgs/PoseStamped[] sdh_joints 00068 00069 ================================================================================ 00070 MSG: geometry_msgs/PoseStamped 00071 # A Pose with reference coordinate frame and timestamp 00072 Header header 00073 Pose pose 00074 00075 ================================================================================ 00076 MSG: geometry_msgs/Pose 00077 # A representation of pose in free space, composed of postion and orientation. 00078 Point position 00079 Quaternion orientation 00080 00081 ================================================================================ 00082 MSG: geometry_msgs/Point 00083 # This contains the position of a point in free space 00084 float64 x 00085 float64 y 00086 float64 z 00087 00088 ================================================================================ 00089 MSG: geometry_msgs/Quaternion 00090 # This represents an orientation in free space in quaternion form. 00091 00092 float64 x 00093 float64 y 00094 float64 z 00095 float64 w 00096 00097 ================================================================================ 00098 MSG: cob_object_detection_msgs/AcquireObjectImageActionResult 00099 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00100 00101 Header header 00102 actionlib_msgs/GoalStatus status 00103 AcquireObjectImageResult result 00104 00105 ================================================================================ 00106 MSG: actionlib_msgs/GoalStatus 00107 GoalID goal_id 00108 uint8 status 00109 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00110 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00111 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00112 # and has since completed its execution (Terminal State) 00113 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00114 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00115 # to some failure (Terminal State) 00116 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00117 # because the goal was unattainable or invalid (Terminal State) 00118 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00119 # and has not yet completed execution 00120 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00121 # but the action server has not yet confirmed that the goal is canceled 00122 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00123 # and was successfully cancelled (Terminal State) 00124 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00125 # sent over the wire by an action server 00126 00127 #Allow for the user to associate a string with GoalStatus for debugging 00128 string text 00129 00130 00131 ================================================================================ 00132 MSG: cob_object_detection_msgs/AcquireObjectImageResult 00133 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00134 # The results 00135 00136 ================================================================================ 00137 MSG: cob_object_detection_msgs/AcquireObjectImageActionFeedback 00138 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00139 00140 Header header 00141 actionlib_msgs/GoalStatus status 00142 AcquireObjectImageFeedback feedback 00143 00144 ================================================================================ 00145 MSG: cob_object_detection_msgs/AcquireObjectImageFeedback 00146 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00147 # The feedback 00148 float32 percent_complete 00149 00150 00151 """ 00152 __slots__ = ['action_goal','action_result','action_feedback'] 00153 _slot_types = ['cob_object_detection_msgs/AcquireObjectImageActionGoal','cob_object_detection_msgs/AcquireObjectImageActionResult','cob_object_detection_msgs/AcquireObjectImageActionFeedback'] 00154 00155 def __init__(self, *args, **kwds): 00156 """ 00157 Constructor. Any message fields that are implicitly/explicitly 00158 set to None will be assigned a default value. The recommend 00159 use is keyword arguments as this is more robust to future message 00160 changes. You cannot mix in-order arguments and keyword arguments. 00161 00162 The available fields are: 00163 action_goal,action_result,action_feedback 00164 00165 @param args: complete set of field values, in .msg order 00166 @param kwds: use keyword arguments corresponding to message field names 00167 to set specific fields. 00168 """ 00169 if args or kwds: 00170 super(AcquireObjectImageAction, self).__init__(*args, **kwds) 00171 #message fields cannot be None, assign default values for those that are 00172 if self.action_goal is None: 00173 self.action_goal = cob_object_detection_msgs.msg.AcquireObjectImageActionGoal() 00174 if self.action_result is None: 00175 self.action_result = cob_object_detection_msgs.msg.AcquireObjectImageActionResult() 00176 if self.action_feedback is None: 00177 self.action_feedback = cob_object_detection_msgs.msg.AcquireObjectImageActionFeedback() 00178 else: 00179 self.action_goal = cob_object_detection_msgs.msg.AcquireObjectImageActionGoal() 00180 self.action_result = cob_object_detection_msgs.msg.AcquireObjectImageActionResult() 00181 self.action_feedback = cob_object_detection_msgs.msg.AcquireObjectImageActionFeedback() 00182 00183 def _get_types(self): 00184 """ 00185 internal API method 00186 """ 00187 return self._slot_types 00188 00189 def serialize(self, buff): 00190 """ 00191 serialize message into buffer 00192 @param buff: buffer 00193 @type buff: StringIO 00194 """ 00195 try: 00196 _x = self 00197 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00198 _x = self.action_goal.header.frame_id 00199 length = len(_x) 00200 buff.write(struct.pack('<I%ss'%length, length, _x)) 00201 _x = self 00202 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00203 _x = self.action_goal.goal_id.id 00204 length = len(_x) 00205 buff.write(struct.pack('<I%ss'%length, length, _x)) 00206 _x = self.action_goal.goal.object_name 00207 length = len(_x) 00208 buff.write(struct.pack('<I%ss'%length, length, _x)) 00209 _x = self 00210 buff.write(_struct_B3I.pack(_x.action_goal.goal.reset_image_counter, _x.action_goal.goal.pose.header.seq, _x.action_goal.goal.pose.header.stamp.secs, _x.action_goal.goal.pose.header.stamp.nsecs)) 00211 _x = self.action_goal.goal.pose.header.frame_id 00212 length = len(_x) 00213 buff.write(struct.pack('<I%ss'%length, length, _x)) 00214 _x = self 00215 buff.write(_struct_7d.pack(_x.action_goal.goal.pose.pose.position.x, _x.action_goal.goal.pose.pose.position.y, _x.action_goal.goal.pose.pose.position.z, _x.action_goal.goal.pose.pose.orientation.x, _x.action_goal.goal.pose.pose.orientation.y, _x.action_goal.goal.pose.pose.orientation.z, _x.action_goal.goal.pose.pose.orientation.w)) 00216 length = len(self.action_goal.goal.sdh_joints) 00217 buff.write(_struct_I.pack(length)) 00218 for val1 in self.action_goal.goal.sdh_joints: 00219 _v1 = val1.header 00220 buff.write(_struct_I.pack(_v1.seq)) 00221 _v2 = _v1.stamp 00222 _x = _v2 00223 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00224 _x = _v1.frame_id 00225 length = len(_x) 00226 buff.write(struct.pack('<I%ss'%length, length, _x)) 00227 _v3 = val1.pose 00228 _v4 = _v3.position 00229 _x = _v4 00230 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00231 _v5 = _v3.orientation 00232 _x = _v5 00233 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00234 _x = self 00235 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00236 _x = self.action_result.header.frame_id 00237 length = len(_x) 00238 buff.write(struct.pack('<I%ss'%length, length, _x)) 00239 _x = self 00240 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00241 _x = self.action_result.status.goal_id.id 00242 length = len(_x) 00243 buff.write(struct.pack('<I%ss'%length, length, _x)) 00244 buff.write(_struct_B.pack(self.action_result.status.status)) 00245 _x = self.action_result.status.text 00246 length = len(_x) 00247 buff.write(struct.pack('<I%ss'%length, length, _x)) 00248 _x = self 00249 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00250 _x = self.action_feedback.header.frame_id 00251 length = len(_x) 00252 buff.write(struct.pack('<I%ss'%length, length, _x)) 00253 _x = self 00254 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00255 _x = self.action_feedback.status.goal_id.id 00256 length = len(_x) 00257 buff.write(struct.pack('<I%ss'%length, length, _x)) 00258 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00259 _x = self.action_feedback.status.text 00260 length = len(_x) 00261 buff.write(struct.pack('<I%ss'%length, length, _x)) 00262 buff.write(_struct_f.pack(self.action_feedback.feedback.percent_complete)) 00263 except struct.error as se: self._check_types(se) 00264 except TypeError as te: self._check_types(te) 00265 00266 def deserialize(self, str): 00267 """ 00268 unpack serialized message in str into this message instance 00269 @param str: byte array of serialized message 00270 @type str: str 00271 """ 00272 try: 00273 if self.action_goal is None: 00274 self.action_goal = cob_object_detection_msgs.msg.AcquireObjectImageActionGoal() 00275 if self.action_result is None: 00276 self.action_result = cob_object_detection_msgs.msg.AcquireObjectImageActionResult() 00277 if self.action_feedback is None: 00278 self.action_feedback = cob_object_detection_msgs.msg.AcquireObjectImageActionFeedback() 00279 end = 0 00280 _x = self 00281 start = end 00282 end += 12 00283 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00284 start = end 00285 end += 4 00286 (length,) = _struct_I.unpack(str[start:end]) 00287 start = end 00288 end += length 00289 self.action_goal.header.frame_id = str[start:end] 00290 _x = self 00291 start = end 00292 end += 8 00293 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00294 start = end 00295 end += 4 00296 (length,) = _struct_I.unpack(str[start:end]) 00297 start = end 00298 end += length 00299 self.action_goal.goal_id.id = str[start:end] 00300 start = end 00301 end += 4 00302 (length,) = _struct_I.unpack(str[start:end]) 00303 start = end 00304 end += length 00305 self.action_goal.goal.object_name = str[start:end] 00306 _x = self 00307 start = end 00308 end += 13 00309 (_x.action_goal.goal.reset_image_counter, _x.action_goal.goal.pose.header.seq, _x.action_goal.goal.pose.header.stamp.secs, _x.action_goal.goal.pose.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00310 self.action_goal.goal.reset_image_counter = bool(self.action_goal.goal.reset_image_counter) 00311 start = end 00312 end += 4 00313 (length,) = _struct_I.unpack(str[start:end]) 00314 start = end 00315 end += length 00316 self.action_goal.goal.pose.header.frame_id = str[start:end] 00317 _x = self 00318 start = end 00319 end += 56 00320 (_x.action_goal.goal.pose.pose.position.x, _x.action_goal.goal.pose.pose.position.y, _x.action_goal.goal.pose.pose.position.z, _x.action_goal.goal.pose.pose.orientation.x, _x.action_goal.goal.pose.pose.orientation.y, _x.action_goal.goal.pose.pose.orientation.z, _x.action_goal.goal.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00321 start = end 00322 end += 4 00323 (length,) = _struct_I.unpack(str[start:end]) 00324 self.action_goal.goal.sdh_joints = [] 00325 for i in range(0, length): 00326 val1 = geometry_msgs.msg.PoseStamped() 00327 _v6 = val1.header 00328 start = end 00329 end += 4 00330 (_v6.seq,) = _struct_I.unpack(str[start:end]) 00331 _v7 = _v6.stamp 00332 _x = _v7 00333 start = end 00334 end += 8 00335 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00336 start = end 00337 end += 4 00338 (length,) = _struct_I.unpack(str[start:end]) 00339 start = end 00340 end += length 00341 _v6.frame_id = str[start:end] 00342 _v8 = val1.pose 00343 _v9 = _v8.position 00344 _x = _v9 00345 start = end 00346 end += 24 00347 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00348 _v10 = _v8.orientation 00349 _x = _v10 00350 start = end 00351 end += 32 00352 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00353 self.action_goal.goal.sdh_joints.append(val1) 00354 _x = self 00355 start = end 00356 end += 12 00357 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00358 start = end 00359 end += 4 00360 (length,) = _struct_I.unpack(str[start:end]) 00361 start = end 00362 end += length 00363 self.action_result.header.frame_id = str[start:end] 00364 _x = self 00365 start = end 00366 end += 8 00367 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00368 start = end 00369 end += 4 00370 (length,) = _struct_I.unpack(str[start:end]) 00371 start = end 00372 end += length 00373 self.action_result.status.goal_id.id = str[start:end] 00374 start = end 00375 end += 1 00376 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00377 start = end 00378 end += 4 00379 (length,) = _struct_I.unpack(str[start:end]) 00380 start = end 00381 end += length 00382 self.action_result.status.text = str[start:end] 00383 _x = self 00384 start = end 00385 end += 12 00386 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00387 start = end 00388 end += 4 00389 (length,) = _struct_I.unpack(str[start:end]) 00390 start = end 00391 end += length 00392 self.action_feedback.header.frame_id = str[start:end] 00393 _x = self 00394 start = end 00395 end += 8 00396 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00397 start = end 00398 end += 4 00399 (length,) = _struct_I.unpack(str[start:end]) 00400 start = end 00401 end += length 00402 self.action_feedback.status.goal_id.id = str[start:end] 00403 start = end 00404 end += 1 00405 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00406 start = end 00407 end += 4 00408 (length,) = _struct_I.unpack(str[start:end]) 00409 start = end 00410 end += length 00411 self.action_feedback.status.text = str[start:end] 00412 start = end 00413 end += 4 00414 (self.action_feedback.feedback.percent_complete,) = _struct_f.unpack(str[start:end]) 00415 return self 00416 except struct.error as e: 00417 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00418 00419 00420 def serialize_numpy(self, buff, numpy): 00421 """ 00422 serialize message with numpy array types into buffer 00423 @param buff: buffer 00424 @type buff: StringIO 00425 @param numpy: numpy python module 00426 @type numpy module 00427 """ 00428 try: 00429 _x = self 00430 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00431 _x = self.action_goal.header.frame_id 00432 length = len(_x) 00433 buff.write(struct.pack('<I%ss'%length, length, _x)) 00434 _x = self 00435 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00436 _x = self.action_goal.goal_id.id 00437 length = len(_x) 00438 buff.write(struct.pack('<I%ss'%length, length, _x)) 00439 _x = self.action_goal.goal.object_name 00440 length = len(_x) 00441 buff.write(struct.pack('<I%ss'%length, length, _x)) 00442 _x = self 00443 buff.write(_struct_B3I.pack(_x.action_goal.goal.reset_image_counter, _x.action_goal.goal.pose.header.seq, _x.action_goal.goal.pose.header.stamp.secs, _x.action_goal.goal.pose.header.stamp.nsecs)) 00444 _x = self.action_goal.goal.pose.header.frame_id 00445 length = len(_x) 00446 buff.write(struct.pack('<I%ss'%length, length, _x)) 00447 _x = self 00448 buff.write(_struct_7d.pack(_x.action_goal.goal.pose.pose.position.x, _x.action_goal.goal.pose.pose.position.y, _x.action_goal.goal.pose.pose.position.z, _x.action_goal.goal.pose.pose.orientation.x, _x.action_goal.goal.pose.pose.orientation.y, _x.action_goal.goal.pose.pose.orientation.z, _x.action_goal.goal.pose.pose.orientation.w)) 00449 length = len(self.action_goal.goal.sdh_joints) 00450 buff.write(_struct_I.pack(length)) 00451 for val1 in self.action_goal.goal.sdh_joints: 00452 _v11 = val1.header 00453 buff.write(_struct_I.pack(_v11.seq)) 00454 _v12 = _v11.stamp 00455 _x = _v12 00456 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00457 _x = _v11.frame_id 00458 length = len(_x) 00459 buff.write(struct.pack('<I%ss'%length, length, _x)) 00460 _v13 = val1.pose 00461 _v14 = _v13.position 00462 _x = _v14 00463 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00464 _v15 = _v13.orientation 00465 _x = _v15 00466 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00467 _x = self 00468 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00469 _x = self.action_result.header.frame_id 00470 length = len(_x) 00471 buff.write(struct.pack('<I%ss'%length, length, _x)) 00472 _x = self 00473 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00474 _x = self.action_result.status.goal_id.id 00475 length = len(_x) 00476 buff.write(struct.pack('<I%ss'%length, length, _x)) 00477 buff.write(_struct_B.pack(self.action_result.status.status)) 00478 _x = self.action_result.status.text 00479 length = len(_x) 00480 buff.write(struct.pack('<I%ss'%length, length, _x)) 00481 _x = self 00482 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00483 _x = self.action_feedback.header.frame_id 00484 length = len(_x) 00485 buff.write(struct.pack('<I%ss'%length, length, _x)) 00486 _x = self 00487 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00488 _x = self.action_feedback.status.goal_id.id 00489 length = len(_x) 00490 buff.write(struct.pack('<I%ss'%length, length, _x)) 00491 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00492 _x = self.action_feedback.status.text 00493 length = len(_x) 00494 buff.write(struct.pack('<I%ss'%length, length, _x)) 00495 buff.write(_struct_f.pack(self.action_feedback.feedback.percent_complete)) 00496 except struct.error as se: self._check_types(se) 00497 except TypeError as te: self._check_types(te) 00498 00499 def deserialize_numpy(self, str, numpy): 00500 """ 00501 unpack serialized message in str into this message instance using numpy for array types 00502 @param str: byte array of serialized message 00503 @type str: str 00504 @param numpy: numpy python module 00505 @type numpy: module 00506 """ 00507 try: 00508 if self.action_goal is None: 00509 self.action_goal = cob_object_detection_msgs.msg.AcquireObjectImageActionGoal() 00510 if self.action_result is None: 00511 self.action_result = cob_object_detection_msgs.msg.AcquireObjectImageActionResult() 00512 if self.action_feedback is None: 00513 self.action_feedback = cob_object_detection_msgs.msg.AcquireObjectImageActionFeedback() 00514 end = 0 00515 _x = self 00516 start = end 00517 end += 12 00518 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00519 start = end 00520 end += 4 00521 (length,) = _struct_I.unpack(str[start:end]) 00522 start = end 00523 end += length 00524 self.action_goal.header.frame_id = str[start:end] 00525 _x = self 00526 start = end 00527 end += 8 00528 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00529 start = end 00530 end += 4 00531 (length,) = _struct_I.unpack(str[start:end]) 00532 start = end 00533 end += length 00534 self.action_goal.goal_id.id = str[start:end] 00535 start = end 00536 end += 4 00537 (length,) = _struct_I.unpack(str[start:end]) 00538 start = end 00539 end += length 00540 self.action_goal.goal.object_name = str[start:end] 00541 _x = self 00542 start = end 00543 end += 13 00544 (_x.action_goal.goal.reset_image_counter, _x.action_goal.goal.pose.header.seq, _x.action_goal.goal.pose.header.stamp.secs, _x.action_goal.goal.pose.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00545 self.action_goal.goal.reset_image_counter = bool(self.action_goal.goal.reset_image_counter) 00546 start = end 00547 end += 4 00548 (length,) = _struct_I.unpack(str[start:end]) 00549 start = end 00550 end += length 00551 self.action_goal.goal.pose.header.frame_id = str[start:end] 00552 _x = self 00553 start = end 00554 end += 56 00555 (_x.action_goal.goal.pose.pose.position.x, _x.action_goal.goal.pose.pose.position.y, _x.action_goal.goal.pose.pose.position.z, _x.action_goal.goal.pose.pose.orientation.x, _x.action_goal.goal.pose.pose.orientation.y, _x.action_goal.goal.pose.pose.orientation.z, _x.action_goal.goal.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00556 start = end 00557 end += 4 00558 (length,) = _struct_I.unpack(str[start:end]) 00559 self.action_goal.goal.sdh_joints = [] 00560 for i in range(0, length): 00561 val1 = geometry_msgs.msg.PoseStamped() 00562 _v16 = val1.header 00563 start = end 00564 end += 4 00565 (_v16.seq,) = _struct_I.unpack(str[start:end]) 00566 _v17 = _v16.stamp 00567 _x = _v17 00568 start = end 00569 end += 8 00570 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00571 start = end 00572 end += 4 00573 (length,) = _struct_I.unpack(str[start:end]) 00574 start = end 00575 end += length 00576 _v16.frame_id = str[start:end] 00577 _v18 = val1.pose 00578 _v19 = _v18.position 00579 _x = _v19 00580 start = end 00581 end += 24 00582 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00583 _v20 = _v18.orientation 00584 _x = _v20 00585 start = end 00586 end += 32 00587 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00588 self.action_goal.goal.sdh_joints.append(val1) 00589 _x = self 00590 start = end 00591 end += 12 00592 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00593 start = end 00594 end += 4 00595 (length,) = _struct_I.unpack(str[start:end]) 00596 start = end 00597 end += length 00598 self.action_result.header.frame_id = str[start:end] 00599 _x = self 00600 start = end 00601 end += 8 00602 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00603 start = end 00604 end += 4 00605 (length,) = _struct_I.unpack(str[start:end]) 00606 start = end 00607 end += length 00608 self.action_result.status.goal_id.id = str[start:end] 00609 start = end 00610 end += 1 00611 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00612 start = end 00613 end += 4 00614 (length,) = _struct_I.unpack(str[start:end]) 00615 start = end 00616 end += length 00617 self.action_result.status.text = str[start:end] 00618 _x = self 00619 start = end 00620 end += 12 00621 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00622 start = end 00623 end += 4 00624 (length,) = _struct_I.unpack(str[start:end]) 00625 start = end 00626 end += length 00627 self.action_feedback.header.frame_id = str[start:end] 00628 _x = self 00629 start = end 00630 end += 8 00631 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00632 start = end 00633 end += 4 00634 (length,) = _struct_I.unpack(str[start:end]) 00635 start = end 00636 end += length 00637 self.action_feedback.status.goal_id.id = str[start:end] 00638 start = end 00639 end += 1 00640 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00641 start = end 00642 end += 4 00643 (length,) = _struct_I.unpack(str[start:end]) 00644 start = end 00645 end += length 00646 self.action_feedback.status.text = str[start:end] 00647 start = end 00648 end += 4 00649 (self.action_feedback.feedback.percent_complete,) = _struct_f.unpack(str[start:end]) 00650 return self 00651 except struct.error as e: 00652 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00653 00654 _struct_I = roslib.message.struct_I 00655 _struct_7d = struct.Struct("<7d") 00656 _struct_f = struct.Struct("<f") 00657 _struct_3I = struct.Struct("<3I") 00658 _struct_B = struct.Struct("<B") 00659 _struct_B3I = struct.Struct("<B3I") 00660 _struct_4d = struct.Struct("<4d") 00661 _struct_2I = struct.Struct("<2I") 00662 _struct_3d = struct.Struct("<3d")