00001 """autogenerated by genmsg_py from ConfigActionResult.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import image_cb_detector.msg
00006 import roslib.rostime
00007 import actionlib_msgs.msg
00008 import std_msgs.msg
00009
00010 class ConfigActionResult(roslib.message.Message):
00011 _md5sum = "1eb06eeff08fa7ea874431638cb52332"
00012 _type = "image_cb_detector/ConfigActionResult"
00013 _has_header = True
00014 _full_text = """
00015 Header header
00016 actionlib_msgs/GoalStatus status
00017 ConfigResult result
00018
00019 ================================================================================
00020 MSG: std_msgs/Header
00021 # Standard metadata for higher-level stamped data types.
00022 # This is generally used to communicate timestamped data
00023 # in a particular coordinate frame.
00024 #
00025 # sequence ID: consecutively increasing ID
00026 uint32 seq
00027 #Two-integer timestamp that is expressed as:
00028 # * stamp.secs: seconds (stamp_secs) since epoch
00029 # * stamp.nsecs: nanoseconds since stamp_secs
00030 # time-handling sugar is provided by the client library
00031 time stamp
00032 #Frame this data is associated with
00033 # 0: no frame
00034 # 1: global frame
00035 string frame_id
00036
00037 ================================================================================
00038 MSG: actionlib_msgs/GoalStatus
00039 GoalID goal_id
00040 uint8 status
00041 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00042 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00043 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00044 # and has since completed its execution (Terminal State)
00045 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00046 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00047 # to some failure (Terminal State)
00048 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00049 # because the goal was unattainable or invalid (Terminal State)
00050 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00051 # and has not yet completed execution
00052 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00053 # but the action server has not yet confirmed that the goal is canceled
00054 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00055 # and was successfully cancelled (Terminal State)
00056 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00057 # sent over the wire by an action server
00058
00059 #Allow for the user to associate a string with GoalStatus for debugging
00060 string text
00061
00062
00063 ================================================================================
00064 MSG: actionlib_msgs/GoalID
00065 # The stamp should store the time at which this goal was requested.
00066 # It is used by an action server when it tries to preempt all
00067 # goals that were requested before a certain time
00068 time stamp
00069
00070 # The id provides a way to associate feedback and
00071 # result message with specific goal requests. The id
00072 # specified must be unique.
00073 string id
00074
00075
00076 ================================================================================
00077 MSG: image_cb_detector/ConfigResult
00078
00079 """
00080 __slots__ = ['header','status','result']
00081 _slot_types = ['Header','actionlib_msgs/GoalStatus','image_cb_detector/ConfigResult']
00082
00083 def __init__(self, *args, **kwds):
00084 """
00085 Constructor. Any message fields that are implicitly/explicitly
00086 set to None will be assigned a default value. The recommend
00087 use is keyword arguments as this is more robust to future message
00088 changes. You cannot mix in-order arguments and keyword arguments.
00089
00090 The available fields are:
00091 header,status,result
00092
00093 @param args: complete set of field values, in .msg order
00094 @param kwds: use keyword arguments corresponding to message field names
00095 to set specific fields.
00096 """
00097 if args or kwds:
00098 super(ConfigActionResult, self).__init__(*args, **kwds)
00099
00100 if self.header is None:
00101 self.header = std_msgs.msg._Header.Header()
00102 if self.status is None:
00103 self.status = actionlib_msgs.msg.GoalStatus()
00104 if self.result is None:
00105 self.result = image_cb_detector.msg.ConfigResult()
00106 else:
00107 self.header = std_msgs.msg._Header.Header()
00108 self.status = actionlib_msgs.msg.GoalStatus()
00109 self.result = image_cb_detector.msg.ConfigResult()
00110
00111 def _get_types(self):
00112 """
00113 internal API method
00114 """
00115 return self._slot_types
00116
00117 def serialize(self, buff):
00118 """
00119 serialize message into buffer
00120 @param buff: buffer
00121 @type buff: StringIO
00122 """
00123 try:
00124 _x = self
00125 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00126 _x = self.header.frame_id
00127 length = len(_x)
00128 buff.write(struct.pack('<I%ss'%length, length, _x))
00129 _x = self
00130 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00131 _x = self.status.goal_id.id
00132 length = len(_x)
00133 buff.write(struct.pack('<I%ss'%length, length, _x))
00134 buff.write(_struct_B.pack(self.status.status))
00135 _x = self.status.text
00136 length = len(_x)
00137 buff.write(struct.pack('<I%ss'%length, length, _x))
00138 except struct.error, se: self._check_types(se)
00139 except TypeError, te: self._check_types(te)
00140
00141 def deserialize(self, str):
00142 """
00143 unpack serialized message in str into this message instance
00144 @param str: byte array of serialized message
00145 @type str: str
00146 """
00147 try:
00148 if self.header is None:
00149 self.header = std_msgs.msg._Header.Header()
00150 if self.status is None:
00151 self.status = actionlib_msgs.msg.GoalStatus()
00152 if self.result is None:
00153 self.result = image_cb_detector.msg.ConfigResult()
00154 end = 0
00155 _x = self
00156 start = end
00157 end += 12
00158 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00159 start = end
00160 end += 4
00161 (length,) = _struct_I.unpack(str[start:end])
00162 start = end
00163 end += length
00164 self.header.frame_id = str[start:end]
00165 _x = self
00166 start = end
00167 end += 8
00168 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00169 start = end
00170 end += 4
00171 (length,) = _struct_I.unpack(str[start:end])
00172 start = end
00173 end += length
00174 self.status.goal_id.id = str[start:end]
00175 start = end
00176 end += 1
00177 (self.status.status,) = _struct_B.unpack(str[start:end])
00178 start = end
00179 end += 4
00180 (length,) = _struct_I.unpack(str[start:end])
00181 start = end
00182 end += length
00183 self.status.text = str[start:end]
00184 return self
00185 except struct.error, e:
00186 raise roslib.message.DeserializationError(e)
00187
00188
00189 def serialize_numpy(self, buff, numpy):
00190 """
00191 serialize message with numpy array types into buffer
00192 @param buff: buffer
00193 @type buff: StringIO
00194 @param numpy: numpy python module
00195 @type numpy module
00196 """
00197 try:
00198 _x = self
00199 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00200 _x = self.header.frame_id
00201 length = len(_x)
00202 buff.write(struct.pack('<I%ss'%length, length, _x))
00203 _x = self
00204 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00205 _x = self.status.goal_id.id
00206 length = len(_x)
00207 buff.write(struct.pack('<I%ss'%length, length, _x))
00208 buff.write(_struct_B.pack(self.status.status))
00209 _x = self.status.text
00210 length = len(_x)
00211 buff.write(struct.pack('<I%ss'%length, length, _x))
00212 except struct.error, se: self._check_types(se)
00213 except TypeError, te: self._check_types(te)
00214
00215 def deserialize_numpy(self, str, numpy):
00216 """
00217 unpack serialized message in str into this message instance using numpy for array types
00218 @param str: byte array of serialized message
00219 @type str: str
00220 @param numpy: numpy python module
00221 @type numpy: module
00222 """
00223 try:
00224 if self.header is None:
00225 self.header = std_msgs.msg._Header.Header()
00226 if self.status is None:
00227 self.status = actionlib_msgs.msg.GoalStatus()
00228 if self.result is None:
00229 self.result = image_cb_detector.msg.ConfigResult()
00230 end = 0
00231 _x = self
00232 start = end
00233 end += 12
00234 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end]
00241 _x = self
00242 start = end
00243 end += 8
00244 (_x.status.goal_id.stamp.secs, _x.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.status.goal_id.id = str[start:end]
00251 start = end
00252 end += 1
00253 (self.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.status.text = str[start:end]
00260 return self
00261 except struct.error, e:
00262 raise roslib.message.DeserializationError(e)
00263
00264 _struct_I = roslib.message.struct_I
00265 _struct_3I = struct.Struct("<3I")
00266 _struct_B = struct.Struct("<B")
00267 _struct_2I = struct.Struct("<2I")