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