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