$search
00001 """autogenerated by genmsg_py from ManualArmManipAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import actionlib_msgs.msg 00006 import roslib.rostime 00007 import srs_assisted_arm_navigation_msgs.msg 00008 import std_msgs.msg 00009 00010 class ManualArmManipAction(roslib.message.Message): 00011 _md5sum = "71034794fed158ed1740081717ff0120" 00012 _type = "srs_assisted_arm_navigation_msgs/ManualArmManipAction" 00013 _has_header = False #flag to mark the presence of a Header object 00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00015 00016 ManualArmManipActionGoal action_goal 00017 ManualArmManipActionResult action_result 00018 ManualArmManipActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 ManualArmManipGoal goal 00027 00028 ================================================================================ 00029 MSG: std_msgs/Header 00030 # Standard metadata for higher-level stamped data types. 00031 # This is generally used to communicate timestamped data 00032 # in a particular coordinate frame. 00033 # 00034 # sequence ID: consecutively increasing ID 00035 uint32 seq 00036 #Two-integer timestamp that is expressed as: 00037 # * stamp.secs: seconds (stamp_secs) since epoch 00038 # * stamp.nsecs: nanoseconds since stamp_secs 00039 # time-handling sugar is provided by the client library 00040 time stamp 00041 #Frame this data is associated with 00042 # 0: no frame 00043 # 1: global frame 00044 string frame_id 00045 00046 ================================================================================ 00047 MSG: actionlib_msgs/GoalID 00048 # The stamp should store the time at which this goal was requested. 00049 # It is used by an action server when it tries to preempt all 00050 # goals that were requested before a certain time 00051 time stamp 00052 00053 # The id provides a way to associate feedback and 00054 # result message with specific goal requests. The id 00055 # specified must be unique. 00056 string id 00057 00058 00059 ================================================================================ 00060 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 # goal 00063 string action # description what to do 00064 string post_action # string which will be displayed after user finished task 00065 bool allow_repeat 00066 string object_name 00067 00068 ================================================================================ 00069 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionResult 00070 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00071 00072 Header header 00073 actionlib_msgs/GoalStatus status 00074 ManualArmManipResult result 00075 00076 ================================================================================ 00077 MSG: actionlib_msgs/GoalStatus 00078 GoalID goal_id 00079 uint8 status 00080 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00081 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00082 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00083 # and has since completed its execution (Terminal State) 00084 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00085 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00086 # to some failure (Terminal State) 00087 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00088 # because the goal was unattainable or invalid (Terminal State) 00089 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00090 # and has not yet completed execution 00091 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00092 # but the action server has not yet confirmed that the goal is canceled 00093 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00094 # and was successfully cancelled (Terminal State) 00095 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00096 # sent over the wire by an action server 00097 00098 #Allow for the user to associate a string with GoalStatus for debugging 00099 string text 00100 00101 00102 ================================================================================ 00103 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipResult 00104 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00105 # result 00106 bool success 00107 bool failed 00108 bool repeat 00109 bool timeout 00110 bool collision 00111 duration time_elapsed 00112 00113 ================================================================================ 00114 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipActionFeedback 00115 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00116 00117 Header header 00118 actionlib_msgs/GoalStatus status 00119 ManualArmManipFeedback feedback 00120 00121 ================================================================================ 00122 MSG: srs_assisted_arm_navigation_msgs/ManualArmManipFeedback 00123 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00124 # feedback 00125 bool starting 00126 bool planning 00127 bool executing 00128 bool reset 00129 00130 00131 """ 00132 __slots__ = ['action_goal','action_result','action_feedback'] 00133 _slot_types = ['srs_assisted_arm_navigation_msgs/ManualArmManipActionGoal','srs_assisted_arm_navigation_msgs/ManualArmManipActionResult','srs_assisted_arm_navigation_msgs/ManualArmManipActionFeedback'] 00134 00135 def __init__(self, *args, **kwds): 00136 """ 00137 Constructor. Any message fields that are implicitly/explicitly 00138 set to None will be assigned a default value. The recommend 00139 use is keyword arguments as this is more robust to future message 00140 changes. You cannot mix in-order arguments and keyword arguments. 00141 00142 The available fields are: 00143 action_goal,action_result,action_feedback 00144 00145 @param args: complete set of field values, in .msg order 00146 @param kwds: use keyword arguments corresponding to message field names 00147 to set specific fields. 00148 """ 00149 if args or kwds: 00150 super(ManualArmManipAction, self).__init__(*args, **kwds) 00151 #message fields cannot be None, assign default values for those that are 00152 if self.action_goal is None: 00153 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal() 00154 if self.action_result is None: 00155 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult() 00156 if self.action_feedback is None: 00157 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback() 00158 else: 00159 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal() 00160 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult() 00161 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback() 00162 00163 def _get_types(self): 00164 """ 00165 internal API method 00166 """ 00167 return self._slot_types 00168 00169 def serialize(self, buff): 00170 """ 00171 serialize message into buffer 00172 @param buff: buffer 00173 @type buff: StringIO 00174 """ 00175 try: 00176 _x = self 00177 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00178 _x = self.action_goal.header.frame_id 00179 length = len(_x) 00180 buff.write(struct.pack('<I%ss'%length, length, _x)) 00181 _x = self 00182 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00183 _x = self.action_goal.goal_id.id 00184 length = len(_x) 00185 buff.write(struct.pack('<I%ss'%length, length, _x)) 00186 _x = self.action_goal.goal.action 00187 length = len(_x) 00188 buff.write(struct.pack('<I%ss'%length, length, _x)) 00189 _x = self.action_goal.goal.post_action 00190 length = len(_x) 00191 buff.write(struct.pack('<I%ss'%length, length, _x)) 00192 buff.write(_struct_B.pack(self.action_goal.goal.allow_repeat)) 00193 _x = self.action_goal.goal.object_name 00194 length = len(_x) 00195 buff.write(struct.pack('<I%ss'%length, length, _x)) 00196 _x = self 00197 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00198 _x = self.action_result.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_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00203 _x = self.action_result.status.goal_id.id 00204 length = len(_x) 00205 buff.write(struct.pack('<I%ss'%length, length, _x)) 00206 buff.write(_struct_B.pack(self.action_result.status.status)) 00207 _x = self.action_result.status.text 00208 length = len(_x) 00209 buff.write(struct.pack('<I%ss'%length, length, _x)) 00210 _x = self 00211 buff.write(_struct_5B2i3I.pack(_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00212 _x = self.action_feedback.header.frame_id 00213 length = len(_x) 00214 buff.write(struct.pack('<I%ss'%length, length, _x)) 00215 _x = self 00216 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00217 _x = self.action_feedback.status.goal_id.id 00218 length = len(_x) 00219 buff.write(struct.pack('<I%ss'%length, length, _x)) 00220 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00221 _x = self.action_feedback.status.text 00222 length = len(_x) 00223 buff.write(struct.pack('<I%ss'%length, length, _x)) 00224 _x = self 00225 buff.write(_struct_4B.pack(_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset)) 00226 except struct.error as se: self._check_types(se) 00227 except TypeError as te: self._check_types(te) 00228 00229 def deserialize(self, str): 00230 """ 00231 unpack serialized message in str into this message instance 00232 @param str: byte array of serialized message 00233 @type str: str 00234 """ 00235 try: 00236 if self.action_goal is None: 00237 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal() 00238 if self.action_result is None: 00239 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult() 00240 if self.action_feedback is None: 00241 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback() 00242 end = 0 00243 _x = self 00244 start = end 00245 end += 12 00246 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00247 start = end 00248 end += 4 00249 (length,) = _struct_I.unpack(str[start:end]) 00250 start = end 00251 end += length 00252 self.action_goal.header.frame_id = str[start:end] 00253 _x = self 00254 start = end 00255 end += 8 00256 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00257 start = end 00258 end += 4 00259 (length,) = _struct_I.unpack(str[start:end]) 00260 start = end 00261 end += length 00262 self.action_goal.goal_id.id = str[start:end] 00263 start = end 00264 end += 4 00265 (length,) = _struct_I.unpack(str[start:end]) 00266 start = end 00267 end += length 00268 self.action_goal.goal.action = str[start:end] 00269 start = end 00270 end += 4 00271 (length,) = _struct_I.unpack(str[start:end]) 00272 start = end 00273 end += length 00274 self.action_goal.goal.post_action = str[start:end] 00275 start = end 00276 end += 1 00277 (self.action_goal.goal.allow_repeat,) = _struct_B.unpack(str[start:end]) 00278 self.action_goal.goal.allow_repeat = bool(self.action_goal.goal.allow_repeat) 00279 start = end 00280 end += 4 00281 (length,) = _struct_I.unpack(str[start:end]) 00282 start = end 00283 end += length 00284 self.action_goal.goal.object_name = str[start:end] 00285 _x = self 00286 start = end 00287 end += 12 00288 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00289 start = end 00290 end += 4 00291 (length,) = _struct_I.unpack(str[start:end]) 00292 start = end 00293 end += length 00294 self.action_result.header.frame_id = str[start:end] 00295 _x = self 00296 start = end 00297 end += 8 00298 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.action_result.status.goal_id.id = str[start:end] 00305 start = end 00306 end += 1 00307 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00308 start = end 00309 end += 4 00310 (length,) = _struct_I.unpack(str[start:end]) 00311 start = end 00312 end += length 00313 self.action_result.status.text = str[start:end] 00314 _x = self 00315 start = end 00316 end += 25 00317 (_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_5B2i3I.unpack(str[start:end]) 00318 self.action_result.result.success = bool(self.action_result.result.success) 00319 self.action_result.result.failed = bool(self.action_result.result.failed) 00320 self.action_result.result.repeat = bool(self.action_result.result.repeat) 00321 self.action_result.result.timeout = bool(self.action_result.result.timeout) 00322 self.action_result.result.collision = bool(self.action_result.result.collision) 00323 start = end 00324 end += 4 00325 (length,) = _struct_I.unpack(str[start:end]) 00326 start = end 00327 end += length 00328 self.action_feedback.header.frame_id = str[start:end] 00329 _x = self 00330 start = end 00331 end += 8 00332 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00333 start = end 00334 end += 4 00335 (length,) = _struct_I.unpack(str[start:end]) 00336 start = end 00337 end += length 00338 self.action_feedback.status.goal_id.id = str[start:end] 00339 start = end 00340 end += 1 00341 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00342 start = end 00343 end += 4 00344 (length,) = _struct_I.unpack(str[start:end]) 00345 start = end 00346 end += length 00347 self.action_feedback.status.text = str[start:end] 00348 _x = self 00349 start = end 00350 end += 4 00351 (_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset,) = _struct_4B.unpack(str[start:end]) 00352 self.action_feedback.feedback.starting = bool(self.action_feedback.feedback.starting) 00353 self.action_feedback.feedback.planning = bool(self.action_feedback.feedback.planning) 00354 self.action_feedback.feedback.executing = bool(self.action_feedback.feedback.executing) 00355 self.action_feedback.feedback.reset = bool(self.action_feedback.feedback.reset) 00356 return self 00357 except struct.error as e: 00358 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00359 00360 00361 def serialize_numpy(self, buff, numpy): 00362 """ 00363 serialize message with numpy array types into buffer 00364 @param buff: buffer 00365 @type buff: StringIO 00366 @param numpy: numpy python module 00367 @type numpy module 00368 """ 00369 try: 00370 _x = self 00371 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00372 _x = self.action_goal.header.frame_id 00373 length = len(_x) 00374 buff.write(struct.pack('<I%ss'%length, length, _x)) 00375 _x = self 00376 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00377 _x = self.action_goal.goal_id.id 00378 length = len(_x) 00379 buff.write(struct.pack('<I%ss'%length, length, _x)) 00380 _x = self.action_goal.goal.action 00381 length = len(_x) 00382 buff.write(struct.pack('<I%ss'%length, length, _x)) 00383 _x = self.action_goal.goal.post_action 00384 length = len(_x) 00385 buff.write(struct.pack('<I%ss'%length, length, _x)) 00386 buff.write(_struct_B.pack(self.action_goal.goal.allow_repeat)) 00387 _x = self.action_goal.goal.object_name 00388 length = len(_x) 00389 buff.write(struct.pack('<I%ss'%length, length, _x)) 00390 _x = self 00391 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00392 _x = self.action_result.header.frame_id 00393 length = len(_x) 00394 buff.write(struct.pack('<I%ss'%length, length, _x)) 00395 _x = self 00396 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00397 _x = self.action_result.status.goal_id.id 00398 length = len(_x) 00399 buff.write(struct.pack('<I%ss'%length, length, _x)) 00400 buff.write(_struct_B.pack(self.action_result.status.status)) 00401 _x = self.action_result.status.text 00402 length = len(_x) 00403 buff.write(struct.pack('<I%ss'%length, length, _x)) 00404 _x = self 00405 buff.write(_struct_5B2i3I.pack(_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00406 _x = self.action_feedback.header.frame_id 00407 length = len(_x) 00408 buff.write(struct.pack('<I%ss'%length, length, _x)) 00409 _x = self 00410 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00411 _x = self.action_feedback.status.goal_id.id 00412 length = len(_x) 00413 buff.write(struct.pack('<I%ss'%length, length, _x)) 00414 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00415 _x = self.action_feedback.status.text 00416 length = len(_x) 00417 buff.write(struct.pack('<I%ss'%length, length, _x)) 00418 _x = self 00419 buff.write(_struct_4B.pack(_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset)) 00420 except struct.error as se: self._check_types(se) 00421 except TypeError as te: self._check_types(te) 00422 00423 def deserialize_numpy(self, str, numpy): 00424 """ 00425 unpack serialized message in str into this message instance using numpy for array types 00426 @param str: byte array of serialized message 00427 @type str: str 00428 @param numpy: numpy python module 00429 @type numpy: module 00430 """ 00431 try: 00432 if self.action_goal is None: 00433 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionGoal() 00434 if self.action_result is None: 00435 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionResult() 00436 if self.action_feedback is None: 00437 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualArmManipActionFeedback() 00438 end = 0 00439 _x = self 00440 start = end 00441 end += 12 00442 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00443 start = end 00444 end += 4 00445 (length,) = _struct_I.unpack(str[start:end]) 00446 start = end 00447 end += length 00448 self.action_goal.header.frame_id = str[start:end] 00449 _x = self 00450 start = end 00451 end += 8 00452 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00453 start = end 00454 end += 4 00455 (length,) = _struct_I.unpack(str[start:end]) 00456 start = end 00457 end += length 00458 self.action_goal.goal_id.id = str[start:end] 00459 start = end 00460 end += 4 00461 (length,) = _struct_I.unpack(str[start:end]) 00462 start = end 00463 end += length 00464 self.action_goal.goal.action = str[start:end] 00465 start = end 00466 end += 4 00467 (length,) = _struct_I.unpack(str[start:end]) 00468 start = end 00469 end += length 00470 self.action_goal.goal.post_action = str[start:end] 00471 start = end 00472 end += 1 00473 (self.action_goal.goal.allow_repeat,) = _struct_B.unpack(str[start:end]) 00474 self.action_goal.goal.allow_repeat = bool(self.action_goal.goal.allow_repeat) 00475 start = end 00476 end += 4 00477 (length,) = _struct_I.unpack(str[start:end]) 00478 start = end 00479 end += length 00480 self.action_goal.goal.object_name = str[start:end] 00481 _x = self 00482 start = end 00483 end += 12 00484 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00485 start = end 00486 end += 4 00487 (length,) = _struct_I.unpack(str[start:end]) 00488 start = end 00489 end += length 00490 self.action_result.header.frame_id = str[start:end] 00491 _x = self 00492 start = end 00493 end += 8 00494 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00495 start = end 00496 end += 4 00497 (length,) = _struct_I.unpack(str[start:end]) 00498 start = end 00499 end += length 00500 self.action_result.status.goal_id.id = str[start:end] 00501 start = end 00502 end += 1 00503 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00504 start = end 00505 end += 4 00506 (length,) = _struct_I.unpack(str[start:end]) 00507 start = end 00508 end += length 00509 self.action_result.status.text = str[start:end] 00510 _x = self 00511 start = end 00512 end += 25 00513 (_x.action_result.result.success, _x.action_result.result.failed, _x.action_result.result.repeat, _x.action_result.result.timeout, _x.action_result.result.collision, _x.action_result.result.time_elapsed.secs, _x.action_result.result.time_elapsed.nsecs, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_5B2i3I.unpack(str[start:end]) 00514 self.action_result.result.success = bool(self.action_result.result.success) 00515 self.action_result.result.failed = bool(self.action_result.result.failed) 00516 self.action_result.result.repeat = bool(self.action_result.result.repeat) 00517 self.action_result.result.timeout = bool(self.action_result.result.timeout) 00518 self.action_result.result.collision = bool(self.action_result.result.collision) 00519 start = end 00520 end += 4 00521 (length,) = _struct_I.unpack(str[start:end]) 00522 start = end 00523 end += length 00524 self.action_feedback.header.frame_id = str[start:end] 00525 _x = self 00526 start = end 00527 end += 8 00528 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.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_feedback.status.goal_id.id = str[start:end] 00535 start = end 00536 end += 1 00537 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00538 start = end 00539 end += 4 00540 (length,) = _struct_I.unpack(str[start:end]) 00541 start = end 00542 end += length 00543 self.action_feedback.status.text = str[start:end] 00544 _x = self 00545 start = end 00546 end += 4 00547 (_x.action_feedback.feedback.starting, _x.action_feedback.feedback.planning, _x.action_feedback.feedback.executing, _x.action_feedback.feedback.reset,) = _struct_4B.unpack(str[start:end]) 00548 self.action_feedback.feedback.starting = bool(self.action_feedback.feedback.starting) 00549 self.action_feedback.feedback.planning = bool(self.action_feedback.feedback.planning) 00550 self.action_feedback.feedback.executing = bool(self.action_feedback.feedback.executing) 00551 self.action_feedback.feedback.reset = bool(self.action_feedback.feedback.reset) 00552 return self 00553 except struct.error as e: 00554 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00555 00556 _struct_I = roslib.message.struct_I 00557 _struct_4B = struct.Struct("<4B") 00558 _struct_3I = struct.Struct("<3I") 00559 _struct_B = struct.Struct("<B") 00560 _struct_5B2i3I = struct.Struct("<5B2i3I") 00561 _struct_2I = struct.Struct("<2I")