$search
00001 """autogenerated by genmsg_py from ExecSkillAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import skiller.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import std_msgs.msg 00009 00010 class ExecSkillAction(roslib.message.Message): 00011 _md5sum = "b8b4b9724c42002969c536b96ee28506" 00012 _type = "skiller/ExecSkillAction" 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 ExecSkillActionGoal action_goal 00017 ExecSkillActionResult action_result 00018 ExecSkillActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: skiller/ExecSkillActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 ExecSkillGoal 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: skiller/ExecSkillGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 string skillstring 00063 00064 ================================================================================ 00065 MSG: skiller/ExecSkillActionResult 00066 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00067 00068 Header header 00069 actionlib_msgs/GoalStatus status 00070 ExecSkillResult result 00071 00072 ================================================================================ 00073 MSG: actionlib_msgs/GoalStatus 00074 GoalID goal_id 00075 uint8 status 00076 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00077 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00078 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00079 # and has since completed its execution (Terminal State) 00080 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00081 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00082 # to some failure (Terminal State) 00083 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00084 # because the goal was unattainable or invalid (Terminal State) 00085 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00086 # and has not yet completed execution 00087 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00088 # but the action server has not yet confirmed that the goal is canceled 00089 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00090 # and was successfully cancelled (Terminal State) 00091 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00092 # sent over the wire by an action server 00093 00094 #Allow for the user to associate a string with GoalStatus for debugging 00095 string text 00096 00097 00098 ================================================================================ 00099 MSG: skiller/ExecSkillResult 00100 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00101 string errmsg 00102 00103 ================================================================================ 00104 MSG: skiller/ExecSkillActionFeedback 00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00106 00107 Header header 00108 actionlib_msgs/GoalStatus status 00109 ExecSkillFeedback feedback 00110 00111 ================================================================================ 00112 MSG: skiller/ExecSkillFeedback 00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00114 00115 00116 """ 00117 __slots__ = ['action_goal','action_result','action_feedback'] 00118 _slot_types = ['skiller/ExecSkillActionGoal','skiller/ExecSkillActionResult','skiller/ExecSkillActionFeedback'] 00119 00120 def __init__(self, *args, **kwds): 00121 """ 00122 Constructor. Any message fields that are implicitly/explicitly 00123 set to None will be assigned a default value. The recommend 00124 use is keyword arguments as this is more robust to future message 00125 changes. You cannot mix in-order arguments and keyword arguments. 00126 00127 The available fields are: 00128 action_goal,action_result,action_feedback 00129 00130 @param args: complete set of field values, in .msg order 00131 @param kwds: use keyword arguments corresponding to message field names 00132 to set specific fields. 00133 """ 00134 if args or kwds: 00135 super(ExecSkillAction, self).__init__(*args, **kwds) 00136 #message fields cannot be None, assign default values for those that are 00137 if self.action_goal is None: 00138 self.action_goal = skiller.msg.ExecSkillActionGoal() 00139 if self.action_result is None: 00140 self.action_result = skiller.msg.ExecSkillActionResult() 00141 if self.action_feedback is None: 00142 self.action_feedback = skiller.msg.ExecSkillActionFeedback() 00143 else: 00144 self.action_goal = skiller.msg.ExecSkillActionGoal() 00145 self.action_result = skiller.msg.ExecSkillActionResult() 00146 self.action_feedback = skiller.msg.ExecSkillActionFeedback() 00147 00148 def _get_types(self): 00149 """ 00150 internal API method 00151 """ 00152 return self._slot_types 00153 00154 def serialize(self, buff): 00155 """ 00156 serialize message into buffer 00157 @param buff: buffer 00158 @type buff: StringIO 00159 """ 00160 try: 00161 _x = self 00162 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00163 _x = self.action_goal.header.frame_id 00164 length = len(_x) 00165 buff.write(struct.pack('<I%ss'%length, length, _x)) 00166 _x = self 00167 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00168 _x = self.action_goal.goal_id.id 00169 length = len(_x) 00170 buff.write(struct.pack('<I%ss'%length, length, _x)) 00171 _x = self.action_goal.goal.skillstring 00172 length = len(_x) 00173 buff.write(struct.pack('<I%ss'%length, length, _x)) 00174 _x = self 00175 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00176 _x = self.action_result.header.frame_id 00177 length = len(_x) 00178 buff.write(struct.pack('<I%ss'%length, length, _x)) 00179 _x = self 00180 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00181 _x = self.action_result.status.goal_id.id 00182 length = len(_x) 00183 buff.write(struct.pack('<I%ss'%length, length, _x)) 00184 buff.write(_struct_B.pack(self.action_result.status.status)) 00185 _x = self.action_result.status.text 00186 length = len(_x) 00187 buff.write(struct.pack('<I%ss'%length, length, _x)) 00188 _x = self.action_result.result.errmsg 00189 length = len(_x) 00190 buff.write(struct.pack('<I%ss'%length, length, _x)) 00191 _x = self 00192 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00193 _x = self.action_feedback.header.frame_id 00194 length = len(_x) 00195 buff.write(struct.pack('<I%ss'%length, length, _x)) 00196 _x = self 00197 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00198 _x = self.action_feedback.status.goal_id.id 00199 length = len(_x) 00200 buff.write(struct.pack('<I%ss'%length, length, _x)) 00201 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00202 _x = self.action_feedback.status.text 00203 length = len(_x) 00204 buff.write(struct.pack('<I%ss'%length, length, _x)) 00205 except struct.error as se: self._check_types(se) 00206 except TypeError as te: self._check_types(te) 00207 00208 def deserialize(self, str): 00209 """ 00210 unpack serialized message in str into this message instance 00211 @param str: byte array of serialized message 00212 @type str: str 00213 """ 00214 try: 00215 if self.action_goal is None: 00216 self.action_goal = skiller.msg.ExecSkillActionGoal() 00217 if self.action_result is None: 00218 self.action_result = skiller.msg.ExecSkillActionResult() 00219 if self.action_feedback is None: 00220 self.action_feedback = skiller.msg.ExecSkillActionFeedback() 00221 end = 0 00222 _x = self 00223 start = end 00224 end += 12 00225 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00226 start = end 00227 end += 4 00228 (length,) = _struct_I.unpack(str[start:end]) 00229 start = end 00230 end += length 00231 self.action_goal.header.frame_id = str[start:end] 00232 _x = self 00233 start = end 00234 end += 8 00235 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00236 start = end 00237 end += 4 00238 (length,) = _struct_I.unpack(str[start:end]) 00239 start = end 00240 end += length 00241 self.action_goal.goal_id.id = str[start:end] 00242 start = end 00243 end += 4 00244 (length,) = _struct_I.unpack(str[start:end]) 00245 start = end 00246 end += length 00247 self.action_goal.goal.skillstring = str[start:end] 00248 _x = self 00249 start = end 00250 end += 12 00251 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00252 start = end 00253 end += 4 00254 (length,) = _struct_I.unpack(str[start:end]) 00255 start = end 00256 end += length 00257 self.action_result.header.frame_id = str[start:end] 00258 _x = self 00259 start = end 00260 end += 8 00261 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00262 start = end 00263 end += 4 00264 (length,) = _struct_I.unpack(str[start:end]) 00265 start = end 00266 end += length 00267 self.action_result.status.goal_id.id = str[start:end] 00268 start = end 00269 end += 1 00270 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00271 start = end 00272 end += 4 00273 (length,) = _struct_I.unpack(str[start:end]) 00274 start = end 00275 end += length 00276 self.action_result.status.text = str[start:end] 00277 start = end 00278 end += 4 00279 (length,) = _struct_I.unpack(str[start:end]) 00280 start = end 00281 end += length 00282 self.action_result.result.errmsg = str[start:end] 00283 _x = self 00284 start = end 00285 end += 12 00286 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00287 start = end 00288 end += 4 00289 (length,) = _struct_I.unpack(str[start:end]) 00290 start = end 00291 end += length 00292 self.action_feedback.header.frame_id = str[start:end] 00293 _x = self 00294 start = end 00295 end += 8 00296 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00297 start = end 00298 end += 4 00299 (length,) = _struct_I.unpack(str[start:end]) 00300 start = end 00301 end += length 00302 self.action_feedback.status.goal_id.id = str[start:end] 00303 start = end 00304 end += 1 00305 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00306 start = end 00307 end += 4 00308 (length,) = _struct_I.unpack(str[start:end]) 00309 start = end 00310 end += length 00311 self.action_feedback.status.text = str[start:end] 00312 return self 00313 except struct.error as e: 00314 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00315 00316 00317 def serialize_numpy(self, buff, numpy): 00318 """ 00319 serialize message with numpy array types into buffer 00320 @param buff: buffer 00321 @type buff: StringIO 00322 @param numpy: numpy python module 00323 @type numpy module 00324 """ 00325 try: 00326 _x = self 00327 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00328 _x = self.action_goal.header.frame_id 00329 length = len(_x) 00330 buff.write(struct.pack('<I%ss'%length, length, _x)) 00331 _x = self 00332 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00333 _x = self.action_goal.goal_id.id 00334 length = len(_x) 00335 buff.write(struct.pack('<I%ss'%length, length, _x)) 00336 _x = self.action_goal.goal.skillstring 00337 length = len(_x) 00338 buff.write(struct.pack('<I%ss'%length, length, _x)) 00339 _x = self 00340 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00341 _x = self.action_result.header.frame_id 00342 length = len(_x) 00343 buff.write(struct.pack('<I%ss'%length, length, _x)) 00344 _x = self 00345 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00346 _x = self.action_result.status.goal_id.id 00347 length = len(_x) 00348 buff.write(struct.pack('<I%ss'%length, length, _x)) 00349 buff.write(_struct_B.pack(self.action_result.status.status)) 00350 _x = self.action_result.status.text 00351 length = len(_x) 00352 buff.write(struct.pack('<I%ss'%length, length, _x)) 00353 _x = self.action_result.result.errmsg 00354 length = len(_x) 00355 buff.write(struct.pack('<I%ss'%length, length, _x)) 00356 _x = self 00357 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00358 _x = self.action_feedback.header.frame_id 00359 length = len(_x) 00360 buff.write(struct.pack('<I%ss'%length, length, _x)) 00361 _x = self 00362 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00363 _x = self.action_feedback.status.goal_id.id 00364 length = len(_x) 00365 buff.write(struct.pack('<I%ss'%length, length, _x)) 00366 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00367 _x = self.action_feedback.status.text 00368 length = len(_x) 00369 buff.write(struct.pack('<I%ss'%length, length, _x)) 00370 except struct.error as se: self._check_types(se) 00371 except TypeError as te: self._check_types(te) 00372 00373 def deserialize_numpy(self, str, numpy): 00374 """ 00375 unpack serialized message in str into this message instance using numpy for array types 00376 @param str: byte array of serialized message 00377 @type str: str 00378 @param numpy: numpy python module 00379 @type numpy: module 00380 """ 00381 try: 00382 if self.action_goal is None: 00383 self.action_goal = skiller.msg.ExecSkillActionGoal() 00384 if self.action_result is None: 00385 self.action_result = skiller.msg.ExecSkillActionResult() 00386 if self.action_feedback is None: 00387 self.action_feedback = skiller.msg.ExecSkillActionFeedback() 00388 end = 0 00389 _x = self 00390 start = end 00391 end += 12 00392 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00393 start = end 00394 end += 4 00395 (length,) = _struct_I.unpack(str[start:end]) 00396 start = end 00397 end += length 00398 self.action_goal.header.frame_id = str[start:end] 00399 _x = self 00400 start = end 00401 end += 8 00402 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00403 start = end 00404 end += 4 00405 (length,) = _struct_I.unpack(str[start:end]) 00406 start = end 00407 end += length 00408 self.action_goal.goal_id.id = str[start:end] 00409 start = end 00410 end += 4 00411 (length,) = _struct_I.unpack(str[start:end]) 00412 start = end 00413 end += length 00414 self.action_goal.goal.skillstring = str[start:end] 00415 _x = self 00416 start = end 00417 end += 12 00418 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.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_result.header.frame_id = str[start:end] 00425 _x = self 00426 start = end 00427 end += 8 00428 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.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_result.status.goal_id.id = str[start:end] 00435 start = end 00436 end += 1 00437 (self.action_result.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_result.status.text = str[start:end] 00444 start = end 00445 end += 4 00446 (length,) = _struct_I.unpack(str[start:end]) 00447 start = end 00448 end += length 00449 self.action_result.result.errmsg = str[start:end] 00450 _x = self 00451 start = end 00452 end += 12 00453 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00454 start = end 00455 end += 4 00456 (length,) = _struct_I.unpack(str[start:end]) 00457 start = end 00458 end += length 00459 self.action_feedback.header.frame_id = str[start:end] 00460 _x = self 00461 start = end 00462 end += 8 00463 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00464 start = end 00465 end += 4 00466 (length,) = _struct_I.unpack(str[start:end]) 00467 start = end 00468 end += length 00469 self.action_feedback.status.goal_id.id = str[start:end] 00470 start = end 00471 end += 1 00472 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00473 start = end 00474 end += 4 00475 (length,) = _struct_I.unpack(str[start:end]) 00476 start = end 00477 end += length 00478 self.action_feedback.status.text = str[start:end] 00479 return self 00480 except struct.error as e: 00481 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00482 00483 _struct_I = roslib.message.struct_I 00484 _struct_3I = struct.Struct("<3I") 00485 _struct_B = struct.Struct("<B") 00486 _struct_2I = struct.Struct("<2I")