$search
00001 """autogenerated by genmsg_py from Epsilon.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class Epsilon(roslib.message.Message): 00007 _md5sum = "0d2bf0d163e0062abbee50aa67ba8a3a" 00008 _type = "art_msgs/Epsilon" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """# ART epsilon constants 00011 # 00012 # These constants represent trivial differences in distance, speed, 00013 # angle, etc. 00014 00015 # $Id: Epsilon.msg 1539 2011-05-09 04:09:20Z jack.oquin $ 00016 00017 # constants 00018 float32 float_value = 1e-5 00019 float32 distance = 0.01 00020 float32 speed = 0.01 00021 00022 # epsilon values for servo requests 00023 float32 brake_position = 0.01 00024 float32 steering_angle = 0.001 00025 float32 throttle_position = 0.01 00026 00027 """ 00028 # Pseudo-constants 00029 float_value = 1e-05 00030 distance = 0.01 00031 speed = 0.01 00032 brake_position = 0.01 00033 steering_angle = 0.001 00034 throttle_position = 0.01 00035 00036 __slots__ = [] 00037 _slot_types = [] 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 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(Epsilon, self).__init__(*args, **kwds) 00055 00056 def _get_types(self): 00057 """ 00058 internal API method 00059 """ 00060 return self._slot_types 00061 00062 def serialize(self, buff): 00063 """ 00064 serialize message into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 """ 00068 try: 00069 pass 00070 except struct.error as se: self._check_types(se) 00071 except TypeError as te: self._check_types(te) 00072 00073 def deserialize(self, str): 00074 """ 00075 unpack serialized message in str into this message instance 00076 @param str: byte array of serialized message 00077 @type str: str 00078 """ 00079 try: 00080 end = 0 00081 return self 00082 except struct.error as e: 00083 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00084 00085 00086 def serialize_numpy(self, buff, numpy): 00087 """ 00088 serialize message with numpy array types into buffer 00089 @param buff: buffer 00090 @type buff: StringIO 00091 @param numpy: numpy python module 00092 @type numpy module 00093 """ 00094 try: 00095 pass 00096 except struct.error as se: self._check_types(se) 00097 except TypeError as te: self._check_types(te) 00098 00099 def deserialize_numpy(self, str, numpy): 00100 """ 00101 unpack serialized message in str into this message instance using numpy for array types 00102 @param str: byte array of serialized message 00103 @type str: str 00104 @param numpy: numpy python module 00105 @type numpy: module 00106 """ 00107 try: 00108 end = 0 00109 return self 00110 except struct.error as e: 00111 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00112 00113 _struct_I = roslib.message.struct_I