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