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