00001 """autogenerated by genpy from asctec_hl_comm/WaypointActionFeedback.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 geometry_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import asctec_hl_comm.msg
00011 import std_msgs.msg
00012
00013 class WaypointActionFeedback(genpy.Message):
00014 _md5sum = "fe5606caf5ebc53ae46fa241a4af9304"
00015 _type = "asctec_hl_comm/WaypointActionFeedback"
00016 _has_header = True
00017 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00018
00019 Header header
00020 actionlib_msgs/GoalStatus status
00021 WaypointFeedback feedback
00022
00023 ================================================================================
00024 MSG: std_msgs/Header
00025 # Standard metadata for higher-level stamped data types.
00026 # This is generally used to communicate timestamped data
00027 # in a particular coordinate frame.
00028 #
00029 # sequence ID: consecutively increasing ID
00030 uint32 seq
00031 #Two-integer timestamp that is expressed as:
00032 # * stamp.secs: seconds (stamp_secs) since epoch
00033 # * stamp.nsecs: nanoseconds since stamp_secs
00034 # time-handling sugar is provided by the client library
00035 time stamp
00036 #Frame this data is associated with
00037 # 0: no frame
00038 # 1: global frame
00039 string frame_id
00040
00041 ================================================================================
00042 MSG: actionlib_msgs/GoalStatus
00043 GoalID goal_id
00044 uint8 status
00045 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00046 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00047 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00048 # and has since completed its execution (Terminal State)
00049 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00050 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00051 # to some failure (Terminal State)
00052 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00053 # because the goal was unattainable or invalid (Terminal State)
00054 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00055 # and has not yet completed execution
00056 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00057 # but the action server has not yet confirmed that the goal is canceled
00058 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00059 # and was successfully cancelled (Terminal State)
00060 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00061 # sent over the wire by an action server
00062
00063 #Allow for the user to associate a string with GoalStatus for debugging
00064 string text
00065
00066
00067 ================================================================================
00068 MSG: actionlib_msgs/GoalID
00069 # The stamp should store the time at which this goal was requested.
00070 # It is used by an action server when it tries to preempt all
00071 # goals that were requested before a certain time
00072 time stamp
00073
00074 # The id provides a way to associate feedback and
00075 # result message with specific goal requests. The id
00076 # specified must be unique.
00077 string id
00078
00079
00080 ================================================================================
00081 MSG: asctec_hl_comm/WaypointFeedback
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 #feedback
00084 Header header
00085 geometry_msgs/Point32 current_pos
00086 float32 current_yaw
00087 string status
00088
00089
00090 ================================================================================
00091 MSG: geometry_msgs/Point32
00092 # This contains the position of a point in free space(with 32 bits of precision).
00093 # It is recommeded to use Point wherever possible instead of Point32.
00094 #
00095 # This recommendation is to promote interoperability.
00096 #
00097 # This message is designed to take up less space when sending
00098 # lots of points at once, as in the case of a PointCloud.
00099
00100 float32 x
00101 float32 y
00102 float32 z
00103 """
00104 __slots__ = ['header','status','feedback']
00105 _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','asctec_hl_comm/WaypointFeedback']
00106
00107 def __init__(self, *args, **kwds):
00108 """
00109 Constructor. Any message fields that are implicitly/explicitly
00110 set to None will be assigned a default value. The recommend
00111 use is keyword arguments as this is more robust to future message
00112 changes. You cannot mix in-order arguments and keyword arguments.
00113
00114 The available fields are:
00115 header,status,feedback
00116
00117 :param args: complete set of field values, in .msg order
00118 :param kwds: use keyword arguments corresponding to message field names
00119 to set specific fields.
00120 """
00121 if args or kwds:
00122 super(WaypointActionFeedback, self).__init__(*args, **kwds)
00123
00124 if self.header is None:
00125 self.header = std_msgs.msg.Header()
00126 if self.status is None:
00127 self.status = actionlib_msgs.msg.GoalStatus()
00128 if self.feedback is None:
00129 self.feedback = asctec_hl_comm.msg.WaypointFeedback()
00130 else:
00131 self.header = std_msgs.msg.Header()
00132 self.status = actionlib_msgs.msg.GoalStatus()
00133 self.feedback = asctec_hl_comm.msg.WaypointFeedback()
00134
00135 def _get_types(self):
00136 """
00137 internal API method
00138 """
00139 return self._slot_types
00140
00141 def serialize(self, buff):
00142 """
00143 serialize message into buffer
00144 :param buff: buffer, ``StringIO``
00145 """
00146 try:
00147 _x = self
00148 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00149 _x = self.header.frame_id
00150 length = len(_x)
00151 if python3 or type(_x) == unicode:
00152 _x = _x.encode('utf-8')
00153 length = len(_x)
00154 buff.write(struct.pack('<I%ss'%length, length, _x))
00155 _x = self
00156 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00157 _x = self.status.goal_id.id
00158 length = len(_x)
00159 if python3 or type(_x) == unicode:
00160 _x = _x.encode('utf-8')
00161 length = len(_x)
00162 buff.write(struct.pack('<I%ss'%length, length, _x))
00163 buff.write(_struct_B.pack(self.status.status))
00164 _x = self.status.text
00165 length = len(_x)
00166 if python3 or type(_x) == unicode:
00167 _x = _x.encode('utf-8')
00168 length = len(_x)
00169 buff.write(struct.pack('<I%ss'%length, length, _x))
00170 _x = self
00171 buff.write(_struct_3I.pack(_x.feedback.header.seq, _x.feedback.header.stamp.secs, _x.feedback.header.stamp.nsecs))
00172 _x = self.feedback.header.frame_id
00173 length = len(_x)
00174 if python3 or type(_x) == unicode:
00175 _x = _x.encode('utf-8')
00176 length = len(_x)
00177 buff.write(struct.pack('<I%ss'%length, length, _x))
00178 _x = self
00179 buff.write(_struct_4f.pack(_x.feedback.current_pos.x, _x.feedback.current_pos.y, _x.feedback.current_pos.z, _x.feedback.current_yaw))
00180 _x = self.feedback.status
00181 length = len(_x)
00182 if python3 or type(_x) == unicode:
00183 _x = _x.encode('utf-8')
00184 length = len(_x)
00185 buff.write(struct.pack('<I%ss'%length, length, _x))
00186 except struct.error as se: self._check_types(se)
00187 except TypeError as te: self._check_types(te)
00188
00189 def deserialize(self, str):
00190 """
00191 unpack serialized message in str into this message instance
00192 :param str: byte array of serialized message, ``str``
00193 """
00194 try:
00195 if self.header is None:
00196 self.header = std_msgs.msg.Header()
00197 if self.status is None:
00198 self.status = actionlib_msgs.msg.GoalStatus()
00199 if self.feedback is None:
00200 self.feedback = asctec_hl_comm.msg.WaypointFeedback()
00201 end = 0
00202 _x = self
00203 start = end
00204 end += 12
00205 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00206 start = end
00207 end += 4
00208 (length,) = _struct_I.unpack(str[start:end])
00209 start = end
00210 end += length
00211 if python3:
00212 self.header.frame_id = str[start:end].decode('utf-8')
00213 else:
00214 self.header.frame_id = str[start:end]
00215 _x = self
00216 start = end
00217 end += 8
00218 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.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 if python3:
00225 self.status.goal_id.id = str[start:end].decode('utf-8')
00226 else:
00227 self.status.goal_id.id = str[start:end]
00228 start = end
00229 end += 1
00230 (self.status.status,) = _struct_B.unpack(str[start:end])
00231 start = end
00232 end += 4
00233 (length,) = _struct_I.unpack(str[start:end])
00234 start = end
00235 end += length
00236 if python3:
00237 self.status.text = str[start:end].decode('utf-8')
00238 else:
00239 self.status.text = str[start:end]
00240 _x = self
00241 start = end
00242 end += 12
00243 (_x.feedback.header.seq, _x.feedback.header.stamp.secs, _x.feedback.header.stamp.nsecs,) = _struct_3I.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 if python3:
00250 self.feedback.header.frame_id = str[start:end].decode('utf-8')
00251 else:
00252 self.feedback.header.frame_id = str[start:end]
00253 _x = self
00254 start = end
00255 end += 16
00256 (_x.feedback.current_pos.x, _x.feedback.current_pos.y, _x.feedback.current_pos.z, _x.feedback.current_yaw,) = _struct_4f.unpack(str[start:end])
00257 start = end
00258 end += 4
00259 (length,) = _struct_I.unpack(str[start:end])
00260 start = end
00261 end += length
00262 if python3:
00263 self.feedback.status = str[start:end].decode('utf-8')
00264 else:
00265 self.feedback.status = str[start:end]
00266 return self
00267 except struct.error as e:
00268 raise genpy.DeserializationError(e)
00269
00270
00271 def serialize_numpy(self, buff, numpy):
00272 """
00273 serialize message with numpy array types into buffer
00274 :param buff: buffer, ``StringIO``
00275 :param numpy: numpy python module
00276 """
00277 try:
00278 _x = self
00279 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00280 _x = self.header.frame_id
00281 length = len(_x)
00282 if python3 or type(_x) == unicode:
00283 _x = _x.encode('utf-8')
00284 length = len(_x)
00285 buff.write(struct.pack('<I%ss'%length, length, _x))
00286 _x = self
00287 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00288 _x = self.status.goal_id.id
00289 length = len(_x)
00290 if python3 or type(_x) == unicode:
00291 _x = _x.encode('utf-8')
00292 length = len(_x)
00293 buff.write(struct.pack('<I%ss'%length, length, _x))
00294 buff.write(_struct_B.pack(self.status.status))
00295 _x = self.status.text
00296 length = len(_x)
00297 if python3 or type(_x) == unicode:
00298 _x = _x.encode('utf-8')
00299 length = len(_x)
00300 buff.write(struct.pack('<I%ss'%length, length, _x))
00301 _x = self
00302 buff.write(_struct_3I.pack(_x.feedback.header.seq, _x.feedback.header.stamp.secs, _x.feedback.header.stamp.nsecs))
00303 _x = self.feedback.header.frame_id
00304 length = len(_x)
00305 if python3 or type(_x) == unicode:
00306 _x = _x.encode('utf-8')
00307 length = len(_x)
00308 buff.write(struct.pack('<I%ss'%length, length, _x))
00309 _x = self
00310 buff.write(_struct_4f.pack(_x.feedback.current_pos.x, _x.feedback.current_pos.y, _x.feedback.current_pos.z, _x.feedback.current_yaw))
00311 _x = self.feedback.status
00312 length = len(_x)
00313 if python3 or type(_x) == unicode:
00314 _x = _x.encode('utf-8')
00315 length = len(_x)
00316 buff.write(struct.pack('<I%ss'%length, length, _x))
00317 except struct.error as se: self._check_types(se)
00318 except TypeError as te: self._check_types(te)
00319
00320 def deserialize_numpy(self, str, numpy):
00321 """
00322 unpack serialized message in str into this message instance using numpy for array types
00323 :param str: byte array of serialized message, ``str``
00324 :param numpy: numpy python module
00325 """
00326 try:
00327 if self.header is None:
00328 self.header = std_msgs.msg.Header()
00329 if self.status is None:
00330 self.status = actionlib_msgs.msg.GoalStatus()
00331 if self.feedback is None:
00332 self.feedback = asctec_hl_comm.msg.WaypointFeedback()
00333 end = 0
00334 _x = self
00335 start = end
00336 end += 12
00337 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00338 start = end
00339 end += 4
00340 (length,) = _struct_I.unpack(str[start:end])
00341 start = end
00342 end += length
00343 if python3:
00344 self.header.frame_id = str[start:end].decode('utf-8')
00345 else:
00346 self.header.frame_id = str[start:end]
00347 _x = self
00348 start = end
00349 end += 8
00350 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00351 start = end
00352 end += 4
00353 (length,) = _struct_I.unpack(str[start:end])
00354 start = end
00355 end += length
00356 if python3:
00357 self.status.goal_id.id = str[start:end].decode('utf-8')
00358 else:
00359 self.status.goal_id.id = str[start:end]
00360 start = end
00361 end += 1
00362 (self.status.status,) = _struct_B.unpack(str[start:end])
00363 start = end
00364 end += 4
00365 (length,) = _struct_I.unpack(str[start:end])
00366 start = end
00367 end += length
00368 if python3:
00369 self.status.text = str[start:end].decode('utf-8')
00370 else:
00371 self.status.text = str[start:end]
00372 _x = self
00373 start = end
00374 end += 12
00375 (_x.feedback.header.seq, _x.feedback.header.stamp.secs, _x.feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00376 start = end
00377 end += 4
00378 (length,) = _struct_I.unpack(str[start:end])
00379 start = end
00380 end += length
00381 if python3:
00382 self.feedback.header.frame_id = str[start:end].decode('utf-8')
00383 else:
00384 self.feedback.header.frame_id = str[start:end]
00385 _x = self
00386 start = end
00387 end += 16
00388 (_x.feedback.current_pos.x, _x.feedback.current_pos.y, _x.feedback.current_pos.z, _x.feedback.current_yaw,) = _struct_4f.unpack(str[start:end])
00389 start = end
00390 end += 4
00391 (length,) = _struct_I.unpack(str[start:end])
00392 start = end
00393 end += length
00394 if python3:
00395 self.feedback.status = str[start:end].decode('utf-8')
00396 else:
00397 self.feedback.status = str[start:end]
00398 return self
00399 except struct.error as e:
00400 raise genpy.DeserializationError(e)
00401
00402 _struct_I = genpy.struct_I
00403 _struct_4f = struct.Struct("<4f")
00404 _struct_3I = struct.Struct("<3I")
00405 _struct_B = struct.Struct("<B")
00406 _struct_2I = struct.Struct("<2I")