00001 """autogenerated by genpy from monocam_settler/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 genpy
00008 import actionlib_msgs.msg
00009 import monocam_settler.msg
00010 import std_msgs.msg
00011
00012 class ConfigAction(genpy.Message):
00013 _md5sum = "4a593f02b0920fcc9e7be7341dddd78f"
00014 _type = "monocam_settler/ConfigAction"
00015 _has_header = False
00016 _full_text = """
00017 ConfigActionGoal action_goal
00018 ConfigActionResult action_result
00019 ConfigActionFeedback action_feedback
00020
00021 ================================================================================
00022 MSG: monocam_settler/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: monocam_settler/ConfigGoal
00061 float64 tolerance # Tolerance on each of the features
00062 uint8 ignore_failures # True if we discard
00063 duration max_step # The maximum timestep between two elements in an interval
00064 uint32 cache_size # The size of our cache when searching for an interval
00065
00066 ================================================================================
00067 MSG: monocam_settler/ConfigActionResult
00068
00069 Header header
00070 actionlib_msgs/GoalStatus status
00071 ConfigResult 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: monocam_settler/ConfigResult
00101
00102 ================================================================================
00103 MSG: monocam_settler/ConfigActionFeedback
00104
00105 Header header
00106 actionlib_msgs/GoalStatus status
00107 ConfigFeedback feedback
00108
00109 ================================================================================
00110 MSG: monocam_settler/ConfigFeedback
00111
00112
00113 """
00114 __slots__ = ['action_goal','action_result','action_feedback']
00115 _slot_types = ['monocam_settler/ConfigActionGoal','monocam_settler/ConfigActionResult','monocam_settler/ConfigActionFeedback']
00116
00117 def __init__(self, *args, **kwds):
00118 """
00119 Constructor. Any message fields that are implicitly/explicitly
00120 set to None will be assigned a default value. The recommend
00121 use is keyword arguments as this is more robust to future message
00122 changes. You cannot mix in-order arguments and keyword arguments.
00123
00124 The available fields are:
00125 action_goal,action_result,action_feedback
00126
00127 :param args: complete set of field values, in .msg order
00128 :param kwds: use keyword arguments corresponding to message field names
00129 to set specific fields.
00130 """
00131 if args or kwds:
00132 super(ConfigAction, self).__init__(*args, **kwds)
00133
00134 if self.action_goal is None:
00135 self.action_goal = monocam_settler.msg.ConfigActionGoal()
00136 if self.action_result is None:
00137 self.action_result = monocam_settler.msg.ConfigActionResult()
00138 if self.action_feedback is None:
00139 self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00140 else:
00141 self.action_goal = monocam_settler.msg.ConfigActionGoal()
00142 self.action_result = monocam_settler.msg.ConfigActionResult()
00143 self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00144
00145 def _get_types(self):
00146 """
00147 internal API method
00148 """
00149 return self._slot_types
00150
00151 def serialize(self, buff):
00152 """
00153 serialize message into buffer
00154 :param buff: buffer, ``StringIO``
00155 """
00156 try:
00157 _x = self
00158 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00159 _x = self.action_goal.header.frame_id
00160 length = len(_x)
00161 if python3 or type(_x) == unicode:
00162 _x = _x.encode('utf-8')
00163 length = len(_x)
00164 buff.write(struct.pack('<I%ss'%length, length, _x))
00165 _x = self
00166 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00167 _x = self.action_goal.goal_id.id
00168 length = len(_x)
00169 if python3 or type(_x) == unicode:
00170 _x = _x.encode('utf-8')
00171 length = len(_x)
00172 buff.write(struct.pack('<I%ss'%length, length, _x))
00173 _x = self
00174 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))
00175 _x = self.action_result.header.frame_id
00176 length = len(_x)
00177 if python3 or type(_x) == unicode:
00178 _x = _x.encode('utf-8')
00179 length = len(_x)
00180 buff.write(struct.pack('<I%ss'%length, length, _x))
00181 _x = self
00182 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00183 _x = self.action_result.status.goal_id.id
00184 length = len(_x)
00185 if python3 or type(_x) == unicode:
00186 _x = _x.encode('utf-8')
00187 length = len(_x)
00188 buff.write(struct.pack('<I%ss'%length, length, _x))
00189 buff.write(_struct_B.pack(self.action_result.status.status))
00190 _x = self.action_result.status.text
00191 length = len(_x)
00192 if python3 or type(_x) == unicode:
00193 _x = _x.encode('utf-8')
00194 length = len(_x)
00195 buff.write(struct.pack('<I%ss'%length, length, _x))
00196 _x = self
00197 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00198 _x = self.action_feedback.header.frame_id
00199 length = len(_x)
00200 if python3 or type(_x) == unicode:
00201 _x = _x.encode('utf-8')
00202 length = len(_x)
00203 buff.write(struct.pack('<I%ss'%length, length, _x))
00204 _x = self
00205 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00206 _x = self.action_feedback.status.goal_id.id
00207 length = len(_x)
00208 if python3 or type(_x) == unicode:
00209 _x = _x.encode('utf-8')
00210 length = len(_x)
00211 buff.write(struct.pack('<I%ss'%length, length, _x))
00212 buff.write(_struct_B.pack(self.action_feedback.status.status))
00213 _x = self.action_feedback.status.text
00214 length = len(_x)
00215 if python3 or type(_x) == unicode:
00216 _x = _x.encode('utf-8')
00217 length = len(_x)
00218 buff.write(struct.pack('<I%ss'%length, length, _x))
00219 except struct.error as se: self._check_types(se)
00220 except TypeError as te: self._check_types(te)
00221
00222 def deserialize(self, str):
00223 """
00224 unpack serialized message in str into this message instance
00225 :param str: byte array of serialized message, ``str``
00226 """
00227 try:
00228 if self.action_goal is None:
00229 self.action_goal = monocam_settler.msg.ConfigActionGoal()
00230 if self.action_result is None:
00231 self.action_result = monocam_settler.msg.ConfigActionResult()
00232 if self.action_feedback is None:
00233 self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00234 end = 0
00235 _x = self
00236 start = end
00237 end += 12
00238 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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 if python3:
00245 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00246 else:
00247 self.action_goal.header.frame_id = str[start:end]
00248 _x = self
00249 start = end
00250 end += 8
00251 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00252 start = end
00253 end += 4
00254 (length,) = _struct_I.unpack(str[start:end])
00255 start = end
00256 end += length
00257 if python3:
00258 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00259 else:
00260 self.action_goal.goal_id.id = str[start:end]
00261 _x = self
00262 start = end
00263 end += 33
00264 (_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])
00265 start = end
00266 end += 4
00267 (length,) = _struct_I.unpack(str[start:end])
00268 start = end
00269 end += length
00270 if python3:
00271 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00272 else:
00273 self.action_result.header.frame_id = str[start:end]
00274 _x = self
00275 start = end
00276 end += 8
00277 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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 if python3:
00284 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00285 else:
00286 self.action_result.status.goal_id.id = str[start:end]
00287 start = end
00288 end += 1
00289 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00290 start = end
00291 end += 4
00292 (length,) = _struct_I.unpack(str[start:end])
00293 start = end
00294 end += length
00295 if python3:
00296 self.action_result.status.text = str[start:end].decode('utf-8')
00297 else:
00298 self.action_result.status.text = str[start:end]
00299 _x = self
00300 start = end
00301 end += 12
00302 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00303 start = end
00304 end += 4
00305 (length,) = _struct_I.unpack(str[start:end])
00306 start = end
00307 end += length
00308 if python3:
00309 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00310 else:
00311 self.action_feedback.header.frame_id = str[start:end]
00312 _x = self
00313 start = end
00314 end += 8
00315 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00316 start = end
00317 end += 4
00318 (length,) = _struct_I.unpack(str[start:end])
00319 start = end
00320 end += length
00321 if python3:
00322 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00323 else:
00324 self.action_feedback.status.goal_id.id = str[start:end]
00325 start = end
00326 end += 1
00327 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00328 start = end
00329 end += 4
00330 (length,) = _struct_I.unpack(str[start:end])
00331 start = end
00332 end += length
00333 if python3:
00334 self.action_feedback.status.text = str[start:end].decode('utf-8')
00335 else:
00336 self.action_feedback.status.text = str[start:end]
00337 return self
00338 except struct.error as e:
00339 raise genpy.DeserializationError(e)
00340
00341
00342 def serialize_numpy(self, buff, numpy):
00343 """
00344 serialize message with numpy array types into buffer
00345 :param buff: buffer, ``StringIO``
00346 :param numpy: numpy python module
00347 """
00348 try:
00349 _x = self
00350 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00351 _x = self.action_goal.header.frame_id
00352 length = len(_x)
00353 if python3 or type(_x) == unicode:
00354 _x = _x.encode('utf-8')
00355 length = len(_x)
00356 buff.write(struct.pack('<I%ss'%length, length, _x))
00357 _x = self
00358 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00359 _x = self.action_goal.goal_id.id
00360 length = len(_x)
00361 if python3 or type(_x) == unicode:
00362 _x = _x.encode('utf-8')
00363 length = len(_x)
00364 buff.write(struct.pack('<I%ss'%length, length, _x))
00365 _x = self
00366 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))
00367 _x = self.action_result.header.frame_id
00368 length = len(_x)
00369 if python3 or type(_x) == unicode:
00370 _x = _x.encode('utf-8')
00371 length = len(_x)
00372 buff.write(struct.pack('<I%ss'%length, length, _x))
00373 _x = self
00374 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00375 _x = self.action_result.status.goal_id.id
00376 length = len(_x)
00377 if python3 or type(_x) == unicode:
00378 _x = _x.encode('utf-8')
00379 length = len(_x)
00380 buff.write(struct.pack('<I%ss'%length, length, _x))
00381 buff.write(_struct_B.pack(self.action_result.status.status))
00382 _x = self.action_result.status.text
00383 length = len(_x)
00384 if python3 or type(_x) == unicode:
00385 _x = _x.encode('utf-8')
00386 length = len(_x)
00387 buff.write(struct.pack('<I%ss'%length, length, _x))
00388 _x = self
00389 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00390 _x = self.action_feedback.header.frame_id
00391 length = len(_x)
00392 if python3 or type(_x) == unicode:
00393 _x = _x.encode('utf-8')
00394 length = len(_x)
00395 buff.write(struct.pack('<I%ss'%length, length, _x))
00396 _x = self
00397 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00398 _x = self.action_feedback.status.goal_id.id
00399 length = len(_x)
00400 if python3 or type(_x) == unicode:
00401 _x = _x.encode('utf-8')
00402 length = len(_x)
00403 buff.write(struct.pack('<I%ss'%length, length, _x))
00404 buff.write(_struct_B.pack(self.action_feedback.status.status))
00405 _x = self.action_feedback.status.text
00406 length = len(_x)
00407 if python3 or type(_x) == unicode:
00408 _x = _x.encode('utf-8')
00409 length = len(_x)
00410 buff.write(struct.pack('<I%ss'%length, length, _x))
00411 except struct.error as se: self._check_types(se)
00412 except TypeError as te: self._check_types(te)
00413
00414 def deserialize_numpy(self, str, numpy):
00415 """
00416 unpack serialized message in str into this message instance using numpy for array types
00417 :param str: byte array of serialized message, ``str``
00418 :param numpy: numpy python module
00419 """
00420 try:
00421 if self.action_goal is None:
00422 self.action_goal = monocam_settler.msg.ConfigActionGoal()
00423 if self.action_result is None:
00424 self.action_result = monocam_settler.msg.ConfigActionResult()
00425 if self.action_feedback is None:
00426 self.action_feedback = monocam_settler.msg.ConfigActionFeedback()
00427 end = 0
00428 _x = self
00429 start = end
00430 end += 12
00431 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.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 if python3:
00438 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00439 else:
00440 self.action_goal.header.frame_id = str[start:end]
00441 _x = self
00442 start = end
00443 end += 8
00444 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00445 start = end
00446 end += 4
00447 (length,) = _struct_I.unpack(str[start:end])
00448 start = end
00449 end += length
00450 if python3:
00451 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00452 else:
00453 self.action_goal.goal_id.id = str[start:end]
00454 _x = self
00455 start = end
00456 end += 33
00457 (_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])
00458 start = end
00459 end += 4
00460 (length,) = _struct_I.unpack(str[start:end])
00461 start = end
00462 end += length
00463 if python3:
00464 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00465 else:
00466 self.action_result.header.frame_id = str[start:end]
00467 _x = self
00468 start = end
00469 end += 8
00470 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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 if python3:
00477 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00478 else:
00479 self.action_result.status.goal_id.id = str[start:end]
00480 start = end
00481 end += 1
00482 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00483 start = end
00484 end += 4
00485 (length,) = _struct_I.unpack(str[start:end])
00486 start = end
00487 end += length
00488 if python3:
00489 self.action_result.status.text = str[start:end].decode('utf-8')
00490 else:
00491 self.action_result.status.text = str[start:end]
00492 _x = self
00493 start = end
00494 end += 12
00495 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00496 start = end
00497 end += 4
00498 (length,) = _struct_I.unpack(str[start:end])
00499 start = end
00500 end += length
00501 if python3:
00502 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00503 else:
00504 self.action_feedback.header.frame_id = str[start:end]
00505 _x = self
00506 start = end
00507 end += 8
00508 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00509 start = end
00510 end += 4
00511 (length,) = _struct_I.unpack(str[start:end])
00512 start = end
00513 end += length
00514 if python3:
00515 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00516 else:
00517 self.action_feedback.status.goal_id.id = str[start:end]
00518 start = end
00519 end += 1
00520 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00521 start = end
00522 end += 4
00523 (length,) = _struct_I.unpack(str[start:end])
00524 start = end
00525 end += length
00526 if python3:
00527 self.action_feedback.status.text = str[start:end].decode('utf-8')
00528 else:
00529 self.action_feedback.status.text = str[start:end]
00530 return self
00531 except struct.error as e:
00532 raise genpy.DeserializationError(e)
00533
00534 _struct_I = genpy.struct_I
00535 _struct_dB2i4I = struct.Struct("<dB2i4I")
00536 _struct_3I = struct.Struct("<3I")
00537 _struct_B = struct.Struct("<B")
00538 _struct_2I = struct.Struct("<2I")