00001 """autogenerated by genpy from pr2_tilt_laser_interface/GetSnapshotActionFeedback.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 pr2_tilt_laser_interface.msg
00008 import sensor_msgs.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import std_msgs.msg
00012
00013 class GetSnapshotActionFeedback(genpy.Message):
00014 _md5sum = "7e4d330d40a18bf66084a10cc1648970"
00015 _type = "pr2_tilt_laser_interface/GetSnapshotActionFeedback"
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 GetSnapshotFeedback 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: pr2_tilt_laser_interface/GetSnapshotFeedback
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 # Feedback
00084 sensor_msgs/PointCloud2 cloud
00085
00086
00087
00088 ================================================================================
00089 MSG: sensor_msgs/PointCloud2
00090 # This message holds a collection of N-dimensional points, which may
00091 # contain additional information such as normals, intensity, etc. The
00092 # point data is stored as a binary blob, its layout described by the
00093 # contents of the "fields" array.
00094
00095 # The point cloud data may be organized 2d (image-like) or 1d
00096 # (unordered). Point clouds organized as 2d images may be produced by
00097 # camera depth sensors such as stereo or time-of-flight.
00098
00099 # Time of sensor data acquisition, and the coordinate frame ID (for 3d
00100 # points).
00101 Header header
00102
00103 # 2D structure of the point cloud. If the cloud is unordered, height is
00104 # 1 and width is the length of the point cloud.
00105 uint32 height
00106 uint32 width
00107
00108 # Describes the channels and their layout in the binary data blob.
00109 PointField[] fields
00110
00111 bool is_bigendian # Is this data bigendian?
00112 uint32 point_step # Length of a point in bytes
00113 uint32 row_step # Length of a row in bytes
00114 uint8[] data # Actual point data, size is (row_step*height)
00115
00116 bool is_dense # True if there are no invalid points
00117
00118 ================================================================================
00119 MSG: sensor_msgs/PointField
00120 # This message holds the description of one point entry in the
00121 # PointCloud2 message format.
00122 uint8 INT8 = 1
00123 uint8 UINT8 = 2
00124 uint8 INT16 = 3
00125 uint8 UINT16 = 4
00126 uint8 INT32 = 5
00127 uint8 UINT32 = 6
00128 uint8 FLOAT32 = 7
00129 uint8 FLOAT64 = 8
00130
00131 string name # Name of field
00132 uint32 offset # Offset from start of point struct
00133 uint8 datatype # Datatype enumeration, see above
00134 uint32 count # How many elements in the field
00135
00136 """
00137 __slots__ = ['header','status','feedback']
00138 _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','pr2_tilt_laser_interface/GetSnapshotFeedback']
00139
00140 def __init__(self, *args, **kwds):
00141 """
00142 Constructor. Any message fields that are implicitly/explicitly
00143 set to None will be assigned a default value. The recommend
00144 use is keyword arguments as this is more robust to future message
00145 changes. You cannot mix in-order arguments and keyword arguments.
00146
00147 The available fields are:
00148 header,status,feedback
00149
00150 :param args: complete set of field values, in .msg order
00151 :param kwds: use keyword arguments corresponding to message field names
00152 to set specific fields.
00153 """
00154 if args or kwds:
00155 super(GetSnapshotActionFeedback, self).__init__(*args, **kwds)
00156
00157 if self.header is None:
00158 self.header = std_msgs.msg.Header()
00159 if self.status is None:
00160 self.status = actionlib_msgs.msg.GoalStatus()
00161 if self.feedback is None:
00162 self.feedback = pr2_tilt_laser_interface.msg.GetSnapshotFeedback()
00163 else:
00164 self.header = std_msgs.msg.Header()
00165 self.status = actionlib_msgs.msg.GoalStatus()
00166 self.feedback = pr2_tilt_laser_interface.msg.GetSnapshotFeedback()
00167
00168 def _get_types(self):
00169 """
00170 internal API method
00171 """
00172 return self._slot_types
00173
00174 def serialize(self, buff):
00175 """
00176 serialize message into buffer
00177 :param buff: buffer, ``StringIO``
00178 """
00179 try:
00180 _x = self
00181 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00182 _x = self.header.frame_id
00183 length = len(_x)
00184 if python3 or type(_x) == unicode:
00185 _x = _x.encode('utf-8')
00186 length = len(_x)
00187 buff.write(struct.pack('<I%ss'%length, length, _x))
00188 _x = self
00189 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00190 _x = self.status.goal_id.id
00191 length = len(_x)
00192 if python3 or type(_x) == unicode:
00193 _x = _x.encode('utf-8')
00194 length = len(_x)
00195 buff.write(struct.pack('<I%ss'%length, length, _x))
00196 buff.write(_struct_B.pack(self.status.status))
00197 _x = self.status.text
00198 length = len(_x)
00199 if python3 or type(_x) == unicode:
00200 _x = _x.encode('utf-8')
00201 length = len(_x)
00202 buff.write(struct.pack('<I%ss'%length, length, _x))
00203 _x = self
00204 buff.write(_struct_3I.pack(_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs))
00205 _x = self.feedback.cloud.header.frame_id
00206 length = len(_x)
00207 if python3 or type(_x) == unicode:
00208 _x = _x.encode('utf-8')
00209 length = len(_x)
00210 buff.write(struct.pack('<I%ss'%length, length, _x))
00211 _x = self
00212 buff.write(_struct_2I.pack(_x.feedback.cloud.height, _x.feedback.cloud.width))
00213 length = len(self.feedback.cloud.fields)
00214 buff.write(_struct_I.pack(length))
00215 for val1 in self.feedback.cloud.fields:
00216 _x = val1.name
00217 length = len(_x)
00218 if python3 or type(_x) == unicode:
00219 _x = _x.encode('utf-8')
00220 length = len(_x)
00221 buff.write(struct.pack('<I%ss'%length, length, _x))
00222 _x = val1
00223 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00224 _x = self
00225 buff.write(_struct_B2I.pack(_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step))
00226 _x = self.feedback.cloud.data
00227 length = len(_x)
00228
00229 if type(_x) in [list, tuple]:
00230 buff.write(struct.pack('<I%sB'%length, length, *_x))
00231 else:
00232 buff.write(struct.pack('<I%ss'%length, length, _x))
00233 buff.write(_struct_B.pack(self.feedback.cloud.is_dense))
00234 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00235 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00236
00237 def deserialize(self, str):
00238 """
00239 unpack serialized message in str into this message instance
00240 :param str: byte array of serialized message, ``str``
00241 """
00242 try:
00243 if self.header is None:
00244 self.header = std_msgs.msg.Header()
00245 if self.status is None:
00246 self.status = actionlib_msgs.msg.GoalStatus()
00247 if self.feedback is None:
00248 self.feedback = pr2_tilt_laser_interface.msg.GetSnapshotFeedback()
00249 end = 0
00250 _x = self
00251 start = end
00252 end += 12
00253 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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 if python3:
00260 self.header.frame_id = str[start:end].decode('utf-8')
00261 else:
00262 self.header.frame_id = str[start:end]
00263 _x = self
00264 start = end
00265 end += 8
00266 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00267 start = end
00268 end += 4
00269 (length,) = _struct_I.unpack(str[start:end])
00270 start = end
00271 end += length
00272 if python3:
00273 self.status.goal_id.id = str[start:end].decode('utf-8')
00274 else:
00275 self.status.goal_id.id = str[start:end]
00276 start = end
00277 end += 1
00278 (self.status.status,) = _struct_B.unpack(str[start:end])
00279 start = end
00280 end += 4
00281 (length,) = _struct_I.unpack(str[start:end])
00282 start = end
00283 end += length
00284 if python3:
00285 self.status.text = str[start:end].decode('utf-8')
00286 else:
00287 self.status.text = str[start:end]
00288 _x = self
00289 start = end
00290 end += 12
00291 (_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs,) = _struct_3I.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 if python3:
00298 self.feedback.cloud.header.frame_id = str[start:end].decode('utf-8')
00299 else:
00300 self.feedback.cloud.header.frame_id = str[start:end]
00301 _x = self
00302 start = end
00303 end += 8
00304 (_x.feedback.cloud.height, _x.feedback.cloud.width,) = _struct_2I.unpack(str[start:end])
00305 start = end
00306 end += 4
00307 (length,) = _struct_I.unpack(str[start:end])
00308 self.feedback.cloud.fields = []
00309 for i in range(0, length):
00310 val1 = sensor_msgs.msg.PointField()
00311 start = end
00312 end += 4
00313 (length,) = _struct_I.unpack(str[start:end])
00314 start = end
00315 end += length
00316 if python3:
00317 val1.name = str[start:end].decode('utf-8')
00318 else:
00319 val1.name = str[start:end]
00320 _x = val1
00321 start = end
00322 end += 9
00323 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00324 self.feedback.cloud.fields.append(val1)
00325 _x = self
00326 start = end
00327 end += 9
00328 (_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step,) = _struct_B2I.unpack(str[start:end])
00329 self.feedback.cloud.is_bigendian = bool(self.feedback.cloud.is_bigendian)
00330 start = end
00331 end += 4
00332 (length,) = _struct_I.unpack(str[start:end])
00333 start = end
00334 end += length
00335 self.feedback.cloud.data = str[start:end]
00336 start = end
00337 end += 1
00338 (self.feedback.cloud.is_dense,) = _struct_B.unpack(str[start:end])
00339 self.feedback.cloud.is_dense = bool(self.feedback.cloud.is_dense)
00340 return self
00341 except struct.error as e:
00342 raise genpy.DeserializationError(e)
00343
00344
00345 def serialize_numpy(self, buff, numpy):
00346 """
00347 serialize message with numpy array types into buffer
00348 :param buff: buffer, ``StringIO``
00349 :param numpy: numpy python module
00350 """
00351 try:
00352 _x = self
00353 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00354 _x = self.header.frame_id
00355 length = len(_x)
00356 if python3 or type(_x) == unicode:
00357 _x = _x.encode('utf-8')
00358 length = len(_x)
00359 buff.write(struct.pack('<I%ss'%length, length, _x))
00360 _x = self
00361 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00362 _x = self.status.goal_id.id
00363 length = len(_x)
00364 if python3 or type(_x) == unicode:
00365 _x = _x.encode('utf-8')
00366 length = len(_x)
00367 buff.write(struct.pack('<I%ss'%length, length, _x))
00368 buff.write(_struct_B.pack(self.status.status))
00369 _x = self.status.text
00370 length = len(_x)
00371 if python3 or type(_x) == unicode:
00372 _x = _x.encode('utf-8')
00373 length = len(_x)
00374 buff.write(struct.pack('<I%ss'%length, length, _x))
00375 _x = self
00376 buff.write(_struct_3I.pack(_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs))
00377 _x = self.feedback.cloud.header.frame_id
00378 length = len(_x)
00379 if python3 or type(_x) == unicode:
00380 _x = _x.encode('utf-8')
00381 length = len(_x)
00382 buff.write(struct.pack('<I%ss'%length, length, _x))
00383 _x = self
00384 buff.write(_struct_2I.pack(_x.feedback.cloud.height, _x.feedback.cloud.width))
00385 length = len(self.feedback.cloud.fields)
00386 buff.write(_struct_I.pack(length))
00387 for val1 in self.feedback.cloud.fields:
00388 _x = val1.name
00389 length = len(_x)
00390 if python3 or type(_x) == unicode:
00391 _x = _x.encode('utf-8')
00392 length = len(_x)
00393 buff.write(struct.pack('<I%ss'%length, length, _x))
00394 _x = val1
00395 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00396 _x = self
00397 buff.write(_struct_B2I.pack(_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step))
00398 _x = self.feedback.cloud.data
00399 length = len(_x)
00400
00401 if type(_x) in [list, tuple]:
00402 buff.write(struct.pack('<I%sB'%length, length, *_x))
00403 else:
00404 buff.write(struct.pack('<I%ss'%length, length, _x))
00405 buff.write(_struct_B.pack(self.feedback.cloud.is_dense))
00406 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00407 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00408
00409 def deserialize_numpy(self, str, numpy):
00410 """
00411 unpack serialized message in str into this message instance using numpy for array types
00412 :param str: byte array of serialized message, ``str``
00413 :param numpy: numpy python module
00414 """
00415 try:
00416 if self.header is None:
00417 self.header = std_msgs.msg.Header()
00418 if self.status is None:
00419 self.status = actionlib_msgs.msg.GoalStatus()
00420 if self.feedback is None:
00421 self.feedback = pr2_tilt_laser_interface.msg.GetSnapshotFeedback()
00422 end = 0
00423 _x = self
00424 start = end
00425 end += 12
00426 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00427 start = end
00428 end += 4
00429 (length,) = _struct_I.unpack(str[start:end])
00430 start = end
00431 end += length
00432 if python3:
00433 self.header.frame_id = str[start:end].decode('utf-8')
00434 else:
00435 self.header.frame_id = str[start:end]
00436 _x = self
00437 start = end
00438 end += 8
00439 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00440 start = end
00441 end += 4
00442 (length,) = _struct_I.unpack(str[start:end])
00443 start = end
00444 end += length
00445 if python3:
00446 self.status.goal_id.id = str[start:end].decode('utf-8')
00447 else:
00448 self.status.goal_id.id = str[start:end]
00449 start = end
00450 end += 1
00451 (self.status.status,) = _struct_B.unpack(str[start:end])
00452 start = end
00453 end += 4
00454 (length,) = _struct_I.unpack(str[start:end])
00455 start = end
00456 end += length
00457 if python3:
00458 self.status.text = str[start:end].decode('utf-8')
00459 else:
00460 self.status.text = str[start:end]
00461 _x = self
00462 start = end
00463 end += 12
00464 (_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00465 start = end
00466 end += 4
00467 (length,) = _struct_I.unpack(str[start:end])
00468 start = end
00469 end += length
00470 if python3:
00471 self.feedback.cloud.header.frame_id = str[start:end].decode('utf-8')
00472 else:
00473 self.feedback.cloud.header.frame_id = str[start:end]
00474 _x = self
00475 start = end
00476 end += 8
00477 (_x.feedback.cloud.height, _x.feedback.cloud.width,) = _struct_2I.unpack(str[start:end])
00478 start = end
00479 end += 4
00480 (length,) = _struct_I.unpack(str[start:end])
00481 self.feedback.cloud.fields = []
00482 for i in range(0, length):
00483 val1 = sensor_msgs.msg.PointField()
00484 start = end
00485 end += 4
00486 (length,) = _struct_I.unpack(str[start:end])
00487 start = end
00488 end += length
00489 if python3:
00490 val1.name = str[start:end].decode('utf-8')
00491 else:
00492 val1.name = str[start:end]
00493 _x = val1
00494 start = end
00495 end += 9
00496 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00497 self.feedback.cloud.fields.append(val1)
00498 _x = self
00499 start = end
00500 end += 9
00501 (_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step,) = _struct_B2I.unpack(str[start:end])
00502 self.feedback.cloud.is_bigendian = bool(self.feedback.cloud.is_bigendian)
00503 start = end
00504 end += 4
00505 (length,) = _struct_I.unpack(str[start:end])
00506 start = end
00507 end += length
00508 self.feedback.cloud.data = str[start:end]
00509 start = end
00510 end += 1
00511 (self.feedback.cloud.is_dense,) = _struct_B.unpack(str[start:end])
00512 self.feedback.cloud.is_dense = bool(self.feedback.cloud.is_dense)
00513 return self
00514 except struct.error as e:
00515 raise genpy.DeserializationError(e)
00516
00517 _struct_I = genpy.struct_I
00518 _struct_IBI = struct.Struct("<IBI")
00519 _struct_3I = struct.Struct("<3I")
00520 _struct_B = struct.Struct("<B")
00521 _struct_2I = struct.Struct("<2I")
00522 _struct_B2I = struct.Struct("<B2I")