Go to the documentation of this file.00001 """autogenerated by genpy from art_msgs/ArtHertz.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 ArtHertz(genpy.Message):
00009 _md5sum = "fe3d67243941cb078e664e9bc369f978"
00010 _type = "art_msgs/ArtHertz"
00011 _has_header = False
00012 _full_text = """# Real-time cycle rates for various ART vehicle nodes.
00013 # $Id: ArtHertz.msg 620 2010-09-25 01:11:51Z jack.oquin $
00014
00015 # All units are hertz (cycles/second). This is not a published
00016 # message, it defines multi-language constants.
00017
00018 float64 APPLANIX = 20.0
00019 float64 BRAKE = 20.0
00020 float64 COMMANDER = 10.0
00021 float64 IOADR = 10.0
00022 float64 LASER_FUSION = 10.0
00023 float64 LASER_NOISE = 10.0
00024 float64 MAPLANES = 5.0
00025 float64 NAVIGATOR = 20.0
00026 float64 OBSERVERS = 10.0
00027 float64 PILOT = 20.0
00028 float64 PSEUDO_LASER = 10.0
00029 float64 SICKFAST = 10.0
00030 float64 STEERING = 20.0
00031 float64 THROTTLE = 20.0
00032 float64 VEHICLE_TF = 5.0
00033
00034 """
00035
00036 APPLANIX = 20.0
00037 BRAKE = 20.0
00038 COMMANDER = 10.0
00039 IOADR = 10.0
00040 LASER_FUSION = 10.0
00041 LASER_NOISE = 10.0
00042 MAPLANES = 5.0
00043 NAVIGATOR = 20.0
00044 OBSERVERS = 10.0
00045 PILOT = 20.0
00046 PSEUDO_LASER = 10.0
00047 SICKFAST = 10.0
00048 STEERING = 20.0
00049 THROTTLE = 20.0
00050 VEHICLE_TF = 5.0
00051
00052 __slots__ = []
00053 _slot_types = []
00054
00055 def __init__(self, *args, **kwds):
00056 """
00057 Constructor. Any message fields that are implicitly/explicitly
00058 set to None will be assigned a default value. The recommend
00059 use is keyword arguments as this is more robust to future message
00060 changes. You cannot mix in-order arguments and keyword arguments.
00061
00062 The available fields are:
00063
00064
00065 :param args: complete set of field values, in .msg order
00066 :param kwds: use keyword arguments corresponding to message field names
00067 to set specific fields.
00068 """
00069 if args or kwds:
00070 super(ArtHertz, self).__init__(*args, **kwds)
00071
00072 def _get_types(self):
00073 """
00074 internal API method
00075 """
00076 return self._slot_types
00077
00078 def serialize(self, buff):
00079 """
00080 serialize message into buffer
00081 :param buff: buffer, ``StringIO``
00082 """
00083 try:
00084 pass
00085 except struct.error as se: self._check_types(se)
00086 except TypeError as te: self._check_types(te)
00087
00088 def deserialize(self, str):
00089 """
00090 unpack serialized message in str into this message instance
00091 :param str: byte array of serialized message, ``str``
00092 """
00093 try:
00094 end = 0
00095 return self
00096 except struct.error as e:
00097 raise genpy.DeserializationError(e)
00098
00099
00100 def serialize_numpy(self, buff, numpy):
00101 """
00102 serialize message with numpy array types into buffer
00103 :param buff: buffer, ``StringIO``
00104 :param numpy: numpy python module
00105 """
00106 try:
00107 pass
00108 except struct.error as se: self._check_types(se)
00109 except TypeError as te: self._check_types(te)
00110
00111 def deserialize_numpy(self, str, numpy):
00112 """
00113 unpack serialized message in str into this message instance using numpy for array types
00114 :param str: byte array of serialized message, ``str``
00115 :param numpy: numpy python module
00116 """
00117 try:
00118 end = 0
00119 return self
00120 except struct.error as e:
00121 raise genpy.DeserializationError(e)
00122
00123 _struct_I = genpy.struct_I