_GetSnapshotActionFeedback.py
Go to the documentation of this file.
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 #flag to mark the presence of a Header object
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       #message fields cannot be None, assign default values for those that are
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       # - if encoded as a list instead, serialize as bytes instead of string
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(se)
00235     except TypeError as te: self._check_types(te)
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       if python3:
00336         self.feedback.cloud.data = str[start:end].decode('utf-8')
00337       else:
00338         self.feedback.cloud.data = str[start:end]
00339       start = end
00340       end += 1
00341       (self.feedback.cloud.is_dense,) = _struct_B.unpack(str[start:end])
00342       self.feedback.cloud.is_dense = bool(self.feedback.cloud.is_dense)
00343       return self
00344     except struct.error as e:
00345       raise genpy.DeserializationError(e) #most likely buffer underfill
00346 
00347 
00348   def serialize_numpy(self, buff, numpy):
00349     """
00350     serialize message with numpy array types into buffer
00351     :param buff: buffer, ``StringIO``
00352     :param numpy: numpy python module
00353     """
00354     try:
00355       _x = self
00356       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00357       _x = self.header.frame_id
00358       length = len(_x)
00359       if python3 or type(_x) == unicode:
00360         _x = _x.encode('utf-8')
00361         length = len(_x)
00362       buff.write(struct.pack('<I%ss'%length, length, _x))
00363       _x = self
00364       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00365       _x = self.status.goal_id.id
00366       length = len(_x)
00367       if python3 or type(_x) == unicode:
00368         _x = _x.encode('utf-8')
00369         length = len(_x)
00370       buff.write(struct.pack('<I%ss'%length, length, _x))
00371       buff.write(_struct_B.pack(self.status.status))
00372       _x = self.status.text
00373       length = len(_x)
00374       if python3 or type(_x) == unicode:
00375         _x = _x.encode('utf-8')
00376         length = len(_x)
00377       buff.write(struct.pack('<I%ss'%length, length, _x))
00378       _x = self
00379       buff.write(_struct_3I.pack(_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs))
00380       _x = self.feedback.cloud.header.frame_id
00381       length = len(_x)
00382       if python3 or type(_x) == unicode:
00383         _x = _x.encode('utf-8')
00384         length = len(_x)
00385       buff.write(struct.pack('<I%ss'%length, length, _x))
00386       _x = self
00387       buff.write(_struct_2I.pack(_x.feedback.cloud.height, _x.feedback.cloud.width))
00388       length = len(self.feedback.cloud.fields)
00389       buff.write(_struct_I.pack(length))
00390       for val1 in self.feedback.cloud.fields:
00391         _x = val1.name
00392         length = len(_x)
00393         if python3 or type(_x) == unicode:
00394           _x = _x.encode('utf-8')
00395           length = len(_x)
00396         buff.write(struct.pack('<I%ss'%length, length, _x))
00397         _x = val1
00398         buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count))
00399       _x = self
00400       buff.write(_struct_B2I.pack(_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step))
00401       _x = self.feedback.cloud.data
00402       length = len(_x)
00403       # - if encoded as a list instead, serialize as bytes instead of string
00404       if type(_x) in [list, tuple]:
00405         buff.write(struct.pack('<I%sB'%length, length, *_x))
00406       else:
00407         buff.write(struct.pack('<I%ss'%length, length, _x))
00408       buff.write(_struct_B.pack(self.feedback.cloud.is_dense))
00409     except struct.error as se: self._check_types(se)
00410     except TypeError as te: self._check_types(te)
00411 
00412   def deserialize_numpy(self, str, numpy):
00413     """
00414     unpack serialized message in str into this message instance using numpy for array types
00415     :param str: byte array of serialized message, ``str``
00416     :param numpy: numpy python module
00417     """
00418     try:
00419       if self.header is None:
00420         self.header = std_msgs.msg.Header()
00421       if self.status is None:
00422         self.status = actionlib_msgs.msg.GoalStatus()
00423       if self.feedback is None:
00424         self.feedback = pr2_tilt_laser_interface.msg.GetSnapshotFeedback()
00425       end = 0
00426       _x = self
00427       start = end
00428       end += 12
00429       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00430       start = end
00431       end += 4
00432       (length,) = _struct_I.unpack(str[start:end])
00433       start = end
00434       end += length
00435       if python3:
00436         self.header.frame_id = str[start:end].decode('utf-8')
00437       else:
00438         self.header.frame_id = str[start:end]
00439       _x = self
00440       start = end
00441       end += 8
00442       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00443       start = end
00444       end += 4
00445       (length,) = _struct_I.unpack(str[start:end])
00446       start = end
00447       end += length
00448       if python3:
00449         self.status.goal_id.id = str[start:end].decode('utf-8')
00450       else:
00451         self.status.goal_id.id = str[start:end]
00452       start = end
00453       end += 1
00454       (self.status.status,) = _struct_B.unpack(str[start:end])
00455       start = end
00456       end += 4
00457       (length,) = _struct_I.unpack(str[start:end])
00458       start = end
00459       end += length
00460       if python3:
00461         self.status.text = str[start:end].decode('utf-8')
00462       else:
00463         self.status.text = str[start:end]
00464       _x = self
00465       start = end
00466       end += 12
00467       (_x.feedback.cloud.header.seq, _x.feedback.cloud.header.stamp.secs, _x.feedback.cloud.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00468       start = end
00469       end += 4
00470       (length,) = _struct_I.unpack(str[start:end])
00471       start = end
00472       end += length
00473       if python3:
00474         self.feedback.cloud.header.frame_id = str[start:end].decode('utf-8')
00475       else:
00476         self.feedback.cloud.header.frame_id = str[start:end]
00477       _x = self
00478       start = end
00479       end += 8
00480       (_x.feedback.cloud.height, _x.feedback.cloud.width,) = _struct_2I.unpack(str[start:end])
00481       start = end
00482       end += 4
00483       (length,) = _struct_I.unpack(str[start:end])
00484       self.feedback.cloud.fields = []
00485       for i in range(0, length):
00486         val1 = sensor_msgs.msg.PointField()
00487         start = end
00488         end += 4
00489         (length,) = _struct_I.unpack(str[start:end])
00490         start = end
00491         end += length
00492         if python3:
00493           val1.name = str[start:end].decode('utf-8')
00494         else:
00495           val1.name = str[start:end]
00496         _x = val1
00497         start = end
00498         end += 9
00499         (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end])
00500         self.feedback.cloud.fields.append(val1)
00501       _x = self
00502       start = end
00503       end += 9
00504       (_x.feedback.cloud.is_bigendian, _x.feedback.cloud.point_step, _x.feedback.cloud.row_step,) = _struct_B2I.unpack(str[start:end])
00505       self.feedback.cloud.is_bigendian = bool(self.feedback.cloud.is_bigendian)
00506       start = end
00507       end += 4
00508       (length,) = _struct_I.unpack(str[start:end])
00509       start = end
00510       end += length
00511       if python3:
00512         self.feedback.cloud.data = str[start:end].decode('utf-8')
00513       else:
00514         self.feedback.cloud.data = str[start:end]
00515       start = end
00516       end += 1
00517       (self.feedback.cloud.is_dense,) = _struct_B.unpack(str[start:end])
00518       self.feedback.cloud.is_dense = bool(self.feedback.cloud.is_dense)
00519       return self
00520     except struct.error as e:
00521       raise genpy.DeserializationError(e) #most likely buffer underfill
00522 
00523 _struct_I = genpy.struct_I
00524 _struct_IBI = struct.Struct("<IBI")
00525 _struct_3I = struct.Struct("<3I")
00526 _struct_B = struct.Struct("<B")
00527 _struct_2I = struct.Struct("<2I")
00528 _struct_B2I = struct.Struct("<B2I")


pr2_tilt_laser_interface
Author(s): Radu Rusu, Wim Meeussen, Vijay Pradeep
autogenerated on Sat Dec 28 2013 17:25:13