_ConstructStaticCollisionMapAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from collider/ConstructStaticCollisionMapAction.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 collider.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ConstructStaticCollisionMapAction(genpy.Message):
00013   _md5sum = "d5a016b49f278075666fbc901debbd08"
00014   _type = "collider/ConstructStaticCollisionMapAction"
00015   _has_header = False #flag to mark the presence of a Header object
00016   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017 
00018 ConstructStaticCollisionMapActionGoal action_goal
00019 ConstructStaticCollisionMapActionResult action_result
00020 ConstructStaticCollisionMapActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: collider/ConstructStaticCollisionMapActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ConstructStaticCollisionMapGoal goal
00029 
00030 ================================================================================
00031 MSG: std_msgs/Header
00032 # Standard metadata for higher-level stamped data types.
00033 # This is generally used to communicate timestamped data 
00034 # in a particular coordinate frame.
00035 # 
00036 # sequence ID: consecutively increasing ID 
00037 uint32 seq
00038 #Two-integer timestamp that is expressed as:
00039 # * stamp.secs: seconds (stamp_secs) since epoch
00040 # * stamp.nsecs: nanoseconds since stamp_secs
00041 # time-handling sugar is provided by the client library
00042 time stamp
00043 #Frame this data is associated with
00044 # 0: no frame
00045 # 1: global frame
00046 string frame_id
00047 
00048 ================================================================================
00049 MSG: actionlib_msgs/GoalID
00050 # The stamp should store the time at which this goal was requested.
00051 # It is used by an action server when it tries to preempt all
00052 # goals that were requested before a certain time
00053 time stamp
00054 
00055 # The id provides a way to associate feedback and
00056 # result message with specific goal requests. The id
00057 # specified must be unique.
00058 string id
00059 
00060 
00061 ================================================================================
00062 MSG: collider/ConstructStaticCollisionMapGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 
00065 ================================================================================
00066 MSG: collider/ConstructStaticCollisionMapActionResult
00067 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00068 
00069 Header header
00070 actionlib_msgs/GoalStatus status
00071 ConstructStaticCollisionMapResult 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: collider/ConstructStaticCollisionMapResult
00101 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00102 
00103 ================================================================================
00104 MSG: collider/ConstructStaticCollisionMapActionFeedback
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 
00107 Header header
00108 actionlib_msgs/GoalStatus status
00109 ConstructStaticCollisionMapFeedback feedback
00110 
00111 ================================================================================
00112 MSG: collider/ConstructStaticCollisionMapFeedback
00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00114 
00115 
00116 """
00117   __slots__ = ['action_goal','action_result','action_feedback']
00118   _slot_types = ['collider/ConstructStaticCollisionMapActionGoal','collider/ConstructStaticCollisionMapActionResult','collider/ConstructStaticCollisionMapActionFeedback']
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(ConstructStaticCollisionMapAction, 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 = collider.msg.ConstructStaticCollisionMapActionGoal()
00139       if self.action_result is None:
00140         self.action_result = collider.msg.ConstructStaticCollisionMapActionResult()
00141       if self.action_feedback is None:
00142         self.action_feedback = collider.msg.ConstructStaticCollisionMapActionFeedback()
00143     else:
00144       self.action_goal = collider.msg.ConstructStaticCollisionMapActionGoal()
00145       self.action_result = collider.msg.ConstructStaticCollisionMapActionResult()
00146       self.action_feedback = collider.msg.ConstructStaticCollisionMapActionFeedback()
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, ``StringIO``
00158     """
00159     try:
00160       _x = self
00161       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00162       _x = self.action_goal.header.frame_id
00163       length = len(_x)
00164       if python3 or type(_x) == unicode:
00165         _x = _x.encode('utf-8')
00166         length = len(_x)
00167       buff.write(struct.pack('<I%ss'%length, length, _x))
00168       _x = self
00169       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00170       _x = self.action_goal.goal_id.id
00171       length = len(_x)
00172       if python3 or type(_x) == unicode:
00173         _x = _x.encode('utf-8')
00174         length = len(_x)
00175       buff.write(struct.pack('<I%ss'%length, length, _x))
00176       _x = self
00177       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00178       _x = self.action_result.header.frame_id
00179       length = len(_x)
00180       if python3 or type(_x) == unicode:
00181         _x = _x.encode('utf-8')
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       if python3 or type(_x) == unicode:
00189         _x = _x.encode('utf-8')
00190         length = len(_x)
00191       buff.write(struct.pack('<I%ss'%length, length, _x))
00192       buff.write(_struct_B.pack(self.action_result.status.status))
00193       _x = self.action_result.status.text
00194       length = len(_x)
00195       if python3 or type(_x) == unicode:
00196         _x = _x.encode('utf-8')
00197         length = len(_x)
00198       buff.write(struct.pack('<I%ss'%length, length, _x))
00199       _x = self
00200       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00201       _x = self.action_feedback.header.frame_id
00202       length = len(_x)
00203       if python3 or type(_x) == unicode:
00204         _x = _x.encode('utf-8')
00205         length = len(_x)
00206       buff.write(struct.pack('<I%ss'%length, length, _x))
00207       _x = self
00208       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00209       _x = self.action_feedback.status.goal_id.id
00210       length = len(_x)
00211       if python3 or type(_x) == unicode:
00212         _x = _x.encode('utf-8')
00213         length = len(_x)
00214       buff.write(struct.pack('<I%ss'%length, length, _x))
00215       buff.write(_struct_B.pack(self.action_feedback.status.status))
00216       _x = self.action_feedback.status.text
00217       length = len(_x)
00218       if python3 or type(_x) == unicode:
00219         _x = _x.encode('utf-8')
00220         length = len(_x)
00221       buff.write(struct.pack('<I%ss'%length, length, _x))
00222     except struct.error as se: self._check_types(se)
00223     except TypeError as te: self._check_types(te)
00224 
00225   def deserialize(self, str):
00226     """
00227     unpack serialized message in str into this message instance
00228     :param str: byte array of serialized message, ``str``
00229     """
00230     try:
00231       if self.action_goal is None:
00232         self.action_goal = collider.msg.ConstructStaticCollisionMapActionGoal()
00233       if self.action_result is None:
00234         self.action_result = collider.msg.ConstructStaticCollisionMapActionResult()
00235       if self.action_feedback is None:
00236         self.action_feedback = collider.msg.ConstructStaticCollisionMapActionFeedback()
00237       end = 0
00238       _x = self
00239       start = end
00240       end += 12
00241       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00242       start = end
00243       end += 4
00244       (length,) = _struct_I.unpack(str[start:end])
00245       start = end
00246       end += length
00247       if python3:
00248         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00249       else:
00250         self.action_goal.header.frame_id = str[start:end]
00251       _x = self
00252       start = end
00253       end += 8
00254       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00255       start = end
00256       end += 4
00257       (length,) = _struct_I.unpack(str[start:end])
00258       start = end
00259       end += length
00260       if python3:
00261         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00262       else:
00263         self.action_goal.goal_id.id = str[start:end]
00264       _x = self
00265       start = end
00266       end += 12
00267       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.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       if python3:
00274         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00275       else:
00276         self.action_result.header.frame_id = str[start:end]
00277       _x = self
00278       start = end
00279       end += 8
00280       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00281       start = end
00282       end += 4
00283       (length,) = _struct_I.unpack(str[start:end])
00284       start = end
00285       end += length
00286       if python3:
00287         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00288       else:
00289         self.action_result.status.goal_id.id = str[start:end]
00290       start = end
00291       end += 1
00292       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00293       start = end
00294       end += 4
00295       (length,) = _struct_I.unpack(str[start:end])
00296       start = end
00297       end += length
00298       if python3:
00299         self.action_result.status.text = str[start:end].decode('utf-8')
00300       else:
00301         self.action_result.status.text = str[start:end]
00302       _x = self
00303       start = end
00304       end += 12
00305       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.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       if python3:
00312         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00313       else:
00314         self.action_feedback.header.frame_id = str[start:end]
00315       _x = self
00316       start = end
00317       end += 8
00318       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00319       start = end
00320       end += 4
00321       (length,) = _struct_I.unpack(str[start:end])
00322       start = end
00323       end += length
00324       if python3:
00325         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00326       else:
00327         self.action_feedback.status.goal_id.id = str[start:end]
00328       start = end
00329       end += 1
00330       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00331       start = end
00332       end += 4
00333       (length,) = _struct_I.unpack(str[start:end])
00334       start = end
00335       end += length
00336       if python3:
00337         self.action_feedback.status.text = str[start:end].decode('utf-8')
00338       else:
00339         self.action_feedback.status.text = str[start:end]
00340       return self
00341     except struct.error as e:
00342       raise genpy.DeserializationError(e) #most likely buffer underfill
00343 
00344 
00345   def serialize_numpy(self, buff, numpy):
00346     """
00347     serialize message with numpy array types into buffer
00348     :param buff: buffer, ``StringIO``
00349     :param numpy: numpy python module
00350     """
00351     try:
00352       _x = self
00353       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00354       _x = self.action_goal.header.frame_id
00355       length = len(_x)
00356       if python3 or type(_x) == unicode:
00357         _x = _x.encode('utf-8')
00358         length = len(_x)
00359       buff.write(struct.pack('<I%ss'%length, length, _x))
00360       _x = self
00361       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00362       _x = self.action_goal.goal_id.id
00363       length = len(_x)
00364       if python3 or type(_x) == unicode:
00365         _x = _x.encode('utf-8')
00366         length = len(_x)
00367       buff.write(struct.pack('<I%ss'%length, length, _x))
00368       _x = self
00369       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00370       _x = self.action_result.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_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00378       _x = self.action_result.status.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       buff.write(_struct_B.pack(self.action_result.status.status))
00385       _x = self.action_result.status.text
00386       length = len(_x)
00387       if python3 or type(_x) == unicode:
00388         _x = _x.encode('utf-8')
00389         length = len(_x)
00390       buff.write(struct.pack('<I%ss'%length, length, _x))
00391       _x = self
00392       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00393       _x = self.action_feedback.header.frame_id
00394       length = len(_x)
00395       if python3 or type(_x) == unicode:
00396         _x = _x.encode('utf-8')
00397         length = len(_x)
00398       buff.write(struct.pack('<I%ss'%length, length, _x))
00399       _x = self
00400       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00401       _x = self.action_feedback.status.goal_id.id
00402       length = len(_x)
00403       if python3 or type(_x) == unicode:
00404         _x = _x.encode('utf-8')
00405         length = len(_x)
00406       buff.write(struct.pack('<I%ss'%length, length, _x))
00407       buff.write(_struct_B.pack(self.action_feedback.status.status))
00408       _x = self.action_feedback.status.text
00409       length = len(_x)
00410       if python3 or type(_x) == unicode:
00411         _x = _x.encode('utf-8')
00412         length = len(_x)
00413       buff.write(struct.pack('<I%ss'%length, length, _x))
00414     except struct.error as se: self._check_types(se)
00415     except TypeError as te: self._check_types(te)
00416 
00417   def deserialize_numpy(self, str, numpy):
00418     """
00419     unpack serialized message in str into this message instance using numpy for array types
00420     :param str: byte array of serialized message, ``str``
00421     :param numpy: numpy python module
00422     """
00423     try:
00424       if self.action_goal is None:
00425         self.action_goal = collider.msg.ConstructStaticCollisionMapActionGoal()
00426       if self.action_result is None:
00427         self.action_result = collider.msg.ConstructStaticCollisionMapActionResult()
00428       if self.action_feedback is None:
00429         self.action_feedback = collider.msg.ConstructStaticCollisionMapActionFeedback()
00430       end = 0
00431       _x = self
00432       start = end
00433       end += 12
00434       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00435       start = end
00436       end += 4
00437       (length,) = _struct_I.unpack(str[start:end])
00438       start = end
00439       end += length
00440       if python3:
00441         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00442       else:
00443         self.action_goal.header.frame_id = str[start:end]
00444       _x = self
00445       start = end
00446       end += 8
00447       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00448       start = end
00449       end += 4
00450       (length,) = _struct_I.unpack(str[start:end])
00451       start = end
00452       end += length
00453       if python3:
00454         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00455       else:
00456         self.action_goal.goal_id.id = str[start:end]
00457       _x = self
00458       start = end
00459       end += 12
00460       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00461       start = end
00462       end += 4
00463       (length,) = _struct_I.unpack(str[start:end])
00464       start = end
00465       end += length
00466       if python3:
00467         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00468       else:
00469         self.action_result.header.frame_id = str[start:end]
00470       _x = self
00471       start = end
00472       end += 8
00473       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00474       start = end
00475       end += 4
00476       (length,) = _struct_I.unpack(str[start:end])
00477       start = end
00478       end += length
00479       if python3:
00480         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00481       else:
00482         self.action_result.status.goal_id.id = str[start:end]
00483       start = end
00484       end += 1
00485       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00486       start = end
00487       end += 4
00488       (length,) = _struct_I.unpack(str[start:end])
00489       start = end
00490       end += length
00491       if python3:
00492         self.action_result.status.text = str[start:end].decode('utf-8')
00493       else:
00494         self.action_result.status.text = str[start:end]
00495       _x = self
00496       start = end
00497       end += 12
00498       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00499       start = end
00500       end += 4
00501       (length,) = _struct_I.unpack(str[start:end])
00502       start = end
00503       end += length
00504       if python3:
00505         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00506       else:
00507         self.action_feedback.header.frame_id = str[start:end]
00508       _x = self
00509       start = end
00510       end += 8
00511       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00512       start = end
00513       end += 4
00514       (length,) = _struct_I.unpack(str[start:end])
00515       start = end
00516       end += length
00517       if python3:
00518         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00519       else:
00520         self.action_feedback.status.goal_id.id = str[start:end]
00521       start = end
00522       end += 1
00523       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00524       start = end
00525       end += 4
00526       (length,) = _struct_I.unpack(str[start:end])
00527       start = end
00528       end += length
00529       if python3:
00530         self.action_feedback.status.text = str[start:end].decode('utf-8')
00531       else:
00532         self.action_feedback.status.text = str[start:end]
00533       return self
00534     except struct.error as e:
00535       raise genpy.DeserializationError(e) #most likely buffer underfill
00536 
00537 _struct_I = genpy.struct_I
00538 _struct_3I = struct.Struct("<3I")
00539 _struct_B = struct.Struct("<B")
00540 _struct_2I = struct.Struct("<2I")


collider
Author(s): Adam Harmat, Gil E. Jones, Kai M. Wurm, Armin Hornung. Maintained by Gil E. Jones
autogenerated on Thu Dec 12 2013 11:07:38