00001 """autogenerated by genmsg_py from CheckPathAction.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import geometry_msgs.msg
00006 import std_msgs.msg
00007 import roslib.rostime
00008 import actionlib_msgs.msg
00009 import door_msgs.msg
00010
00011 class CheckPathAction(roslib.message.Message):
00012 _md5sum = "4c0af2e4ea22e7e89425f7fd23ead525"
00013 _type = "door_msgs/CheckPathAction"
00014 _has_header = False
00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00016
00017 CheckPathActionGoal action_goal
00018 CheckPathActionResult action_result
00019 CheckPathActionFeedback action_feedback
00020
00021 ================================================================================
00022 MSG: door_msgs/CheckPathActionGoal
00023 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00024
00025 Header header
00026 actionlib_msgs/GoalID goal_id
00027 CheckPathGoal goal
00028
00029 ================================================================================
00030 MSG: std_msgs/Header
00031 # Standard metadata for higher-level stamped data types.
00032 # This is generally used to communicate timestamped data
00033 # in a particular coordinate frame.
00034 #
00035 # sequence ID: consecutively increasing ID
00036 uint32 seq
00037 #Two-integer timestamp that is expressed as:
00038 # * stamp.secs: seconds (stamp_secs) since epoch
00039 # * stamp.nsecs: nanoseconds since stamp_secs
00040 # time-handling sugar is provided by the client library
00041 time stamp
00042 #Frame this data is associated with
00043 # 0: no frame
00044 # 1: global frame
00045 string frame_id
00046
00047 ================================================================================
00048 MSG: actionlib_msgs/GoalID
00049 # The stamp should store the time at which this goal was requested.
00050 # It is used by an action server when it tries to preempt all
00051 # goals that were requested before a certain time
00052 time stamp
00053
00054 # The id provides a way to associate feedback and
00055 # result message with specific goal requests. The id
00056 # specified must be unique.
00057 string id
00058
00059
00060 ================================================================================
00061 MSG: door_msgs/CheckPathGoal
00062 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00063 geometry_msgs/PoseStamped goal_pose
00064
00065 ================================================================================
00066 MSG: geometry_msgs/PoseStamped
00067 # A Pose with reference coordinate frame and timestamp
00068 Header header
00069 Pose pose
00070
00071 ================================================================================
00072 MSG: geometry_msgs/Pose
00073 # A representation of pose in free space, composed of postion and orientation.
00074 Point position
00075 Quaternion orientation
00076
00077 ================================================================================
00078 MSG: geometry_msgs/Point
00079 # This contains the position of a point in free space
00080 float64 x
00081 float64 y
00082 float64 z
00083
00084 ================================================================================
00085 MSG: geometry_msgs/Quaternion
00086 # This represents an orientation in free space in quaternion form.
00087
00088 float64 x
00089 float64 y
00090 float64 z
00091 float64 w
00092
00093 ================================================================================
00094 MSG: door_msgs/CheckPathActionResult
00095 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00096
00097 Header header
00098 actionlib_msgs/GoalStatus status
00099 CheckPathResult result
00100
00101 ================================================================================
00102 MSG: actionlib_msgs/GoalStatus
00103 GoalID goal_id
00104 uint8 status
00105 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00106 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00107 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00108 # and has since completed its execution (Terminal State)
00109 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00110 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00111 # to some failure (Terminal State)
00112 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00113 # because the goal was unattainable or invalid (Terminal State)
00114 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00115 # and has not yet completed execution
00116 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00117 # but the action server has not yet confirmed that the goal is canceled
00118 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00119 # and was successfully cancelled (Terminal State)
00120 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00121 # sent over the wire by an action server
00122
00123 #Allow for the user to associate a string with GoalStatus for debugging
00124 string text
00125
00126
00127 ================================================================================
00128 MSG: door_msgs/CheckPathResult
00129 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00130 bool path_found
00131
00132 ================================================================================
00133 MSG: door_msgs/CheckPathActionFeedback
00134 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00135
00136 Header header
00137 actionlib_msgs/GoalStatus status
00138 CheckPathFeedback feedback
00139
00140 ================================================================================
00141 MSG: door_msgs/CheckPathFeedback
00142 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00143
00144 """
00145 __slots__ = ['action_goal','action_result','action_feedback']
00146 _slot_types = ['door_msgs/CheckPathActionGoal','door_msgs/CheckPathActionResult','door_msgs/CheckPathActionFeedback']
00147
00148 def __init__(self, *args, **kwds):
00149 """
00150 Constructor. Any message fields that are implicitly/explicitly
00151 set to None will be assigned a default value. The recommend
00152 use is keyword arguments as this is more robust to future message
00153 changes. You cannot mix in-order arguments and keyword arguments.
00154
00155 The available fields are:
00156 action_goal,action_result,action_feedback
00157
00158 @param args: complete set of field values, in .msg order
00159 @param kwds: use keyword arguments corresponding to message field names
00160 to set specific fields.
00161 """
00162 if args or kwds:
00163 super(CheckPathAction, self).__init__(*args, **kwds)
00164
00165 if self.action_goal is None:
00166 self.action_goal = door_msgs.msg.CheckPathActionGoal()
00167 if self.action_result is None:
00168 self.action_result = door_msgs.msg.CheckPathActionResult()
00169 if self.action_feedback is None:
00170 self.action_feedback = door_msgs.msg.CheckPathActionFeedback()
00171 else:
00172 self.action_goal = door_msgs.msg.CheckPathActionGoal()
00173 self.action_result = door_msgs.msg.CheckPathActionResult()
00174 self.action_feedback = door_msgs.msg.CheckPathActionFeedback()
00175
00176 def _get_types(self):
00177 """
00178 internal API method
00179 """
00180 return self._slot_types
00181
00182 def serialize(self, buff):
00183 """
00184 serialize message into buffer
00185 @param buff: buffer
00186 @type buff: StringIO
00187 """
00188 try:
00189 _x = self
00190 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00191 _x = self.action_goal.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_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00196 _x = self.action_goal.goal_id.id
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_goal.goal.goal_pose.header.seq, _x.action_goal.goal.goal_pose.header.stamp.secs, _x.action_goal.goal.goal_pose.header.stamp.nsecs))
00201 _x = self.action_goal.goal.goal_pose.header.frame_id
00202 length = len(_x)
00203 buff.write(struct.pack('<I%ss'%length, length, _x))
00204 _x = self
00205 buff.write(_struct_7d3I.pack(_x.action_goal.goal.goal_pose.pose.position.x, _x.action_goal.goal.goal_pose.pose.position.y, _x.action_goal.goal.goal_pose.pose.position.z, _x.action_goal.goal.goal_pose.pose.orientation.x, _x.action_goal.goal.goal_pose.pose.orientation.y, _x.action_goal.goal.goal_pose.pose.orientation.z, _x.action_goal.goal.goal_pose.pose.orientation.w, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00206 _x = self.action_result.header.frame_id
00207 length = len(_x)
00208 buff.write(struct.pack('<I%ss'%length, length, _x))
00209 _x = self
00210 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00211 _x = self.action_result.status.goal_id.id
00212 length = len(_x)
00213 buff.write(struct.pack('<I%ss'%length, length, _x))
00214 buff.write(_struct_B.pack(self.action_result.status.status))
00215 _x = self.action_result.status.text
00216 length = len(_x)
00217 buff.write(struct.pack('<I%ss'%length, length, _x))
00218 _x = self
00219 buff.write(_struct_B3I.pack(_x.action_result.result.path_found, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00220 _x = self.action_feedback.header.frame_id
00221 length = len(_x)
00222 buff.write(struct.pack('<I%ss'%length, length, _x))
00223 _x = self
00224 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00225 _x = self.action_feedback.status.goal_id.id
00226 length = len(_x)
00227 buff.write(struct.pack('<I%ss'%length, length, _x))
00228 buff.write(_struct_B.pack(self.action_feedback.status.status))
00229 _x = self.action_feedback.status.text
00230 length = len(_x)
00231 buff.write(struct.pack('<I%ss'%length, length, _x))
00232 except struct.error, se: self._check_types(se)
00233 except TypeError, te: self._check_types(te)
00234
00235 def deserialize(self, str):
00236 """
00237 unpack serialized message in str into this message instance
00238 @param str: byte array of serialized message
00239 @type str: str
00240 """
00241 try:
00242 if self.action_goal is None:
00243 self.action_goal = door_msgs.msg.CheckPathActionGoal()
00244 if self.action_result is None:
00245 self.action_result = door_msgs.msg.CheckPathActionResult()
00246 if self.action_feedback is None:
00247 self.action_feedback = door_msgs.msg.CheckPathActionFeedback()
00248 end = 0
00249 _x = self
00250 start = end
00251 end += 12
00252 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00253 start = end
00254 end += 4
00255 (length,) = _struct_I.unpack(str[start:end])
00256 start = end
00257 end += length
00258 self.action_goal.header.frame_id = str[start:end]
00259 _x = self
00260 start = end
00261 end += 8
00262 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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_goal.goal_id.id = str[start:end]
00269 _x = self
00270 start = end
00271 end += 12
00272 (_x.action_goal.goal.goal_pose.header.seq, _x.action_goal.goal.goal_pose.header.stamp.secs, _x.action_goal.goal.goal_pose.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_goal.goal.goal_pose.header.frame_id = str[start:end]
00279 _x = self
00280 start = end
00281 end += 68
00282 (_x.action_goal.goal.goal_pose.pose.position.x, _x.action_goal.goal.goal_pose.pose.position.y, _x.action_goal.goal.goal_pose.pose.position.z, _x.action_goal.goal.goal_pose.pose.orientation.x, _x.action_goal.goal.goal_pose.pose.orientation.y, _x.action_goal.goal.goal_pose.pose.orientation.z, _x.action_goal.goal.goal_pose.pose.orientation.w, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_7d3I.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_result.header.frame_id = str[start:end]
00289 _x = self
00290 start = end
00291 end += 8
00292 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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 self.action_result.status.goal_id.id = str[start:end]
00299 start = end
00300 end += 1
00301 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00302 start = end
00303 end += 4
00304 (length,) = _struct_I.unpack(str[start:end])
00305 start = end
00306 end += length
00307 self.action_result.status.text = str[start:end]
00308 _x = self
00309 start = end
00310 end += 13
00311 (_x.action_result.result.path_found, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00312 self.action_result.result.path_found = bool(self.action_result.result.path_found)
00313 start = end
00314 end += 4
00315 (length,) = _struct_I.unpack(str[start:end])
00316 start = end
00317 end += length
00318 self.action_feedback.header.frame_id = str[start:end]
00319 _x = self
00320 start = end
00321 end += 8
00322 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00323 start = end
00324 end += 4
00325 (length,) = _struct_I.unpack(str[start:end])
00326 start = end
00327 end += length
00328 self.action_feedback.status.goal_id.id = str[start:end]
00329 start = end
00330 end += 1
00331 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00332 start = end
00333 end += 4
00334 (length,) = _struct_I.unpack(str[start:end])
00335 start = end
00336 end += length
00337 self.action_feedback.status.text = str[start:end]
00338 return self
00339 except struct.error, e:
00340 raise roslib.message.DeserializationError(e)
00341
00342
00343 def serialize_numpy(self, buff, numpy):
00344 """
00345 serialize message with numpy array types into buffer
00346 @param buff: buffer
00347 @type buff: StringIO
00348 @param numpy: numpy python module
00349 @type numpy 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 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 buff.write(struct.pack('<I%ss'%length, length, _x))
00362 _x = self
00363 buff.write(_struct_3I.pack(_x.action_goal.goal.goal_pose.header.seq, _x.action_goal.goal.goal_pose.header.stamp.secs, _x.action_goal.goal.goal_pose.header.stamp.nsecs))
00364 _x = self.action_goal.goal.goal_pose.header.frame_id
00365 length = len(_x)
00366 buff.write(struct.pack('<I%ss'%length, length, _x))
00367 _x = self
00368 buff.write(_struct_7d3I.pack(_x.action_goal.goal.goal_pose.pose.position.x, _x.action_goal.goal.goal_pose.pose.position.y, _x.action_goal.goal.goal_pose.pose.position.z, _x.action_goal.goal.goal_pose.pose.orientation.x, _x.action_goal.goal.goal_pose.pose.orientation.y, _x.action_goal.goal.goal_pose.pose.orientation.z, _x.action_goal.goal.goal_pose.pose.orientation.w, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00369 _x = self.action_result.header.frame_id
00370 length = len(_x)
00371 buff.write(struct.pack('<I%ss'%length, length, _x))
00372 _x = self
00373 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00374 _x = self.action_result.status.goal_id.id
00375 length = len(_x)
00376 buff.write(struct.pack('<I%ss'%length, length, _x))
00377 buff.write(_struct_B.pack(self.action_result.status.status))
00378 _x = self.action_result.status.text
00379 length = len(_x)
00380 buff.write(struct.pack('<I%ss'%length, length, _x))
00381 _x = self
00382 buff.write(_struct_B3I.pack(_x.action_result.result.path_found, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00383 _x = self.action_feedback.header.frame_id
00384 length = len(_x)
00385 buff.write(struct.pack('<I%ss'%length, length, _x))
00386 _x = self
00387 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00388 _x = self.action_feedback.status.goal_id.id
00389 length = len(_x)
00390 buff.write(struct.pack('<I%ss'%length, length, _x))
00391 buff.write(_struct_B.pack(self.action_feedback.status.status))
00392 _x = self.action_feedback.status.text
00393 length = len(_x)
00394 buff.write(struct.pack('<I%ss'%length, length, _x))
00395 except struct.error, se: self._check_types(se)
00396 except TypeError, te: self._check_types(te)
00397
00398 def deserialize_numpy(self, str, numpy):
00399 """
00400 unpack serialized message in str into this message instance using numpy for array types
00401 @param str: byte array of serialized message
00402 @type str: str
00403 @param numpy: numpy python module
00404 @type numpy: module
00405 """
00406 try:
00407 if self.action_goal is None:
00408 self.action_goal = door_msgs.msg.CheckPathActionGoal()
00409 if self.action_result is None:
00410 self.action_result = door_msgs.msg.CheckPathActionResult()
00411 if self.action_feedback is None:
00412 self.action_feedback = door_msgs.msg.CheckPathActionFeedback()
00413 end = 0
00414 _x = self
00415 start = end
00416 end += 12
00417 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00418 start = end
00419 end += 4
00420 (length,) = _struct_I.unpack(str[start:end])
00421 start = end
00422 end += length
00423 self.action_goal.header.frame_id = str[start:end]
00424 _x = self
00425 start = end
00426 end += 8
00427 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00428 start = end
00429 end += 4
00430 (length,) = _struct_I.unpack(str[start:end])
00431 start = end
00432 end += length
00433 self.action_goal.goal_id.id = str[start:end]
00434 _x = self
00435 start = end
00436 end += 12
00437 (_x.action_goal.goal.goal_pose.header.seq, _x.action_goal.goal.goal_pose.header.stamp.secs, _x.action_goal.goal.goal_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00438 start = end
00439 end += 4
00440 (length,) = _struct_I.unpack(str[start:end])
00441 start = end
00442 end += length
00443 self.action_goal.goal.goal_pose.header.frame_id = str[start:end]
00444 _x = self
00445 start = end
00446 end += 68
00447 (_x.action_goal.goal.goal_pose.pose.position.x, _x.action_goal.goal.goal_pose.pose.position.y, _x.action_goal.goal.goal_pose.pose.position.z, _x.action_goal.goal.goal_pose.pose.orientation.x, _x.action_goal.goal.goal_pose.pose.orientation.y, _x.action_goal.goal.goal_pose.pose.orientation.z, _x.action_goal.goal.goal_pose.pose.orientation.w, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_7d3I.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 self.action_result.header.frame_id = str[start:end]
00454 _x = self
00455 start = end
00456 end += 8
00457 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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 self.action_result.status.goal_id.id = str[start:end]
00464 start = end
00465 end += 1
00466 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00467 start = end
00468 end += 4
00469 (length,) = _struct_I.unpack(str[start:end])
00470 start = end
00471 end += length
00472 self.action_result.status.text = str[start:end]
00473 _x = self
00474 start = end
00475 end += 13
00476 (_x.action_result.result.path_found, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00477 self.action_result.result.path_found = bool(self.action_result.result.path_found)
00478 start = end
00479 end += 4
00480 (length,) = _struct_I.unpack(str[start:end])
00481 start = end
00482 end += length
00483 self.action_feedback.header.frame_id = str[start:end]
00484 _x = self
00485 start = end
00486 end += 8
00487 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00488 start = end
00489 end += 4
00490 (length,) = _struct_I.unpack(str[start:end])
00491 start = end
00492 end += length
00493 self.action_feedback.status.goal_id.id = str[start:end]
00494 start = end
00495 end += 1
00496 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00497 start = end
00498 end += 4
00499 (length,) = _struct_I.unpack(str[start:end])
00500 start = end
00501 end += length
00502 self.action_feedback.status.text = str[start:end]
00503 return self
00504 except struct.error, e:
00505 raise roslib.message.DeserializationError(e)
00506
00507 _struct_I = roslib.message.struct_I
00508 _struct_3I = struct.Struct("<3I")
00509 _struct_B = struct.Struct("<B")
00510 _struct_B3I = struct.Struct("<B3I")
00511 _struct_2I = struct.Struct("<2I")
00512 _struct_7d3I = struct.Struct("<7d3I")