Go to the documentation of this file.00001 """autogenerated by genpy from art_msgs/Epsilon.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 Epsilon(genpy.Message):
00009 _md5sum = "0d2bf0d163e0062abbee50aa67ba8a3a"
00010 _type = "art_msgs/Epsilon"
00011 _has_header = False
00012 _full_text = """# ART epsilon constants
00013 #
00014 # These constants represent trivial differences in distance, speed,
00015 # angle, etc.
00016
00017 # $Id: Epsilon.msg 1539 2011-05-09 04:09:20Z jack.oquin $
00018
00019 # constants
00020 float32 float_value = 1e-5
00021 float32 distance = 0.01
00022 float32 speed = 0.01
00023
00024 # epsilon values for servo requests
00025 float32 brake_position = 0.01
00026 float32 steering_angle = 0.001
00027 float32 throttle_position = 0.01
00028
00029 """
00030
00031 float_value = 1e-05
00032 distance = 0.01
00033 speed = 0.01
00034 brake_position = 0.01
00035 steering_angle = 0.001
00036 throttle_position = 0.01
00037
00038 __slots__ = []
00039 _slot_types = []
00040
00041 def __init__(self, *args, **kwds):
00042 """
00043 Constructor. Any message fields that are implicitly/explicitly
00044 set to None will be assigned a default value. The recommend
00045 use is keyword arguments as this is more robust to future message
00046 changes. You cannot mix in-order arguments and keyword arguments.
00047
00048 The available fields are:
00049
00050
00051 :param args: complete set of field values, in .msg order
00052 :param kwds: use keyword arguments corresponding to message field names
00053 to set specific fields.
00054 """
00055 if args or kwds:
00056 super(Epsilon, self).__init__(*args, **kwds)
00057
00058 def _get_types(self):
00059 """
00060 internal API method
00061 """
00062 return self._slot_types
00063
00064 def serialize(self, buff):
00065 """
00066 serialize message into buffer
00067 :param buff: buffer, ``StringIO``
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(self, str):
00075 """
00076 unpack serialized message in str into this message instance
00077 :param str: byte array of serialized message, ``str``
00078 """
00079 try:
00080 end = 0
00081 return self
00082 except struct.error as e:
00083 raise genpy.DeserializationError(e)
00084
00085
00086 def serialize_numpy(self, buff, numpy):
00087 """
00088 serialize message with numpy array types into buffer
00089 :param buff: buffer, ``StringIO``
00090 :param numpy: numpy python module
00091 """
00092 try:
00093 pass
00094 except struct.error as se: self._check_types(se)
00095 except TypeError as te: self._check_types(te)
00096
00097 def deserialize_numpy(self, str, numpy):
00098 """
00099 unpack serialized message in str into this message instance using numpy for array types
00100 :param str: byte array of serialized message, ``str``
00101 :param numpy: numpy python module
00102 """
00103 try:
00104 end = 0
00105 return self
00106 except struct.error as e:
00107 raise genpy.DeserializationError(e)
00108
00109 _struct_I = genpy.struct_I