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