00001 """autogenerated by genmsg_py from ConfigAction.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004 
00005 import roslib.rostime
00006 import actionlib_msgs.msg
00007 import monocam_settler.msg
00008 import std_msgs.msg
00009 
00010 class ConfigAction(roslib.message.Message):
00011   _md5sum = "4a593f02b0920fcc9e7be7341dddd78f"
00012   _type = "monocam_settler/ConfigAction"
00013   _has_header = False 
00014   _full_text = """
00015 ConfigActionGoal action_goal
00016 ConfigActionResult action_result
00017 ConfigActionFeedback action_feedback
00018 
00019 ================================================================================
00020 MSG: monocam_settler/ConfigActionGoal
00021 
00022 Header header
00023 actionlib_msgs/GoalID goal_id
00024 ConfigGoal goal
00025 
00026 ================================================================================
00027 MSG: std_msgs/Header
00028 # Standard metadata for higher-level stamped data types.
00029 # This is generally used to communicate timestamped data 
00030 # in a particular coordinate frame.
00031 # 
00032 # sequence ID: consecutively increasing ID 
00033 uint32 seq
00034 #Two-integer timestamp that is expressed as:
00035 # * stamp.secs: seconds (stamp_secs) since epoch
00036 # * stamp.nsecs: nanoseconds since stamp_secs
00037 # time-handling sugar is provided by the client library
00038 time stamp
00039 #Frame this data is associated with
00040 # 0: no frame
00041 # 1: global frame
00042 string frame_id
00043 
00044 ================================================================================
00045 MSG: actionlib_msgs/GoalID
00046 # The stamp should store the time at which this goal was requested.
00047 # It is used by an action server when it tries to preempt all
00048 # goals that were requested before a certain time
00049 time stamp
00050 
00051 # The id provides a way to associate feedback and
00052 # result message with specific goal requests. The id
00053 # specified must be unique.
00054 string id
00055 
00056 
00057 ================================================================================
00058 MSG: monocam_settler/ConfigGoal
00059 float64 tolerance      # Tolerance on each of the features
00060 uint8 ignore_failures  # True if we discard
00061 duration max_step      # The maximum timestep between two elements in an interval
00062 uint32 cache_size      # The size of our cache when searching for an interval
00063 
00064 ================================================================================
00065 MSG: monocam_settler/ConfigActionResult
00066 
00067 Header header
00068 actionlib_msgs/GoalStatus status
00069 ConfigResult result
00070 
00071 ================================================================================
00072 MSG: actionlib_msgs/GoalStatus
00073 GoalID goal_id
00074 uint8 status
00075 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00076 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00077 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00078                             #   and has since completed its execution (Terminal State)
00079 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00080 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00081                             #    to some failure (Terminal State)
00082 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00083                             #    because the goal was unattainable or invalid (Terminal State)
00084 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00085                             #    and has not yet completed execution
00086 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00087                             #    but the action server has not yet confirmed that the goal is canceled
00088 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00089                             #    and was successfully cancelled (Terminal State)
00090 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00091                             #    sent over the wire by an action server
00092 
00093 #Allow for the user to associate a string with GoalStatus for debugging
00094 string text
00095 
00096 
00097 ================================================================================
00098 MSG: monocam_settler/ConfigResult
00099 
00100 ================================================================================
00101 MSG: monocam_settler/ConfigActionFeedback
00102 
00103 Header header
00104 actionlib_msgs/GoalStatus status
00105 ConfigFeedback feedback
00106 
00107 ================================================================================
00108 MSG: monocam_settler/ConfigFeedback
00109 
00110 
00111 """
00112   __slots__ = ['action_goal','action_result','action_feedback']
00113   _slot_types = ['monocam_settler/ConfigActionGoal','monocam_settler/ConfigActionResult','monocam_settler/ConfigActionFeedback']
00114 
00115   def __init__(self, *args, **kwds):
00116     """
00117     Constructor. Any message fields that are implicitly/explicitly
00118     set to None will be assigned a default value. The recommend
00119     use is keyword arguments as this is more robust to future message
00120     changes.  You cannot mix in-order arguments and keyword arguments.
00121     
00122     The available fields are:
00123        action_goal,action_result,action_feedback
00124     
00125     @param args: complete set of field values, in .msg order
00126     @param kwds: use keyword arguments corresponding to message field names
00127     to set specific fields. 
00128     """
00129     if args or kwds:
00130       super(ConfigAction, self).__init__(*args, **kwds)
00131       
00132       if self.action_goal is None:
00133         self.action_goal = monocam_settler.msg.ConfigActionGoal()
00134       if self.action_result is None:
00135         self.action_result = monocam_settler.msg.ConfigActionResult()
00136       if self.action_feedback is None:
00137         self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00138     else:
00139       self.action_goal = monocam_settler.msg.ConfigActionGoal()
00140       self.action_result = monocam_settler.msg.ConfigActionResult()
00141       self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00142 
00143   def _get_types(self):
00144     """
00145     internal API method
00146     """
00147     return self._slot_types
00148 
00149   def serialize(self, buff):
00150     """
00151     serialize message into buffer
00152     @param buff: buffer
00153     @type  buff: StringIO
00154     """
00155     try:
00156       _x = self
00157       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00158       _x = self.action_goal.header.frame_id
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       buff.write(struct.pack('<I%ss'%length, length, _x))
00166       _x = self
00167       buff.write(_struct_dB2i4I.pack(_x.action_goal.goal.tolerance, _x.action_goal.goal.ignore_failures, _x.action_goal.goal.max_step.secs, _x.action_goal.goal.max_step.nsecs, _x.action_goal.goal.cache_size, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00168       _x = self.action_result.header.frame_id
00169       length = len(_x)
00170       buff.write(struct.pack('<I%ss'%length, length, _x))
00171       _x = self
00172       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00173       _x = self.action_result.status.goal_id.id
00174       length = len(_x)
00175       buff.write(struct.pack('<I%ss'%length, length, _x))
00176       buff.write(_struct_B.pack(self.action_result.status.status))
00177       _x = self.action_result.status.text
00178       length = len(_x)
00179       buff.write(struct.pack('<I%ss'%length, length, _x))
00180       _x = self
00181       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00182       _x = self.action_feedback.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_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00187       _x = self.action_feedback.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_feedback.status.status))
00191       _x = self.action_feedback.status.text
00192       length = len(_x)
00193       buff.write(struct.pack('<I%ss'%length, length, _x))
00194     except struct.error, se: self._check_types(se)
00195     except TypeError, te: self._check_types(te)
00196 
00197   def deserialize(self, str):
00198     """
00199     unpack serialized message in str into this message instance
00200     @param str: byte array of serialized message
00201     @type  str: str
00202     """
00203     try:
00204       if self.action_goal is None:
00205         self.action_goal = monocam_settler.msg.ConfigActionGoal()
00206       if self.action_result is None:
00207         self.action_result = monocam_settler.msg.ConfigActionResult()
00208       if self.action_feedback is None:
00209         self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00210       end = 0
00211       _x = self
00212       start = end
00213       end += 12
00214       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00215       start = end
00216       end += 4
00217       (length,) = _struct_I.unpack(str[start:end])
00218       start = end
00219       end += length
00220       self.action_goal.header.frame_id = str[start:end]
00221       _x = self
00222       start = end
00223       end += 8
00224       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00225       start = end
00226       end += 4
00227       (length,) = _struct_I.unpack(str[start:end])
00228       start = end
00229       end += length
00230       self.action_goal.goal_id.id = str[start:end]
00231       _x = self
00232       start = end
00233       end += 33
00234       (_x.action_goal.goal.tolerance, _x.action_goal.goal.ignore_failures, _x.action_goal.goal.max_step.secs, _x.action_goal.goal.max_step.nsecs, _x.action_goal.goal.cache_size, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_dB2i4I.unpack(str[start:end])
00235       start = end
00236       end += 4
00237       (length,) = _struct_I.unpack(str[start:end])
00238       start = end
00239       end += length
00240       self.action_result.header.frame_id = str[start:end]
00241       _x = self
00242       start = end
00243       end += 8
00244       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00245       start = end
00246       end += 4
00247       (length,) = _struct_I.unpack(str[start:end])
00248       start = end
00249       end += length
00250       self.action_result.status.goal_id.id = str[start:end]
00251       start = end
00252       end += 1
00253       (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00254       start = end
00255       end += 4
00256       (length,) = _struct_I.unpack(str[start:end])
00257       start = end
00258       end += length
00259       self.action_result.status.text = str[start:end]
00260       _x = self
00261       start = end
00262       end += 12
00263       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00264       start = end
00265       end += 4
00266       (length,) = _struct_I.unpack(str[start:end])
00267       start = end
00268       end += length
00269       self.action_feedback.header.frame_id = str[start:end]
00270       _x = self
00271       start = end
00272       end += 8
00273       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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_feedback.status.goal_id.id = str[start:end]
00280       start = end
00281       end += 1
00282       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00283       start = end
00284       end += 4
00285       (length,) = _struct_I.unpack(str[start:end])
00286       start = end
00287       end += length
00288       self.action_feedback.status.text = str[start:end]
00289       return self
00290     except struct.error, e:
00291       raise roslib.message.DeserializationError(e) 
00292 
00293 
00294   def serialize_numpy(self, buff, numpy):
00295     """
00296     serialize message with numpy array types into buffer
00297     @param buff: buffer
00298     @type  buff: StringIO
00299     @param numpy: numpy python module
00300     @type  numpy module
00301     """
00302     try:
00303       _x = self
00304       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00305       _x = self.action_goal.header.frame_id
00306       length = len(_x)
00307       buff.write(struct.pack('<I%ss'%length, length, _x))
00308       _x = self
00309       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00310       _x = self.action_goal.goal_id.id
00311       length = len(_x)
00312       buff.write(struct.pack('<I%ss'%length, length, _x))
00313       _x = self
00314       buff.write(_struct_dB2i4I.pack(_x.action_goal.goal.tolerance, _x.action_goal.goal.ignore_failures, _x.action_goal.goal.max_step.secs, _x.action_goal.goal.max_step.nsecs, _x.action_goal.goal.cache_size, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00315       _x = self.action_result.header.frame_id
00316       length = len(_x)
00317       buff.write(struct.pack('<I%ss'%length, length, _x))
00318       _x = self
00319       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00320       _x = self.action_result.status.goal_id.id
00321       length = len(_x)
00322       buff.write(struct.pack('<I%ss'%length, length, _x))
00323       buff.write(_struct_B.pack(self.action_result.status.status))
00324       _x = self.action_result.status.text
00325       length = len(_x)
00326       buff.write(struct.pack('<I%ss'%length, length, _x))
00327       _x = self
00328       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00329       _x = self.action_feedback.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_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00334       _x = self.action_feedback.status.goal_id.id
00335       length = len(_x)
00336       buff.write(struct.pack('<I%ss'%length, length, _x))
00337       buff.write(_struct_B.pack(self.action_feedback.status.status))
00338       _x = self.action_feedback.status.text
00339       length = len(_x)
00340       buff.write(struct.pack('<I%ss'%length, length, _x))
00341     except struct.error, se: self._check_types(se)
00342     except TypeError, te: self._check_types(te)
00343 
00344   def deserialize_numpy(self, str, numpy):
00345     """
00346     unpack serialized message in str into this message instance using numpy for array types
00347     @param str: byte array of serialized message
00348     @type  str: str
00349     @param numpy: numpy python module
00350     @type  numpy: module
00351     """
00352     try:
00353       if self.action_goal is None:
00354         self.action_goal = monocam_settler.msg.ConfigActionGoal()
00355       if self.action_result is None:
00356         self.action_result = monocam_settler.msg.ConfigActionResult()
00357       if self.action_feedback is None:
00358         self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00359       end = 0
00360       _x = self
00361       start = end
00362       end += 12
00363       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00364       start = end
00365       end += 4
00366       (length,) = _struct_I.unpack(str[start:end])
00367       start = end
00368       end += length
00369       self.action_goal.header.frame_id = str[start:end]
00370       _x = self
00371       start = end
00372       end += 8
00373       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00374       start = end
00375       end += 4
00376       (length,) = _struct_I.unpack(str[start:end])
00377       start = end
00378       end += length
00379       self.action_goal.goal_id.id = str[start:end]
00380       _x = self
00381       start = end
00382       end += 33
00383       (_x.action_goal.goal.tolerance, _x.action_goal.goal.ignore_failures, _x.action_goal.goal.max_step.secs, _x.action_goal.goal.max_step.nsecs, _x.action_goal.goal.cache_size, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_dB2i4I.unpack(str[start:end])
00384       start = end
00385       end += 4
00386       (length,) = _struct_I.unpack(str[start:end])
00387       start = end
00388       end += length
00389       self.action_result.header.frame_id = str[start:end]
00390       _x = self
00391       start = end
00392       end += 8
00393       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00394       start = end
00395       end += 4
00396       (length,) = _struct_I.unpack(str[start:end])
00397       start = end
00398       end += length
00399       self.action_result.status.goal_id.id = str[start:end]
00400       start = end
00401       end += 1
00402       (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end]
00409       _x = self
00410       start = end
00411       end += 12
00412       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.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_feedback.header.frame_id = str[start:end]
00419       _x = self
00420       start = end
00421       end += 8
00422       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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_feedback.status.goal_id.id = str[start:end]
00429       start = end
00430       end += 1
00431       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00432       start = end
00433       end += 4
00434       (length,) = _struct_I.unpack(str[start:end])
00435       start = end
00436       end += length
00437       self.action_feedback.status.text = str[start:end]
00438       return self
00439     except struct.error, e:
00440       raise roslib.message.DeserializationError(e) 
00441 
00442 _struct_I = roslib.message.struct_I
00443 _struct_dB2i4I = struct.Struct("<dB2i4I")
00444 _struct_3I = struct.Struct("<3I")
00445 _struct_B = struct.Struct("<B")
00446 _struct_2I = struct.Struct("<2I")