_ConfigAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from interval_intersection/ConfigAction.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import interval_intersection.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ConfigAction(genpy.Message):
00013   _md5sum = "daf4f3168538603bba58f6ea42d51314"
00014   _type = "interval_intersection/ConfigAction"
00015   _has_header = False #flag to mark the presence of a Header object
00016   _full_text = """
00017 ConfigActionGoal action_goal
00018 ConfigActionResult action_result
00019 ConfigActionFeedback action_feedback
00020 
00021 ================================================================================
00022 MSG: interval_intersection/ConfigActionGoal
00023 
00024 Header header
00025 actionlib_msgs/GoalID goal_id
00026 ConfigGoal 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: interval_intersection/ConfigGoal
00061 string[] topics
00062 
00063 ================================================================================
00064 MSG: interval_intersection/ConfigActionResult
00065 
00066 Header header
00067 actionlib_msgs/GoalStatus status
00068 ConfigResult result
00069 
00070 ================================================================================
00071 MSG: actionlib_msgs/GoalStatus
00072 GoalID goal_id
00073 uint8 status
00074 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00075 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00076 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00077                             #   and has since completed its execution (Terminal State)
00078 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00079 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00080                             #    to some failure (Terminal State)
00081 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00082                             #    because the goal was unattainable or invalid (Terminal State)
00083 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00084                             #    and has not yet completed execution
00085 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00086                             #    but the action server has not yet confirmed that the goal is canceled
00087 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00088                             #    and was successfully cancelled (Terminal State)
00089 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00090                             #    sent over the wire by an action server
00091 
00092 #Allow for the user to associate a string with GoalStatus for debugging
00093 string text
00094 
00095 
00096 ================================================================================
00097 MSG: interval_intersection/ConfigResult
00098 
00099 ================================================================================
00100 MSG: interval_intersection/ConfigActionFeedback
00101 
00102 Header header
00103 actionlib_msgs/GoalStatus status
00104 ConfigFeedback feedback
00105 
00106 ================================================================================
00107 MSG: interval_intersection/ConfigFeedback
00108 
00109 """
00110   __slots__ = ['action_goal','action_result','action_feedback']
00111   _slot_types = ['interval_intersection/ConfigActionGoal','interval_intersection/ConfigActionResult','interval_intersection/ConfigActionFeedback']
00112 
00113   def __init__(self, *args, **kwds):
00114     """
00115     Constructor. Any message fields that are implicitly/explicitly
00116     set to None will be assigned a default value. The recommend
00117     use is keyword arguments as this is more robust to future message
00118     changes.  You cannot mix in-order arguments and keyword arguments.
00119 
00120     The available fields are:
00121        action_goal,action_result,action_feedback
00122 
00123     :param args: complete set of field values, in .msg order
00124     :param kwds: use keyword arguments corresponding to message field names
00125     to set specific fields.
00126     """
00127     if args or kwds:
00128       super(ConfigAction, self).__init__(*args, **kwds)
00129       #message fields cannot be None, assign default values for those that are
00130       if self.action_goal is None:
00131         self.action_goal = interval_intersection.msg.ConfigActionGoal()
00132       if self.action_result is None:
00133         self.action_result = interval_intersection.msg.ConfigActionResult()
00134       if self.action_feedback is None:
00135         self.action_feedback = interval_intersection.msg.ConfigActionFeedback()
00136     else:
00137       self.action_goal = interval_intersection.msg.ConfigActionGoal()
00138       self.action_result = interval_intersection.msg.ConfigActionResult()
00139       self.action_feedback = interval_intersection.msg.ConfigActionFeedback()
00140 
00141   def _get_types(self):
00142     """
00143     internal API method
00144     """
00145     return self._slot_types
00146 
00147   def serialize(self, buff):
00148     """
00149     serialize message into buffer
00150     :param buff: buffer, ``StringIO``
00151     """
00152     try:
00153       _x = self
00154       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00155       _x = self.action_goal.header.frame_id
00156       length = len(_x)
00157       if python3 or type(_x) == unicode:
00158         _x = _x.encode('utf-8')
00159         length = len(_x)
00160       buff.write(struct.pack('<I%ss'%length, length, _x))
00161       _x = self
00162       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00163       _x = self.action_goal.goal_id.id
00164       length = len(_x)
00165       if python3 or type(_x) == unicode:
00166         _x = _x.encode('utf-8')
00167         length = len(_x)
00168       buff.write(struct.pack('<I%ss'%length, length, _x))
00169       length = len(self.action_goal.goal.topics)
00170       buff.write(_struct_I.pack(length))
00171       for val1 in self.action_goal.goal.topics:
00172         length = len(val1)
00173         if python3 or type(val1) == unicode:
00174           val1 = val1.encode('utf-8')
00175           length = len(val1)
00176         buff.write(struct.pack('<I%ss'%length, length, val1))
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       if python3 or type(_x) == unicode:
00182         _x = _x.encode('utf-8')
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       if python3 or type(_x) == unicode:
00190         _x = _x.encode('utf-8')
00191         length = len(_x)
00192       buff.write(struct.pack('<I%ss'%length, length, _x))
00193       buff.write(_struct_B.pack(self.action_result.status.status))
00194       _x = self.action_result.status.text
00195       length = len(_x)
00196       if python3 or type(_x) == unicode:
00197         _x = _x.encode('utf-8')
00198         length = len(_x)
00199       buff.write(struct.pack('<I%ss'%length, length, _x))
00200       _x = self
00201       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00202       _x = self.action_feedback.header.frame_id
00203       length = len(_x)
00204       if python3 or type(_x) == unicode:
00205         _x = _x.encode('utf-8')
00206         length = len(_x)
00207       buff.write(struct.pack('<I%ss'%length, length, _x))
00208       _x = self
00209       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00210       _x = self.action_feedback.status.goal_id.id
00211       length = len(_x)
00212       if python3 or type(_x) == unicode:
00213         _x = _x.encode('utf-8')
00214         length = len(_x)
00215       buff.write(struct.pack('<I%ss'%length, length, _x))
00216       buff.write(_struct_B.pack(self.action_feedback.status.status))
00217       _x = self.action_feedback.status.text
00218       length = len(_x)
00219       if python3 or type(_x) == unicode:
00220         _x = _x.encode('utf-8')
00221         length = len(_x)
00222       buff.write(struct.pack('<I%ss'%length, length, _x))
00223     except struct.error as se: self._check_types(se)
00224     except TypeError as te: self._check_types(te)
00225 
00226   def deserialize(self, str):
00227     """
00228     unpack serialized message in str into this message instance
00229     :param str: byte array of serialized message, ``str``
00230     """
00231     try:
00232       if self.action_goal is None:
00233         self.action_goal = interval_intersection.msg.ConfigActionGoal()
00234       if self.action_result is None:
00235         self.action_result = interval_intersection.msg.ConfigActionResult()
00236       if self.action_feedback is None:
00237         self.action_feedback = interval_intersection.msg.ConfigActionFeedback()
00238       end = 0
00239       _x = self
00240       start = end
00241       end += 12
00242       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00243       start = end
00244       end += 4
00245       (length,) = _struct_I.unpack(str[start:end])
00246       start = end
00247       end += length
00248       if python3:
00249         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00250       else:
00251         self.action_goal.header.frame_id = str[start:end]
00252       _x = self
00253       start = end
00254       end += 8
00255       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00256       start = end
00257       end += 4
00258       (length,) = _struct_I.unpack(str[start:end])
00259       start = end
00260       end += length
00261       if python3:
00262         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00263       else:
00264         self.action_goal.goal_id.id = str[start:end]
00265       start = end
00266       end += 4
00267       (length,) = _struct_I.unpack(str[start:end])
00268       self.action_goal.goal.topics = []
00269       for i in range(0, length):
00270         start = end
00271         end += 4
00272         (length,) = _struct_I.unpack(str[start:end])
00273         start = end
00274         end += length
00275         if python3:
00276           val1 = str[start:end].decode('utf-8')
00277         else:
00278           val1 = str[start:end]
00279         self.action_goal.goal.topics.append(val1)
00280       _x = self
00281       start = end
00282       end += 12
00283       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00284       start = end
00285       end += 4
00286       (length,) = _struct_I.unpack(str[start:end])
00287       start = end
00288       end += length
00289       if python3:
00290         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00291       else:
00292         self.action_result.header.frame_id = str[start:end]
00293       _x = self
00294       start = end
00295       end += 8
00296       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.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       if python3:
00303         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00304       else:
00305         self.action_result.status.goal_id.id = str[start:end]
00306       start = end
00307       end += 1
00308       (self.action_result.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       if python3:
00315         self.action_result.status.text = str[start:end].decode('utf-8')
00316       else:
00317         self.action_result.status.text = str[start:end]
00318       _x = self
00319       start = end
00320       end += 12
00321       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00322       start = end
00323       end += 4
00324       (length,) = _struct_I.unpack(str[start:end])
00325       start = end
00326       end += length
00327       if python3:
00328         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00329       else:
00330         self.action_feedback.header.frame_id = str[start:end]
00331       _x = self
00332       start = end
00333       end += 8
00334       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00335       start = end
00336       end += 4
00337       (length,) = _struct_I.unpack(str[start:end])
00338       start = end
00339       end += length
00340       if python3:
00341         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00342       else:
00343         self.action_feedback.status.goal_id.id = str[start:end]
00344       start = end
00345       end += 1
00346       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00347       start = end
00348       end += 4
00349       (length,) = _struct_I.unpack(str[start:end])
00350       start = end
00351       end += length
00352       if python3:
00353         self.action_feedback.status.text = str[start:end].decode('utf-8')
00354       else:
00355         self.action_feedback.status.text = str[start:end]
00356       return self
00357     except struct.error as e:
00358       raise genpy.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, ``StringIO``
00365     :param numpy: numpy python module
00366     """
00367     try:
00368       _x = self
00369       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00370       _x = self.action_goal.header.frame_id
00371       length = len(_x)
00372       if python3 or type(_x) == unicode:
00373         _x = _x.encode('utf-8')
00374         length = len(_x)
00375       buff.write(struct.pack('<I%ss'%length, length, _x))
00376       _x = self
00377       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00378       _x = self.action_goal.goal_id.id
00379       length = len(_x)
00380       if python3 or type(_x) == unicode:
00381         _x = _x.encode('utf-8')
00382         length = len(_x)
00383       buff.write(struct.pack('<I%ss'%length, length, _x))
00384       length = len(self.action_goal.goal.topics)
00385       buff.write(_struct_I.pack(length))
00386       for val1 in self.action_goal.goal.topics:
00387         length = len(val1)
00388         if python3 or type(val1) == unicode:
00389           val1 = val1.encode('utf-8')
00390           length = len(val1)
00391         buff.write(struct.pack('<I%ss'%length, length, val1))
00392       _x = self
00393       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00394       _x = self.action_result.header.frame_id
00395       length = len(_x)
00396       if python3 or type(_x) == unicode:
00397         _x = _x.encode('utf-8')
00398         length = len(_x)
00399       buff.write(struct.pack('<I%ss'%length, length, _x))
00400       _x = self
00401       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00402       _x = self.action_result.status.goal_id.id
00403       length = len(_x)
00404       if python3 or type(_x) == unicode:
00405         _x = _x.encode('utf-8')
00406         length = len(_x)
00407       buff.write(struct.pack('<I%ss'%length, length, _x))
00408       buff.write(_struct_B.pack(self.action_result.status.status))
00409       _x = self.action_result.status.text
00410       length = len(_x)
00411       if python3 or type(_x) == unicode:
00412         _x = _x.encode('utf-8')
00413         length = len(_x)
00414       buff.write(struct.pack('<I%ss'%length, length, _x))
00415       _x = self
00416       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00417       _x = self.action_feedback.header.frame_id
00418       length = len(_x)
00419       if python3 or type(_x) == unicode:
00420         _x = _x.encode('utf-8')
00421         length = len(_x)
00422       buff.write(struct.pack('<I%ss'%length, length, _x))
00423       _x = self
00424       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00425       _x = self.action_feedback.status.goal_id.id
00426       length = len(_x)
00427       if python3 or type(_x) == unicode:
00428         _x = _x.encode('utf-8')
00429         length = len(_x)
00430       buff.write(struct.pack('<I%ss'%length, length, _x))
00431       buff.write(_struct_B.pack(self.action_feedback.status.status))
00432       _x = self.action_feedback.status.text
00433       length = len(_x)
00434       if python3 or type(_x) == unicode:
00435         _x = _x.encode('utf-8')
00436         length = len(_x)
00437       buff.write(struct.pack('<I%ss'%length, length, _x))
00438     except struct.error as se: self._check_types(se)
00439     except TypeError as te: self._check_types(te)
00440 
00441   def deserialize_numpy(self, str, numpy):
00442     """
00443     unpack serialized message in str into this message instance using numpy for array types
00444     :param str: byte array of serialized message, ``str``
00445     :param numpy: numpy python module
00446     """
00447     try:
00448       if self.action_goal is None:
00449         self.action_goal = interval_intersection.msg.ConfigActionGoal()
00450       if self.action_result is None:
00451         self.action_result = interval_intersection.msg.ConfigActionResult()
00452       if self.action_feedback is None:
00453         self.action_feedback = interval_intersection.msg.ConfigActionFeedback()
00454       end = 0
00455       _x = self
00456       start = end
00457       end += 12
00458       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00459       start = end
00460       end += 4
00461       (length,) = _struct_I.unpack(str[start:end])
00462       start = end
00463       end += length
00464       if python3:
00465         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00466       else:
00467         self.action_goal.header.frame_id = str[start:end]
00468       _x = self
00469       start = end
00470       end += 8
00471       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00472       start = end
00473       end += 4
00474       (length,) = _struct_I.unpack(str[start:end])
00475       start = end
00476       end += length
00477       if python3:
00478         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00479       else:
00480         self.action_goal.goal_id.id = str[start:end]
00481       start = end
00482       end += 4
00483       (length,) = _struct_I.unpack(str[start:end])
00484       self.action_goal.goal.topics = []
00485       for i in range(0, length):
00486         start = end
00487         end += 4
00488         (length,) = _struct_I.unpack(str[start:end])
00489         start = end
00490         end += length
00491         if python3:
00492           val1 = str[start:end].decode('utf-8')
00493         else:
00494           val1 = str[start:end]
00495         self.action_goal.goal.topics.append(val1)
00496       _x = self
00497       start = end
00498       end += 12
00499       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00500       start = end
00501       end += 4
00502       (length,) = _struct_I.unpack(str[start:end])
00503       start = end
00504       end += length
00505       if python3:
00506         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00507       else:
00508         self.action_result.header.frame_id = str[start:end]
00509       _x = self
00510       start = end
00511       end += 8
00512       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00513       start = end
00514       end += 4
00515       (length,) = _struct_I.unpack(str[start:end])
00516       start = end
00517       end += length
00518       if python3:
00519         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00520       else:
00521         self.action_result.status.goal_id.id = str[start:end]
00522       start = end
00523       end += 1
00524       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00525       start = end
00526       end += 4
00527       (length,) = _struct_I.unpack(str[start:end])
00528       start = end
00529       end += length
00530       if python3:
00531         self.action_result.status.text = str[start:end].decode('utf-8')
00532       else:
00533         self.action_result.status.text = str[start:end]
00534       _x = self
00535       start = end
00536       end += 12
00537       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.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       if python3:
00544         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00545       else:
00546         self.action_feedback.header.frame_id = str[start:end]
00547       _x = self
00548       start = end
00549       end += 8
00550       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00551       start = end
00552       end += 4
00553       (length,) = _struct_I.unpack(str[start:end])
00554       start = end
00555       end += length
00556       if python3:
00557         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00558       else:
00559         self.action_feedback.status.goal_id.id = str[start:end]
00560       start = end
00561       end += 1
00562       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00563       start = end
00564       end += 4
00565       (length,) = _struct_I.unpack(str[start:end])
00566       start = end
00567       end += length
00568       if python3:
00569         self.action_feedback.status.text = str[start:end].decode('utf-8')
00570       else:
00571         self.action_feedback.status.text = str[start:end]
00572       return self
00573     except struct.error as e:
00574       raise genpy.DeserializationError(e) #most likely buffer underfill
00575 
00576 _struct_I = genpy.struct_I
00577 _struct_3I = struct.Struct("<3I")
00578 _struct_B = struct.Struct("<B")
00579 _struct_2I = struct.Struct("<2I")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


interval_intersection
Author(s): Romain Thibaux
autogenerated on Thu Aug 15 2013 10:15:57