$search
00001 """autogenerated by genmsg_py from RotateInPlaceAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import flirtlib_ros.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import std_msgs.msg 00009 00010 class RotateInPlaceAction(roslib.message.Message): 00011 _md5sum = "6fea2419e74b58f0057c1eede9164345" 00012 _type = "flirtlib_ros/RotateInPlaceAction" 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 RotateInPlaceActionGoal action_goal 00017 RotateInPlaceActionResult action_result 00018 RotateInPlaceActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: flirtlib_ros/RotateInPlaceActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 RotateInPlaceGoal 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: flirtlib_ros/RotateInPlaceGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 # Goal is to get close to yaw angle target in frame header.frame_id 00063 Header header 00064 float32 target 00065 float32 tol 00066 00067 ================================================================================ 00068 MSG: flirtlib_ros/RotateInPlaceActionResult 00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00070 00071 Header header 00072 actionlib_msgs/GoalStatus status 00073 RotateInPlaceResult result 00074 00075 ================================================================================ 00076 MSG: actionlib_msgs/GoalStatus 00077 GoalID goal_id 00078 uint8 status 00079 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00080 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00081 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00082 # and has since completed its execution (Terminal State) 00083 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00084 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00085 # to some failure (Terminal State) 00086 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00087 # because the goal was unattainable or invalid (Terminal State) 00088 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00089 # and has not yet completed execution 00090 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00091 # but the action server has not yet confirmed that the goal is canceled 00092 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00093 # and was successfully cancelled (Terminal State) 00094 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00095 # sent over the wire by an action server 00096 00097 #Allow for the user to associate a string with GoalStatus for debugging 00098 string text 00099 00100 00101 ================================================================================ 00102 MSG: flirtlib_ros/RotateInPlaceResult 00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00104 # Result is yaw we think we achieved 00105 float32 achieved 00106 00107 ================================================================================ 00108 MSG: flirtlib_ros/RotateInPlaceActionFeedback 00109 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00110 00111 Header header 00112 actionlib_msgs/GoalStatus status 00113 RotateInPlaceFeedback feedback 00114 00115 ================================================================================ 00116 MSG: flirtlib_ros/RotateInPlaceFeedback 00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00118 # No feedback 00119 00120 """ 00121 __slots__ = ['action_goal','action_result','action_feedback'] 00122 _slot_types = ['flirtlib_ros/RotateInPlaceActionGoal','flirtlib_ros/RotateInPlaceActionResult','flirtlib_ros/RotateInPlaceActionFeedback'] 00123 00124 def __init__(self, *args, **kwds): 00125 """ 00126 Constructor. Any message fields that are implicitly/explicitly 00127 set to None will be assigned a default value. The recommend 00128 use is keyword arguments as this is more robust to future message 00129 changes. You cannot mix in-order arguments and keyword arguments. 00130 00131 The available fields are: 00132 action_goal,action_result,action_feedback 00133 00134 @param args: complete set of field values, in .msg order 00135 @param kwds: use keyword arguments corresponding to message field names 00136 to set specific fields. 00137 """ 00138 if args or kwds: 00139 super(RotateInPlaceAction, self).__init__(*args, **kwds) 00140 #message fields cannot be None, assign default values for those that are 00141 if self.action_goal is None: 00142 self.action_goal = flirtlib_ros.msg.RotateInPlaceActionGoal() 00143 if self.action_result is None: 00144 self.action_result = flirtlib_ros.msg.RotateInPlaceActionResult() 00145 if self.action_feedback is None: 00146 self.action_feedback = flirtlib_ros.msg.RotateInPlaceActionFeedback() 00147 else: 00148 self.action_goal = flirtlib_ros.msg.RotateInPlaceActionGoal() 00149 self.action_result = flirtlib_ros.msg.RotateInPlaceActionResult() 00150 self.action_feedback = flirtlib_ros.msg.RotateInPlaceActionFeedback() 00151 00152 def _get_types(self): 00153 """ 00154 internal API method 00155 """ 00156 return self._slot_types 00157 00158 def serialize(self, buff): 00159 """ 00160 serialize message into buffer 00161 @param buff: buffer 00162 @type buff: StringIO 00163 """ 00164 try: 00165 _x = self 00166 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00167 _x = self.action_goal.header.frame_id 00168 length = len(_x) 00169 buff.write(struct.pack('<I%ss'%length, length, _x)) 00170 _x = self 00171 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00172 _x = self.action_goal.goal_id.id 00173 length = len(_x) 00174 buff.write(struct.pack('<I%ss'%length, length, _x)) 00175 _x = self 00176 buff.write(_struct_3I.pack(_x.action_goal.goal.header.seq, _x.action_goal.goal.header.stamp.secs, _x.action_goal.goal.header.stamp.nsecs)) 00177 _x = self.action_goal.goal.header.frame_id 00178 length = len(_x) 00179 buff.write(struct.pack('<I%ss'%length, length, _x)) 00180 _x = self 00181 buff.write(_struct_2f3I.pack(_x.action_goal.goal.target, _x.action_goal.goal.tol, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00182 _x = self.action_result.header.frame_id 00183 length = len(_x) 00184 buff.write(struct.pack('<I%ss'%length, length, _x)) 00185 _x = self 00186 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00187 _x = self.action_result.status.goal_id.id 00188 length = len(_x) 00189 buff.write(struct.pack('<I%ss'%length, length, _x)) 00190 buff.write(_struct_B.pack(self.action_result.status.status)) 00191 _x = self.action_result.status.text 00192 length = len(_x) 00193 buff.write(struct.pack('<I%ss'%length, length, _x)) 00194 _x = self 00195 buff.write(_struct_f3I.pack(_x.action_result.result.achieved, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00196 _x = self.action_feedback.header.frame_id 00197 length = len(_x) 00198 buff.write(struct.pack('<I%ss'%length, length, _x)) 00199 _x = self 00200 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00201 _x = self.action_feedback.status.goal_id.id 00202 length = len(_x) 00203 buff.write(struct.pack('<I%ss'%length, length, _x)) 00204 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00205 _x = self.action_feedback.status.text 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 = flirtlib_ros.msg.RotateInPlaceActionGoal() 00220 if self.action_result is None: 00221 self.action_result = flirtlib_ros.msg.RotateInPlaceActionResult() 00222 if self.action_feedback is None: 00223 self.action_feedback = flirtlib_ros.msg.RotateInPlaceActionFeedback() 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_goal.goal.header.seq, _x.action_goal.goal.header.stamp.secs, _x.action_goal.goal.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_goal.goal.header.frame_id = str[start:end] 00255 _x = self 00256 start = end 00257 end += 20 00258 (_x.action_goal.goal.target, _x.action_goal.goal.tol, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2f3I.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.header.frame_id = str[start:end] 00265 _x = self 00266 start = end 00267 end += 8 00268 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(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_result.status.goal_id.id = str[start:end] 00275 start = end 00276 end += 1 00277 (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end] 00284 _x = self 00285 start = end 00286 end += 16 00287 (_x.action_result.result.achieved, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_f3I.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.header.frame_id = str[start:end] 00294 _x = self 00295 start = end 00296 end += 8 00297 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00298 start = end 00299 end += 4 00300 (length,) = _struct_I.unpack(str[start:end]) 00301 start = end 00302 end += length 00303 self.action_feedback.status.goal_id.id = str[start:end] 00304 start = end 00305 end += 1 00306 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00307 start = end 00308 end += 4 00309 (length,) = _struct_I.unpack(str[start:end]) 00310 start = end 00311 end += length 00312 self.action_feedback.status.text = str[start:end] 00313 return self 00314 except struct.error as e: 00315 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00316 00317 00318 def serialize_numpy(self, buff, numpy): 00319 """ 00320 serialize message with numpy array types into buffer 00321 @param buff: buffer 00322 @type buff: StringIO 00323 @param numpy: numpy python module 00324 @type numpy module 00325 """ 00326 try: 00327 _x = self 00328 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00329 _x = self.action_goal.header.frame_id 00330 length = len(_x) 00331 buff.write(struct.pack('<I%ss'%length, length, _x)) 00332 _x = self 00333 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00334 _x = self.action_goal.goal_id.id 00335 length = len(_x) 00336 buff.write(struct.pack('<I%ss'%length, length, _x)) 00337 _x = self 00338 buff.write(_struct_3I.pack(_x.action_goal.goal.header.seq, _x.action_goal.goal.header.stamp.secs, _x.action_goal.goal.header.stamp.nsecs)) 00339 _x = self.action_goal.goal.header.frame_id 00340 length = len(_x) 00341 buff.write(struct.pack('<I%ss'%length, length, _x)) 00342 _x = self 00343 buff.write(_struct_2f3I.pack(_x.action_goal.goal.target, _x.action_goal.goal.tol, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00344 _x = self.action_result.header.frame_id 00345 length = len(_x) 00346 buff.write(struct.pack('<I%ss'%length, length, _x)) 00347 _x = self 00348 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00349 _x = self.action_result.status.goal_id.id 00350 length = len(_x) 00351 buff.write(struct.pack('<I%ss'%length, length, _x)) 00352 buff.write(_struct_B.pack(self.action_result.status.status)) 00353 _x = self.action_result.status.text 00354 length = len(_x) 00355 buff.write(struct.pack('<I%ss'%length, length, _x)) 00356 _x = self 00357 buff.write(_struct_f3I.pack(_x.action_result.result.achieved, _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 = flirtlib_ros.msg.RotateInPlaceActionGoal() 00384 if self.action_result is None: 00385 self.action_result = flirtlib_ros.msg.RotateInPlaceActionResult() 00386 if self.action_feedback is None: 00387 self.action_feedback = flirtlib_ros.msg.RotateInPlaceActionFeedback() 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 _x = self 00410 start = end 00411 end += 12 00412 (_x.action_goal.goal.header.seq, _x.action_goal.goal.header.stamp.secs, _x.action_goal.goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00413 start = end 00414 end += 4 00415 (length,) = _struct_I.unpack(str[start:end]) 00416 start = end 00417 end += length 00418 self.action_goal.goal.header.frame_id = str[start:end] 00419 _x = self 00420 start = end 00421 end += 20 00422 (_x.action_goal.goal.target, _x.action_goal.goal.tol, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2f3I.unpack(str[start:end]) 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 _x = self 00449 start = end 00450 end += 16 00451 (_x.action_result.result.achieved, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_f3I.unpack(str[start:end]) 00452 start = end 00453 end += 4 00454 (length,) = _struct_I.unpack(str[start:end]) 00455 start = end 00456 end += length 00457 self.action_feedback.header.frame_id = str[start:end] 00458 _x = self 00459 start = end 00460 end += 8 00461 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00462 start = end 00463 end += 4 00464 (length,) = _struct_I.unpack(str[start:end]) 00465 start = end 00466 end += length 00467 self.action_feedback.status.goal_id.id = str[start:end] 00468 start = end 00469 end += 1 00470 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00471 start = end 00472 end += 4 00473 (length,) = _struct_I.unpack(str[start:end]) 00474 start = end 00475 end += length 00476 self.action_feedback.status.text = str[start:end] 00477 return self 00478 except struct.error as e: 00479 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00480 00481 _struct_I = roslib.message.struct_I 00482 _struct_f3I = struct.Struct("<f3I") 00483 _struct_3I = struct.Struct("<3I") 00484 _struct_B = struct.Struct("<B") 00485 _struct_2f3I = struct.Struct("<2f3I") 00486 _struct_2I = struct.Struct("<2I")