00001 """autogenerated by genpy from zyonz_msgs/GetPoseArrayRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007
00008 class GetPoseArrayRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "zyonz_msgs/GetPoseArrayRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014 """
00015 __slots__ = []
00016 _slot_types = []
00017
00018 def __init__(self, *args, **kwds):
00019 """
00020 Constructor. Any message fields that are implicitly/explicitly
00021 set to None will be assigned a default value. The recommend
00022 use is keyword arguments as this is more robust to future message
00023 changes. You cannot mix in-order arguments and keyword arguments.
00024
00025 The available fields are:
00026
00027
00028 :param args: complete set of field values, in .msg order
00029 :param kwds: use keyword arguments corresponding to message field names
00030 to set specific fields.
00031 """
00032 if args or kwds:
00033 super(GetPoseArrayRequest, self).__init__(*args, **kwds)
00034
00035 def _get_types(self):
00036 """
00037 internal API method
00038 """
00039 return self._slot_types
00040
00041 def serialize(self, buff):
00042 """
00043 serialize message into buffer
00044 :param buff: buffer, ``StringIO``
00045 """
00046 try:
00047 pass
00048 except struct.error as se: self._check_types(se)
00049 except TypeError as te: self._check_types(te)
00050
00051 def deserialize(self, str):
00052 """
00053 unpack serialized message in str into this message instance
00054 :param str: byte array of serialized message, ``str``
00055 """
00056 try:
00057 end = 0
00058 return self
00059 except struct.error as e:
00060 raise genpy.DeserializationError(e)
00061
00062
00063 def serialize_numpy(self, buff, numpy):
00064 """
00065 serialize message with numpy array types into buffer
00066 :param buff: buffer, ``StringIO``
00067 :param numpy: numpy python module
00068 """
00069 try:
00070 pass
00071 except struct.error as se: self._check_types(se)
00072 except TypeError as te: self._check_types(te)
00073
00074 def deserialize_numpy(self, str, numpy):
00075 """
00076 unpack serialized message in str into this message instance using numpy for array types
00077 :param str: byte array of serialized message, ``str``
00078 :param numpy: numpy python module
00079 """
00080 try:
00081 end = 0
00082 return self
00083 except struct.error as e:
00084 raise genpy.DeserializationError(e)
00085
00086 _struct_I = genpy.struct_I
00087 """autogenerated by genpy from zyonz_msgs/GetPoseArrayResponse.msg. Do not edit."""
00088 import sys
00089 python3 = True if sys.hexversion > 0x03000000 else False
00090 import genpy
00091 import struct
00092
00093 import geometry_msgs.msg
00094 import std_msgs.msg
00095
00096 class GetPoseArrayResponse(genpy.Message):
00097 _md5sum = "6e6d6cf4c046bf5356104e4d4729e923"
00098 _type = "zyonz_msgs/GetPoseArrayResponse"
00099 _has_header = False
00100 _full_text = """
00101 geometry_msgs/PoseArray data
00102
00103
00104 ================================================================================
00105 MSG: geometry_msgs/PoseArray
00106 # An array of poses with a header for global reference.
00107
00108 Header header
00109
00110 Pose[] poses
00111
00112 ================================================================================
00113 MSG: std_msgs/Header
00114 # Standard metadata for higher-level stamped data types.
00115 # This is generally used to communicate timestamped data
00116 # in a particular coordinate frame.
00117 #
00118 # sequence ID: consecutively increasing ID
00119 uint32 seq
00120 #Two-integer timestamp that is expressed as:
00121 # * stamp.secs: seconds (stamp_secs) since epoch
00122 # * stamp.nsecs: nanoseconds since stamp_secs
00123 # time-handling sugar is provided by the client library
00124 time stamp
00125 #Frame this data is associated with
00126 # 0: no frame
00127 # 1: global frame
00128 string frame_id
00129
00130 ================================================================================
00131 MSG: geometry_msgs/Pose
00132 # A representation of pose in free space, composed of postion and orientation.
00133 Point position
00134 Quaternion orientation
00135
00136 ================================================================================
00137 MSG: geometry_msgs/Point
00138 # This contains the position of a point in free space
00139 float64 x
00140 float64 y
00141 float64 z
00142
00143 ================================================================================
00144 MSG: geometry_msgs/Quaternion
00145 # This represents an orientation in free space in quaternion form.
00146
00147 float64 x
00148 float64 y
00149 float64 z
00150 float64 w
00151
00152 """
00153 __slots__ = ['data']
00154 _slot_types = ['geometry_msgs/PoseArray']
00155
00156 def __init__(self, *args, **kwds):
00157 """
00158 Constructor. Any message fields that are implicitly/explicitly
00159 set to None will be assigned a default value. The recommend
00160 use is keyword arguments as this is more robust to future message
00161 changes. You cannot mix in-order arguments and keyword arguments.
00162
00163 The available fields are:
00164 data
00165
00166 :param args: complete set of field values, in .msg order
00167 :param kwds: use keyword arguments corresponding to message field names
00168 to set specific fields.
00169 """
00170 if args or kwds:
00171 super(GetPoseArrayResponse, self).__init__(*args, **kwds)
00172
00173 if self.data is None:
00174 self.data = geometry_msgs.msg.PoseArray()
00175 else:
00176 self.data = geometry_msgs.msg.PoseArray()
00177
00178 def _get_types(self):
00179 """
00180 internal API method
00181 """
00182 return self._slot_types
00183
00184 def serialize(self, buff):
00185 """
00186 serialize message into buffer
00187 :param buff: buffer, ``StringIO``
00188 """
00189 try:
00190 _x = self
00191 buff.write(_struct_3I.pack(_x.data.header.seq, _x.data.header.stamp.secs, _x.data.header.stamp.nsecs))
00192 _x = self.data.header.frame_id
00193 length = len(_x)
00194 if python3 or type(_x) == unicode:
00195 _x = _x.encode('utf-8')
00196 length = len(_x)
00197 buff.write(struct.pack('<I%ss'%length, length, _x))
00198 length = len(self.data.poses)
00199 buff.write(_struct_I.pack(length))
00200 for val1 in self.data.poses:
00201 _v1 = val1.position
00202 _x = _v1
00203 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00204 _v2 = val1.orientation
00205 _x = _v2
00206 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00207 except struct.error as se: self._check_types(se)
00208 except TypeError as te: self._check_types(te)
00209
00210 def deserialize(self, str):
00211 """
00212 unpack serialized message in str into this message instance
00213 :param str: byte array of serialized message, ``str``
00214 """
00215 try:
00216 if self.data is None:
00217 self.data = geometry_msgs.msg.PoseArray()
00218 end = 0
00219 _x = self
00220 start = end
00221 end += 12
00222 (_x.data.header.seq, _x.data.header.stamp.secs, _x.data.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00223 start = end
00224 end += 4
00225 (length,) = _struct_I.unpack(str[start:end])
00226 start = end
00227 end += length
00228 if python3:
00229 self.data.header.frame_id = str[start:end].decode('utf-8')
00230 else:
00231 self.data.header.frame_id = str[start:end]
00232 start = end
00233 end += 4
00234 (length,) = _struct_I.unpack(str[start:end])
00235 self.data.poses = []
00236 for i in range(0, length):
00237 val1 = geometry_msgs.msg.Pose()
00238 _v3 = val1.position
00239 _x = _v3
00240 start = end
00241 end += 24
00242 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00243 _v4 = val1.orientation
00244 _x = _v4
00245 start = end
00246 end += 32
00247 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00248 self.data.poses.append(val1)
00249 return self
00250 except struct.error as e:
00251 raise genpy.DeserializationError(e)
00252
00253
00254 def serialize_numpy(self, buff, numpy):
00255 """
00256 serialize message with numpy array types into buffer
00257 :param buff: buffer, ``StringIO``
00258 :param numpy: numpy python module
00259 """
00260 try:
00261 _x = self
00262 buff.write(_struct_3I.pack(_x.data.header.seq, _x.data.header.stamp.secs, _x.data.header.stamp.nsecs))
00263 _x = self.data.header.frame_id
00264 length = len(_x)
00265 if python3 or type(_x) == unicode:
00266 _x = _x.encode('utf-8')
00267 length = len(_x)
00268 buff.write(struct.pack('<I%ss'%length, length, _x))
00269 length = len(self.data.poses)
00270 buff.write(_struct_I.pack(length))
00271 for val1 in self.data.poses:
00272 _v5 = val1.position
00273 _x = _v5
00274 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00275 _v6 = val1.orientation
00276 _x = _v6
00277 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00278 except struct.error as se: self._check_types(se)
00279 except TypeError as te: self._check_types(te)
00280
00281 def deserialize_numpy(self, str, numpy):
00282 """
00283 unpack serialized message in str into this message instance using numpy for array types
00284 :param str: byte array of serialized message, ``str``
00285 :param numpy: numpy python module
00286 """
00287 try:
00288 if self.data is None:
00289 self.data = geometry_msgs.msg.PoseArray()
00290 end = 0
00291 _x = self
00292 start = end
00293 end += 12
00294 (_x.data.header.seq, _x.data.header.stamp.secs, _x.data.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00295 start = end
00296 end += 4
00297 (length,) = _struct_I.unpack(str[start:end])
00298 start = end
00299 end += length
00300 if python3:
00301 self.data.header.frame_id = str[start:end].decode('utf-8')
00302 else:
00303 self.data.header.frame_id = str[start:end]
00304 start = end
00305 end += 4
00306 (length,) = _struct_I.unpack(str[start:end])
00307 self.data.poses = []
00308 for i in range(0, length):
00309 val1 = geometry_msgs.msg.Pose()
00310 _v7 = val1.position
00311 _x = _v7
00312 start = end
00313 end += 24
00314 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00315 _v8 = val1.orientation
00316 _x = _v8
00317 start = end
00318 end += 32
00319 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00320 self.data.poses.append(val1)
00321 return self
00322 except struct.error as e:
00323 raise genpy.DeserializationError(e)
00324
00325 _struct_I = genpy.struct_I
00326 _struct_3I = struct.Struct("<3I")
00327 _struct_4d = struct.Struct("<4d")
00328 _struct_3d = struct.Struct("<3d")
00329 class GetPoseArray(object):
00330 _type = 'zyonz_msgs/GetPoseArray'
00331 _md5sum = '6e6d6cf4c046bf5356104e4d4729e923'
00332 _request_class = GetPoseArrayRequest
00333 _response_class = GetPoseArrayResponse