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