$search
00001 """autogenerated by genmsg_py from FindBasePoseAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import roslib.rostime 00006 import geometry_msgs.msg 00007 import find_base_pose.msg 00008 import actionlib_msgs.msg 00009 import std_msgs.msg 00010 00011 class FindBasePoseAction(roslib.message.Message): 00012 _md5sum = "a8e3bea752faff8e9428beba30a669f2" 00013 _type = "find_base_pose/FindBasePoseAction" 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 FindBasePoseActionGoal action_goal 00018 FindBasePoseActionResult action_result 00019 FindBasePoseActionFeedback action_feedback 00020 00021 ================================================================================ 00022 MSG: find_base_pose/FindBasePoseActionGoal 00023 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00024 00025 Header header 00026 actionlib_msgs/GoalID goal_id 00027 FindBasePoseGoal 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: find_base_pose/FindBasePoseGoal 00062 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00063 geometry_msgs/PoseStamped[] target_poses 00064 std_msgs/Int32[] arm 00065 00066 ================================================================================ 00067 MSG: geometry_msgs/PoseStamped 00068 # A Pose with reference coordinate frame and timestamp 00069 Header header 00070 Pose pose 00071 00072 ================================================================================ 00073 MSG: geometry_msgs/Pose 00074 # A representation of pose in free space, composed of postion and orientation. 00075 Point position 00076 Quaternion orientation 00077 00078 ================================================================================ 00079 MSG: geometry_msgs/Point 00080 # This contains the position of a point in free space 00081 float64 x 00082 float64 y 00083 float64 z 00084 00085 ================================================================================ 00086 MSG: geometry_msgs/Quaternion 00087 # This represents an orientation in free space in quaternion form. 00088 00089 float64 x 00090 float64 y 00091 float64 z 00092 float64 w 00093 00094 ================================================================================ 00095 MSG: std_msgs/Int32 00096 int32 data 00097 ================================================================================ 00098 MSG: find_base_pose/FindBasePoseActionResult 00099 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00100 00101 Header header 00102 actionlib_msgs/GoalStatus status 00103 FindBasePoseResult 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: find_base_pose/FindBasePoseResult 00133 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00134 geometry_msgs/PoseStamped[] base_poses 00135 00136 ================================================================================ 00137 MSG: find_base_pose/FindBasePoseActionFeedback 00138 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00139 00140 Header header 00141 actionlib_msgs/GoalStatus status 00142 FindBasePoseFeedback feedback 00143 00144 ================================================================================ 00145 MSG: find_base_pose/FindBasePoseFeedback 00146 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00147 00148 00149 00150 """ 00151 __slots__ = ['action_goal','action_result','action_feedback'] 00152 _slot_types = ['find_base_pose/FindBasePoseActionGoal','find_base_pose/FindBasePoseActionResult','find_base_pose/FindBasePoseActionFeedback'] 00153 00154 def __init__(self, *args, **kwds): 00155 """ 00156 Constructor. Any message fields that are implicitly/explicitly 00157 set to None will be assigned a default value. The recommend 00158 use is keyword arguments as this is more robust to future message 00159 changes. You cannot mix in-order arguments and keyword arguments. 00160 00161 The available fields are: 00162 action_goal,action_result,action_feedback 00163 00164 @param args: complete set of field values, in .msg order 00165 @param kwds: use keyword arguments corresponding to message field names 00166 to set specific fields. 00167 """ 00168 if args or kwds: 00169 super(FindBasePoseAction, self).__init__(*args, **kwds) 00170 #message fields cannot be None, assign default values for those that are 00171 if self.action_goal is None: 00172 self.action_goal = find_base_pose.msg.FindBasePoseActionGoal() 00173 if self.action_result is None: 00174 self.action_result = find_base_pose.msg.FindBasePoseActionResult() 00175 if self.action_feedback is None: 00176 self.action_feedback = find_base_pose.msg.FindBasePoseActionFeedback() 00177 else: 00178 self.action_goal = find_base_pose.msg.FindBasePoseActionGoal() 00179 self.action_result = find_base_pose.msg.FindBasePoseActionResult() 00180 self.action_feedback = find_base_pose.msg.FindBasePoseActionFeedback() 00181 00182 def _get_types(self): 00183 """ 00184 internal API method 00185 """ 00186 return self._slot_types 00187 00188 def serialize(self, buff): 00189 """ 00190 serialize message into buffer 00191 @param buff: buffer 00192 @type buff: StringIO 00193 """ 00194 try: 00195 _x = self 00196 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00197 _x = self.action_goal.header.frame_id 00198 length = len(_x) 00199 buff.write(struct.pack('<I%ss'%length, length, _x)) 00200 _x = self 00201 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00202 _x = self.action_goal.goal_id.id 00203 length = len(_x) 00204 buff.write(struct.pack('<I%ss'%length, length, _x)) 00205 length = len(self.action_goal.goal.target_poses) 00206 buff.write(_struct_I.pack(length)) 00207 for val1 in self.action_goal.goal.target_poses: 00208 _v1 = val1.header 00209 buff.write(_struct_I.pack(_v1.seq)) 00210 _v2 = _v1.stamp 00211 _x = _v2 00212 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00213 _x = _v1.frame_id 00214 length = len(_x) 00215 buff.write(struct.pack('<I%ss'%length, length, _x)) 00216 _v3 = val1.pose 00217 _v4 = _v3.position 00218 _x = _v4 00219 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00220 _v5 = _v3.orientation 00221 _x = _v5 00222 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00223 length = len(self.action_goal.goal.arm) 00224 buff.write(_struct_I.pack(length)) 00225 for val1 in self.action_goal.goal.arm: 00226 buff.write(_struct_i.pack(val1.data)) 00227 _x = self 00228 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00229 _x = self.action_result.header.frame_id 00230 length = len(_x) 00231 buff.write(struct.pack('<I%ss'%length, length, _x)) 00232 _x = self 00233 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00234 _x = self.action_result.status.goal_id.id 00235 length = len(_x) 00236 buff.write(struct.pack('<I%ss'%length, length, _x)) 00237 buff.write(_struct_B.pack(self.action_result.status.status)) 00238 _x = self.action_result.status.text 00239 length = len(_x) 00240 buff.write(struct.pack('<I%ss'%length, length, _x)) 00241 length = len(self.action_result.result.base_poses) 00242 buff.write(_struct_I.pack(length)) 00243 for val1 in self.action_result.result.base_poses: 00244 _v6 = val1.header 00245 buff.write(_struct_I.pack(_v6.seq)) 00246 _v7 = _v6.stamp 00247 _x = _v7 00248 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00249 _x = _v6.frame_id 00250 length = len(_x) 00251 buff.write(struct.pack('<I%ss'%length, length, _x)) 00252 _v8 = val1.pose 00253 _v9 = _v8.position 00254 _x = _v9 00255 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00256 _v10 = _v8.orientation 00257 _x = _v10 00258 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00259 _x = self 00260 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00261 _x = self.action_feedback.header.frame_id 00262 length = len(_x) 00263 buff.write(struct.pack('<I%ss'%length, length, _x)) 00264 _x = self 00265 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00266 _x = self.action_feedback.status.goal_id.id 00267 length = len(_x) 00268 buff.write(struct.pack('<I%ss'%length, length, _x)) 00269 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00270 _x = self.action_feedback.status.text 00271 length = len(_x) 00272 buff.write(struct.pack('<I%ss'%length, length, _x)) 00273 except struct.error as se: self._check_types(se) 00274 except TypeError as te: self._check_types(te) 00275 00276 def deserialize(self, str): 00277 """ 00278 unpack serialized message in str into this message instance 00279 @param str: byte array of serialized message 00280 @type str: str 00281 """ 00282 try: 00283 if self.action_goal is None: 00284 self.action_goal = find_base_pose.msg.FindBasePoseActionGoal() 00285 if self.action_result is None: 00286 self.action_result = find_base_pose.msg.FindBasePoseActionResult() 00287 if self.action_feedback is None: 00288 self.action_feedback = find_base_pose.msg.FindBasePoseActionFeedback() 00289 end = 0 00290 _x = self 00291 start = end 00292 end += 12 00293 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end] 00300 _x = self 00301 start = end 00302 end += 8 00303 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00304 start = end 00305 end += 4 00306 (length,) = _struct_I.unpack(str[start:end]) 00307 start = end 00308 end += length 00309 self.action_goal.goal_id.id = str[start:end] 00310 start = end 00311 end += 4 00312 (length,) = _struct_I.unpack(str[start:end]) 00313 self.action_goal.goal.target_poses = [] 00314 for i in range(0, length): 00315 val1 = geometry_msgs.msg.PoseStamped() 00316 _v11 = val1.header 00317 start = end 00318 end += 4 00319 (_v11.seq,) = _struct_I.unpack(str[start:end]) 00320 _v12 = _v11.stamp 00321 _x = _v12 00322 start = end 00323 end += 8 00324 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00325 start = end 00326 end += 4 00327 (length,) = _struct_I.unpack(str[start:end]) 00328 start = end 00329 end += length 00330 _v11.frame_id = str[start:end] 00331 _v13 = val1.pose 00332 _v14 = _v13.position 00333 _x = _v14 00334 start = end 00335 end += 24 00336 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00337 _v15 = _v13.orientation 00338 _x = _v15 00339 start = end 00340 end += 32 00341 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00342 self.action_goal.goal.target_poses.append(val1) 00343 start = end 00344 end += 4 00345 (length,) = _struct_I.unpack(str[start:end]) 00346 self.action_goal.goal.arm = [] 00347 for i in range(0, length): 00348 val1 = std_msgs.msg.Int32() 00349 start = end 00350 end += 4 00351 (val1.data,) = _struct_i.unpack(str[start:end]) 00352 self.action_goal.goal.arm.append(val1) 00353 _x = self 00354 start = end 00355 end += 12 00356 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00357 start = end 00358 end += 4 00359 (length,) = _struct_I.unpack(str[start:end]) 00360 start = end 00361 end += length 00362 self.action_result.header.frame_id = str[start:end] 00363 _x = self 00364 start = end 00365 end += 8 00366 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00367 start = end 00368 end += 4 00369 (length,) = _struct_I.unpack(str[start:end]) 00370 start = end 00371 end += length 00372 self.action_result.status.goal_id.id = str[start:end] 00373 start = end 00374 end += 1 00375 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00376 start = end 00377 end += 4 00378 (length,) = _struct_I.unpack(str[start:end]) 00379 start = end 00380 end += length 00381 self.action_result.status.text = str[start:end] 00382 start = end 00383 end += 4 00384 (length,) = _struct_I.unpack(str[start:end]) 00385 self.action_result.result.base_poses = [] 00386 for i in range(0, length): 00387 val1 = geometry_msgs.msg.PoseStamped() 00388 _v16 = val1.header 00389 start = end 00390 end += 4 00391 (_v16.seq,) = _struct_I.unpack(str[start:end]) 00392 _v17 = _v16.stamp 00393 _x = _v17 00394 start = end 00395 end += 8 00396 (_x.secs, _x.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 _v16.frame_id = str[start:end] 00403 _v18 = val1.pose 00404 _v19 = _v18.position 00405 _x = _v19 00406 start = end 00407 end += 24 00408 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00409 _v20 = _v18.orientation 00410 _x = _v20 00411 start = end 00412 end += 32 00413 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00414 self.action_result.result.base_poses.append(val1) 00415 _x = self 00416 start = end 00417 end += 12 00418 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00419 start = end 00420 end += 4 00421 (length,) = _struct_I.unpack(str[start:end]) 00422 start = end 00423 end += length 00424 self.action_feedback.header.frame_id = str[start:end] 00425 _x = self 00426 start = end 00427 end += 8 00428 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00429 start = end 00430 end += 4 00431 (length,) = _struct_I.unpack(str[start:end]) 00432 start = end 00433 end += length 00434 self.action_feedback.status.goal_id.id = str[start:end] 00435 start = end 00436 end += 1 00437 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00438 start = end 00439 end += 4 00440 (length,) = _struct_I.unpack(str[start:end]) 00441 start = end 00442 end += length 00443 self.action_feedback.status.text = str[start:end] 00444 return self 00445 except struct.error as e: 00446 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00447 00448 00449 def serialize_numpy(self, buff, numpy): 00450 """ 00451 serialize message with numpy array types into buffer 00452 @param buff: buffer 00453 @type buff: StringIO 00454 @param numpy: numpy python module 00455 @type numpy module 00456 """ 00457 try: 00458 _x = self 00459 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00460 _x = self.action_goal.header.frame_id 00461 length = len(_x) 00462 buff.write(struct.pack('<I%ss'%length, length, _x)) 00463 _x = self 00464 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00465 _x = self.action_goal.goal_id.id 00466 length = len(_x) 00467 buff.write(struct.pack('<I%ss'%length, length, _x)) 00468 length = len(self.action_goal.goal.target_poses) 00469 buff.write(_struct_I.pack(length)) 00470 for val1 in self.action_goal.goal.target_poses: 00471 _v21 = val1.header 00472 buff.write(_struct_I.pack(_v21.seq)) 00473 _v22 = _v21.stamp 00474 _x = _v22 00475 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00476 _x = _v21.frame_id 00477 length = len(_x) 00478 buff.write(struct.pack('<I%ss'%length, length, _x)) 00479 _v23 = val1.pose 00480 _v24 = _v23.position 00481 _x = _v24 00482 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00483 _v25 = _v23.orientation 00484 _x = _v25 00485 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00486 length = len(self.action_goal.goal.arm) 00487 buff.write(_struct_I.pack(length)) 00488 for val1 in self.action_goal.goal.arm: 00489 buff.write(_struct_i.pack(val1.data)) 00490 _x = self 00491 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00492 _x = self.action_result.header.frame_id 00493 length = len(_x) 00494 buff.write(struct.pack('<I%ss'%length, length, _x)) 00495 _x = self 00496 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00497 _x = self.action_result.status.goal_id.id 00498 length = len(_x) 00499 buff.write(struct.pack('<I%ss'%length, length, _x)) 00500 buff.write(_struct_B.pack(self.action_result.status.status)) 00501 _x = self.action_result.status.text 00502 length = len(_x) 00503 buff.write(struct.pack('<I%ss'%length, length, _x)) 00504 length = len(self.action_result.result.base_poses) 00505 buff.write(_struct_I.pack(length)) 00506 for val1 in self.action_result.result.base_poses: 00507 _v26 = val1.header 00508 buff.write(_struct_I.pack(_v26.seq)) 00509 _v27 = _v26.stamp 00510 _x = _v27 00511 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00512 _x = _v26.frame_id 00513 length = len(_x) 00514 buff.write(struct.pack('<I%ss'%length, length, _x)) 00515 _v28 = val1.pose 00516 _v29 = _v28.position 00517 _x = _v29 00518 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00519 _v30 = _v28.orientation 00520 _x = _v30 00521 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00522 _x = self 00523 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00524 _x = self.action_feedback.header.frame_id 00525 length = len(_x) 00526 buff.write(struct.pack('<I%ss'%length, length, _x)) 00527 _x = self 00528 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00529 _x = self.action_feedback.status.goal_id.id 00530 length = len(_x) 00531 buff.write(struct.pack('<I%ss'%length, length, _x)) 00532 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00533 _x = self.action_feedback.status.text 00534 length = len(_x) 00535 buff.write(struct.pack('<I%ss'%length, length, _x)) 00536 except struct.error as se: self._check_types(se) 00537 except TypeError as te: self._check_types(te) 00538 00539 def deserialize_numpy(self, str, numpy): 00540 """ 00541 unpack serialized message in str into this message instance using numpy for array types 00542 @param str: byte array of serialized message 00543 @type str: str 00544 @param numpy: numpy python module 00545 @type numpy: module 00546 """ 00547 try: 00548 if self.action_goal is None: 00549 self.action_goal = find_base_pose.msg.FindBasePoseActionGoal() 00550 if self.action_result is None: 00551 self.action_result = find_base_pose.msg.FindBasePoseActionResult() 00552 if self.action_feedback is None: 00553 self.action_feedback = find_base_pose.msg.FindBasePoseActionFeedback() 00554 end = 0 00555 _x = self 00556 start = end 00557 end += 12 00558 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00559 start = end 00560 end += 4 00561 (length,) = _struct_I.unpack(str[start:end]) 00562 start = end 00563 end += length 00564 self.action_goal.header.frame_id = str[start:end] 00565 _x = self 00566 start = end 00567 end += 8 00568 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00569 start = end 00570 end += 4 00571 (length,) = _struct_I.unpack(str[start:end]) 00572 start = end 00573 end += length 00574 self.action_goal.goal_id.id = str[start:end] 00575 start = end 00576 end += 4 00577 (length,) = _struct_I.unpack(str[start:end]) 00578 self.action_goal.goal.target_poses = [] 00579 for i in range(0, length): 00580 val1 = geometry_msgs.msg.PoseStamped() 00581 _v31 = val1.header 00582 start = end 00583 end += 4 00584 (_v31.seq,) = _struct_I.unpack(str[start:end]) 00585 _v32 = _v31.stamp 00586 _x = _v32 00587 start = end 00588 end += 8 00589 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00590 start = end 00591 end += 4 00592 (length,) = _struct_I.unpack(str[start:end]) 00593 start = end 00594 end += length 00595 _v31.frame_id = str[start:end] 00596 _v33 = val1.pose 00597 _v34 = _v33.position 00598 _x = _v34 00599 start = end 00600 end += 24 00601 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00602 _v35 = _v33.orientation 00603 _x = _v35 00604 start = end 00605 end += 32 00606 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00607 self.action_goal.goal.target_poses.append(val1) 00608 start = end 00609 end += 4 00610 (length,) = _struct_I.unpack(str[start:end]) 00611 self.action_goal.goal.arm = [] 00612 for i in range(0, length): 00613 val1 = std_msgs.msg.Int32() 00614 start = end 00615 end += 4 00616 (val1.data,) = _struct_i.unpack(str[start:end]) 00617 self.action_goal.goal.arm.append(val1) 00618 _x = self 00619 start = end 00620 end += 12 00621 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.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_result.header.frame_id = str[start:end] 00628 _x = self 00629 start = end 00630 end += 8 00631 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.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_result.status.goal_id.id = str[start:end] 00638 start = end 00639 end += 1 00640 (self.action_result.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_result.status.text = str[start:end] 00647 start = end 00648 end += 4 00649 (length,) = _struct_I.unpack(str[start:end]) 00650 self.action_result.result.base_poses = [] 00651 for i in range(0, length): 00652 val1 = geometry_msgs.msg.PoseStamped() 00653 _v36 = val1.header 00654 start = end 00655 end += 4 00656 (_v36.seq,) = _struct_I.unpack(str[start:end]) 00657 _v37 = _v36.stamp 00658 _x = _v37 00659 start = end 00660 end += 8 00661 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00662 start = end 00663 end += 4 00664 (length,) = _struct_I.unpack(str[start:end]) 00665 start = end 00666 end += length 00667 _v36.frame_id = str[start:end] 00668 _v38 = val1.pose 00669 _v39 = _v38.position 00670 _x = _v39 00671 start = end 00672 end += 24 00673 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00674 _v40 = _v38.orientation 00675 _x = _v40 00676 start = end 00677 end += 32 00678 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00679 self.action_result.result.base_poses.append(val1) 00680 _x = self 00681 start = end 00682 end += 12 00683 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00684 start = end 00685 end += 4 00686 (length,) = _struct_I.unpack(str[start:end]) 00687 start = end 00688 end += length 00689 self.action_feedback.header.frame_id = str[start:end] 00690 _x = self 00691 start = end 00692 end += 8 00693 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00694 start = end 00695 end += 4 00696 (length,) = _struct_I.unpack(str[start:end]) 00697 start = end 00698 end += length 00699 self.action_feedback.status.goal_id.id = str[start:end] 00700 start = end 00701 end += 1 00702 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00703 start = end 00704 end += 4 00705 (length,) = _struct_I.unpack(str[start:end]) 00706 start = end 00707 end += length 00708 self.action_feedback.status.text = str[start:end] 00709 return self 00710 except struct.error as e: 00711 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00712 00713 _struct_I = roslib.message.struct_I 00714 _struct_B = struct.Struct("<B") 00715 _struct_i = struct.Struct("<i") 00716 _struct_3I = struct.Struct("<3I") 00717 _struct_4d = struct.Struct("<4d") 00718 _struct_2I = struct.Struct("<2I") 00719 _struct_3d = struct.Struct("<3d")