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 image_cb_detector.msg
00007 import actionlib_msgs.msg
00008 import std_msgs.msg
00009
00010 class ConfigAction(roslib.message.Message):
00011 _md5sum = "1ddd846910edb1716470805de600567f"
00012 _type = "image_cb_detector/ConfigAction"
00013 _has_header = False
00014 _full_text = """
00015 ConfigActionGoal action_goal
00016 ConfigActionResult action_result
00017 ConfigActionFeedback action_feedback
00018
00019 ================================================================================
00020 MSG: image_cb_detector/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: image_cb_detector/ConfigGoal
00059 uint32 num_x # Number of checkerboard corners in the X direction
00060 uint32 num_y # Number of corners in the Y direction
00061 float32 spacing_x # Spacing between corners in the X direction (meters)
00062 float32 spacing_y # Spacing between corners in the Y direction (meters)
00063
00064 # Specify how many times we want to upsample the image.
00065 # This is often useful for detecting small checkerboards far away
00066 float32 width_scaling
00067 float32 height_scaling
00068
00069 # Configure openCV's subpixel corner detector
00070 uint32 subpixel_window
00071 int32 subpixel_zero_zone
00072
00073
00074 ================================================================================
00075 MSG: image_cb_detector/ConfigActionResult
00076
00077 Header header
00078 actionlib_msgs/GoalStatus status
00079 ConfigResult result
00080
00081 ================================================================================
00082 MSG: actionlib_msgs/GoalStatus
00083 GoalID goal_id
00084 uint8 status
00085 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00086 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00087 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00088 # and has since completed its execution (Terminal State)
00089 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00090 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00091 # to some failure (Terminal State)
00092 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00093 # because the goal was unattainable or invalid (Terminal State)
00094 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00095 # and has not yet completed execution
00096 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00097 # but the action server has not yet confirmed that the goal is canceled
00098 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00099 # and was successfully cancelled (Terminal State)
00100 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00101 # sent over the wire by an action server
00102
00103 #Allow for the user to associate a string with GoalStatus for debugging
00104 string text
00105
00106
00107 ================================================================================
00108 MSG: image_cb_detector/ConfigResult
00109
00110 ================================================================================
00111 MSG: image_cb_detector/ConfigActionFeedback
00112
00113 Header header
00114 actionlib_msgs/GoalStatus status
00115 ConfigFeedback feedback
00116
00117 ================================================================================
00118 MSG: image_cb_detector/ConfigFeedback
00119
00120 """
00121 __slots__ = ['action_goal','action_result','action_feedback']
00122 _slot_types = ['image_cb_detector/ConfigActionGoal','image_cb_detector/ConfigActionResult','image_cb_detector/ConfigActionFeedback']
00123
00124 def __init__(self, *args, **kwds):
00125 """
00126 Constructor. Any message fields that are implicitly/explicitly
00127 set to None will be assigned a default value. The recommend
00128 use is keyword arguments as this is more robust to future message
00129 changes. You cannot mix in-order arguments and keyword arguments.
00130
00131 The available fields are:
00132 action_goal,action_result,action_feedback
00133
00134 @param args: complete set of field values, in .msg order
00135 @param kwds: use keyword arguments corresponding to message field names
00136 to set specific fields.
00137 """
00138 if args or kwds:
00139 super(ConfigAction, self).__init__(*args, **kwds)
00140
00141 if self.action_goal is None:
00142 self.action_goal = image_cb_detector.msg.ConfigActionGoal()
00143 if self.action_result is None:
00144 self.action_result = image_cb_detector.msg.ConfigActionResult()
00145 if self.action_feedback is None:
00146 self.action_feedback = image_cb_detector.msg.ConfigActionFeedback()
00147 else:
00148 self.action_goal = image_cb_detector.msg.ConfigActionGoal()
00149 self.action_result = image_cb_detector.msg.ConfigActionResult()
00150 self.action_feedback = image_cb_detector.msg.ConfigActionFeedback()
00151
00152 def _get_types(self):
00153 """
00154 internal API method
00155 """
00156 return self._slot_types
00157
00158 def serialize(self, buff):
00159 """
00160 serialize message into buffer
00161 @param buff: buffer
00162 @type buff: StringIO
00163 """
00164 try:
00165 _x = self
00166 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00167 _x = self.action_goal.header.frame_id
00168 length = len(_x)
00169 buff.write(struct.pack('<I%ss'%length, length, _x))
00170 _x = self
00171 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00172 _x = self.action_goal.goal_id.id
00173 length = len(_x)
00174 buff.write(struct.pack('<I%ss'%length, length, _x))
00175 _x = self
00176 buff.write(_struct_2I4fIi3I.pack(_x.action_goal.goal.num_x, _x.action_goal.goal.num_y, _x.action_goal.goal.spacing_x, _x.action_goal.goal.spacing_y, _x.action_goal.goal.width_scaling, _x.action_goal.goal.height_scaling, _x.action_goal.goal.subpixel_window, _x.action_goal.goal.subpixel_zero_zone, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00177 _x = self.action_result.header.frame_id
00178 length = len(_x)
00179 buff.write(struct.pack('<I%ss'%length, length, _x))
00180 _x = self
00181 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00182 _x = self.action_result.status.goal_id.id
00183 length = len(_x)
00184 buff.write(struct.pack('<I%ss'%length, length, _x))
00185 buff.write(_struct_B.pack(self.action_result.status.status))
00186 _x = self.action_result.status.text
00187 length = len(_x)
00188 buff.write(struct.pack('<I%ss'%length, length, _x))
00189 _x = self
00190 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00191 _x = self.action_feedback.header.frame_id
00192 length = len(_x)
00193 buff.write(struct.pack('<I%ss'%length, length, _x))
00194 _x = self
00195 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00196 _x = self.action_feedback.status.goal_id.id
00197 length = len(_x)
00198 buff.write(struct.pack('<I%ss'%length, length, _x))
00199 buff.write(_struct_B.pack(self.action_feedback.status.status))
00200 _x = self.action_feedback.status.text
00201 length = len(_x)
00202 buff.write(struct.pack('<I%ss'%length, length, _x))
00203 except struct.error, se: self._check_types(se)
00204 except TypeError, te: self._check_types(te)
00205
00206 def deserialize(self, str):
00207 """
00208 unpack serialized message in str into this message instance
00209 @param str: byte array of serialized message
00210 @type str: str
00211 """
00212 try:
00213 if self.action_goal is None:
00214 self.action_goal = image_cb_detector.msg.ConfigActionGoal()
00215 if self.action_result is None:
00216 self.action_result = image_cb_detector.msg.ConfigActionResult()
00217 if self.action_feedback is None:
00218 self.action_feedback = image_cb_detector.msg.ConfigActionFeedback()
00219 end = 0
00220 _x = self
00221 start = end
00222 end += 12
00223 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00224 start = end
00225 end += 4
00226 (length,) = _struct_I.unpack(str[start:end])
00227 start = end
00228 end += length
00229 self.action_goal.header.frame_id = str[start:end]
00230 _x = self
00231 start = end
00232 end += 8
00233 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00234 start = end
00235 end += 4
00236 (length,) = _struct_I.unpack(str[start:end])
00237 start = end
00238 end += length
00239 self.action_goal.goal_id.id = str[start:end]
00240 _x = self
00241 start = end
00242 end += 44
00243 (_x.action_goal.goal.num_x, _x.action_goal.goal.num_y, _x.action_goal.goal.spacing_x, _x.action_goal.goal.spacing_y, _x.action_goal.goal.width_scaling, _x.action_goal.goal.height_scaling, _x.action_goal.goal.subpixel_window, _x.action_goal.goal.subpixel_zero_zone, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2I4fIi3I.unpack(str[start:end])
00244 start = end
00245 end += 4
00246 (length,) = _struct_I.unpack(str[start:end])
00247 start = end
00248 end += length
00249 self.action_result.header.frame_id = str[start:end]
00250 _x = self
00251 start = end
00252 end += 8
00253 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end]
00260 start = end
00261 end += 1
00262 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00263 start = end
00264 end += 4
00265 (length,) = _struct_I.unpack(str[start:end])
00266 start = end
00267 end += length
00268 self.action_result.status.text = str[start:end]
00269 _x = self
00270 start = end
00271 end += 12
00272 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00273 start = end
00274 end += 4
00275 (length,) = _struct_I.unpack(str[start:end])
00276 start = end
00277 end += length
00278 self.action_feedback.header.frame_id = str[start:end]
00279 _x = self
00280 start = end
00281 end += 8
00282 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end]
00289 start = end
00290 end += 1
00291 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00292 start = end
00293 end += 4
00294 (length,) = _struct_I.unpack(str[start:end])
00295 start = end
00296 end += length
00297 self.action_feedback.status.text = str[start:end]
00298 return self
00299 except struct.error, e:
00300 raise roslib.message.DeserializationError(e)
00301
00302
00303 def serialize_numpy(self, buff, numpy):
00304 """
00305 serialize message with numpy array types into buffer
00306 @param buff: buffer
00307 @type buff: StringIO
00308 @param numpy: numpy python module
00309 @type numpy module
00310 """
00311 try:
00312 _x = self
00313 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00314 _x = self.action_goal.header.frame_id
00315 length = len(_x)
00316 buff.write(struct.pack('<I%ss'%length, length, _x))
00317 _x = self
00318 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00319 _x = self.action_goal.goal_id.id
00320 length = len(_x)
00321 buff.write(struct.pack('<I%ss'%length, length, _x))
00322 _x = self
00323 buff.write(_struct_2I4fIi3I.pack(_x.action_goal.goal.num_x, _x.action_goal.goal.num_y, _x.action_goal.goal.spacing_x, _x.action_goal.goal.spacing_y, _x.action_goal.goal.width_scaling, _x.action_goal.goal.height_scaling, _x.action_goal.goal.subpixel_window, _x.action_goal.goal.subpixel_zero_zone, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00324 _x = self.action_result.header.frame_id
00325 length = len(_x)
00326 buff.write(struct.pack('<I%ss'%length, length, _x))
00327 _x = self
00328 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00329 _x = self.action_result.status.goal_id.id
00330 length = len(_x)
00331 buff.write(struct.pack('<I%ss'%length, length, _x))
00332 buff.write(_struct_B.pack(self.action_result.status.status))
00333 _x = self.action_result.status.text
00334 length = len(_x)
00335 buff.write(struct.pack('<I%ss'%length, length, _x))
00336 _x = self
00337 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00338 _x = self.action_feedback.header.frame_id
00339 length = len(_x)
00340 buff.write(struct.pack('<I%ss'%length, length, _x))
00341 _x = self
00342 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00343 _x = self.action_feedback.status.goal_id.id
00344 length = len(_x)
00345 buff.write(struct.pack('<I%ss'%length, length, _x))
00346 buff.write(_struct_B.pack(self.action_feedback.status.status))
00347 _x = self.action_feedback.status.text
00348 length = len(_x)
00349 buff.write(struct.pack('<I%ss'%length, length, _x))
00350 except struct.error, se: self._check_types(se)
00351 except TypeError, te: self._check_types(te)
00352
00353 def deserialize_numpy(self, str, numpy):
00354 """
00355 unpack serialized message in str into this message instance using numpy for array types
00356 @param str: byte array of serialized message
00357 @type str: str
00358 @param numpy: numpy python module
00359 @type numpy: module
00360 """
00361 try:
00362 if self.action_goal is None:
00363 self.action_goal = image_cb_detector.msg.ConfigActionGoal()
00364 if self.action_result is None:
00365 self.action_result = image_cb_detector.msg.ConfigActionResult()
00366 if self.action_feedback is None:
00367 self.action_feedback = image_cb_detector.msg.ConfigActionFeedback()
00368 end = 0
00369 _x = self
00370 start = end
00371 end += 12
00372 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00373 start = end
00374 end += 4
00375 (length,) = _struct_I.unpack(str[start:end])
00376 start = end
00377 end += length
00378 self.action_goal.header.frame_id = str[start:end]
00379 _x = self
00380 start = end
00381 end += 8
00382 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00383 start = end
00384 end += 4
00385 (length,) = _struct_I.unpack(str[start:end])
00386 start = end
00387 end += length
00388 self.action_goal.goal_id.id = str[start:end]
00389 _x = self
00390 start = end
00391 end += 44
00392 (_x.action_goal.goal.num_x, _x.action_goal.goal.num_y, _x.action_goal.goal.spacing_x, _x.action_goal.goal.spacing_y, _x.action_goal.goal.width_scaling, _x.action_goal.goal.height_scaling, _x.action_goal.goal.subpixel_window, _x.action_goal.goal.subpixel_zero_zone, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2I4fIi3I.unpack(str[start:end])
00393 start = end
00394 end += 4
00395 (length,) = _struct_I.unpack(str[start:end])
00396 start = end
00397 end += length
00398 self.action_result.header.frame_id = str[start:end]
00399 _x = self
00400 start = end
00401 end += 8
00402 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end]
00409 start = end
00410 end += 1
00411 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00412 start = end
00413 end += 4
00414 (length,) = _struct_I.unpack(str[start:end])
00415 start = end
00416 end += length
00417 self.action_result.status.text = str[start:end]
00418 _x = self
00419 start = end
00420 end += 12
00421 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00422 start = end
00423 end += 4
00424 (length,) = _struct_I.unpack(str[start:end])
00425 start = end
00426 end += length
00427 self.action_feedback.header.frame_id = str[start:end]
00428 _x = self
00429 start = end
00430 end += 8
00431 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end]
00438 start = end
00439 end += 1
00440 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00441 start = end
00442 end += 4
00443 (length,) = _struct_I.unpack(str[start:end])
00444 start = end
00445 end += length
00446 self.action_feedback.status.text = str[start:end]
00447 return self
00448 except struct.error, e:
00449 raise roslib.message.DeserializationError(e)
00450
00451 _struct_I = roslib.message.struct_I
00452 _struct_3I = struct.Struct("<3I")
00453 _struct_B = struct.Struct("<B")
00454 _struct_2I = struct.Struct("<2I")
00455 _struct_2I4fIi3I = struct.Struct("<2I4fIi3I")